RTEMS 6.1-rc7
Loading...
Searching...
No Matches
efigop.h
1/* $FreeBSD$ */
2/*++
3
4Copyright (c) 1999 - 2002 Intel Corporation. All rights reserved
5This software and associated documentation (if any) is furnished
6under a license and may only be used or copied in accordance
7with the terms of the license. Except as permitted by such
8license, no part of this software or documentation may be
9reproduced, stored in a retrieval system, or transmitted in any
10form or by any means without the express written consent of
11Intel Corporation.
12
13Module Name:
14
15 efigop.h
16
17Abstract:
18 Info about framebuffers
19
20
21
22
23Revision History
24
25--*/
26
27#ifndef _EFIGOP_H
28#define _EFIGOP_H
29
30#define EFI_GRAPHICS_OUTPUT_PROTOCOL_GUID \
31 { 0x9042a9de, 0x23dc, 0x4a38, {0x96, 0xfb, 0x7a, 0xde, 0xd0, 0x80, 0x51, 0x6a} }
32
33INTERFACE_DECL(_EFI_GRAPHICS_OUTPUT);
34
35typedef struct {
36 UINT32 RedMask;
37 UINT32 GreenMask;
38 UINT32 BlueMask;
39 UINT32 ReservedMask;
41
42typedef enum {
43 PixelRedGreenBlueReserved8BitPerColor,
44 PixelBlueGreenRedReserved8BitPerColor,
45 PixelBitMask,
46 PixelBltOnly,
47 PixelFormatMax,
48} EFI_GRAPHICS_PIXEL_FORMAT;
49
50typedef struct {
51 UINT32 Version;
52 UINT32 HorizontalResolution;
53 UINT32 VerticalResolution;
54 EFI_GRAPHICS_PIXEL_FORMAT PixelFormat;
55 EFI_PIXEL_BITMASK PixelInformation;
56 UINT32 PixelsPerScanLine;
58
59typedef struct {
60 UINT32 MaxMode;
61 UINT32 Mode;
63 UINTN SizeOfInfo;
64 EFI_PHYSICAL_ADDRESS FrameBufferBase;
65 UINTN FrameBufferSize;
67
68typedef
69EFI_STATUS
70(EFIAPI *EFI_GRAPHICS_OUTPUT_PROTOCOL_QUERY_MODE) (
71 IN struct _EFI_GRAPHICS_OUTPUT *This,
72 IN UINT32 ModeNumber,
73 OUT UINTN *SizeOfInfo,
75 );
76
77typedef
78EFI_STATUS
79(EFIAPI *EFI_GRAPHICS_OUTPUT_PROTOCOL_SET_MODE) (
80 IN struct _EFI_GRAPHICS_OUTPUT *This,
81 IN UINT32 ModeNumber
82 );
83
84typedef struct {
85 UINT8 Blue;
86 UINT8 Green;
87 UINT8 Red;
88 UINT8 Reserved;
90
91typedef enum {
92 EfiBltVideoFill,
93 EfiBltVideoToBltBuffer,
94 EfiBltBufferToVideo,
95 EfiBltVideoToVideo,
96 EfiGraphcisOutputBltOperationMax,
97} EFI_GRAPHICS_OUTPUT_BLT_OPERATION;
98
99typedef
100EFI_STATUS
101(EFIAPI *EFI_GRAPHICS_OUTPUT_PROTOCOL_BLT) (
102 IN struct _EFI_GRAPHICS_OUTPUT *This,
103 IN OUT EFI_GRAPHICS_OUTPUT_BLT_PIXEL *BltBuffer,
104 IN EFI_GRAPHICS_OUTPUT_BLT_OPERATION BltOperation,
105 IN UINTN SourceX,
106 IN UINTN SourceY,
107 IN UINTN DestinationX,
108 IN UINTN DestinationY,
109 IN UINTN Width,
110 IN UINTN Height,
111 IN UINTN Delta
112 );
113
114typedef struct _EFI_GRAPHICS_OUTPUT {
115 EFI_GRAPHICS_OUTPUT_PROTOCOL_QUERY_MODE QueryMode;
116 EFI_GRAPHICS_OUTPUT_PROTOCOL_SET_MODE SetMode;
117 EFI_GRAPHICS_OUTPUT_PROTOCOL_BLT Blt;
120
121#endif /* _EFIGOP_H */
Definition: efigop.h:84
Definition: efigop.h:59
Definition: efigop.h:35
Definition: efigop.h:114