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