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