]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
3 | Copyright (c) 2006, Intel Corporation \r | |
4 | All rights reserved. This program and the accompanying materials \r | |
5 | are licensed and made available under the terms and conditions of the BSD License \r | |
6 | which accompanies this distribution. The full text of the license may be found at \r | |
7 | http://opensource.org/licenses/bsd-license.php \r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | VgaMiniPort.h\r | |
16 | \r | |
17 | Abstract:\r | |
18 | \r | |
19 | Vga Mini port binding for a VGA controller\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #ifndef _VGA_MINI_PORT_H\r | |
24 | #define _VGA_MINI_PORT_H\r | |
25 | \r | |
26 | #define EFI_VGA_MINI_PORT_PROTOCOL_GUID \\r | |
27 | { \\r | |
28 | 0xc7735a2f, 0x88f5, 0x4882, 0xae, 0x63, 0xfa, 0xac, 0x8c, 0x8b, 0x86, 0xb3 \\r | |
29 | }\r | |
30 | \r | |
31 | EFI_FORWARD_DECLARATION (EFI_VGA_MINI_PORT_PROTOCOL);\r | |
32 | \r | |
33 | typedef\r | |
34 | EFI_STATUS\r | |
35 | (EFIAPI *EFI_VGA_MINI_PORT_SET_MODE) (\r | |
36 | IN EFI_VGA_MINI_PORT_PROTOCOL * This,\r | |
37 | IN UINTN ModeNumber\r | |
38 | );\r | |
39 | \r | |
40 | /*++\r | |
41 | \r | |
42 | Routine Description:\r | |
43 | Sets the text display mode of a VGA controller\r | |
44 | \r | |
45 | Arguments:\r | |
46 | This - Protocol instance pointer.\r | |
47 | Mode - Mode number. 0 - 80x25 1-80x50\r | |
48 | \r | |
49 | Returns:\r | |
50 | EFI_SUCCESS - The mode was set\r | |
51 | EFI_DEVICE_ERROR - The device is not functioning properly.\r | |
52 | \r | |
53 | --*/\r | |
54 | typedef struct _EFI_VGA_MINI_PORT_PROTOCOL {\r | |
55 | EFI_VGA_MINI_PORT_SET_MODE SetMode;\r | |
56 | \r | |
57 | UINT64 VgaMemoryOffset;\r | |
58 | UINT64 CrtcAddressRegisterOffset;\r | |
59 | UINT64 CrtcDataRegisterOffset;\r | |
60 | \r | |
61 | UINT8 VgaMemoryBar;\r | |
62 | UINT8 CrtcAddressRegisterBar;\r | |
63 | UINT8 CrtcDataRegisterBar;\r | |
64 | \r | |
65 | UINT8 MaxMode;\r | |
66 | } EFI_VGA_MINI_PORT_PROTOCOL;\r | |
67 | \r | |
68 | extern EFI_GUID gEfiVgaMiniPortProtocolGuid;\r | |
69 | \r | |
70 | #endif\r |