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