]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Foundation/Protocol/VgaMiniPort/VgaMiniPort.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Protocol / VgaMiniPort / 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 --*/
22
23 #ifndef _VGA_MINI_PORT_H
24 #define _VGA_MINI_PORT_H
25
26 #define EFI_VGA_MINI_PORT_PROTOCOL_GUID \
27 { \
28 0xc7735a2f, 0x88f5, 0x4882, 0xae, 0x63, 0xfa, 0xac, 0x8c, 0x8b, 0x86, 0xb3 \
29 }
30
31 EFI_FORWARD_DECLARATION (EFI_VGA_MINI_PORT_PROTOCOL);
32
33 typedef
34 EFI_STATUS
35 (EFIAPI *EFI_VGA_MINI_PORT_SET_MODE) (
36 IN EFI_VGA_MINI_PORT_PROTOCOL * This,
37 IN UINTN ModeNumber
38 );
39
40 /*++
41
42 Routine Description:
43 Sets the text display mode of a VGA controller
44
45 Arguments:
46 This - Protocol instance pointer.
47 Mode - Mode number. 0 - 80x25 1-80x50
48
49 Returns:
50 EFI_SUCCESS - The mode was set
51 EFI_DEVICE_ERROR - The device is not functioning properly.
52
53 --*/
54 typedef struct _EFI_VGA_MINI_PORT_PROTOCOL {
55 EFI_VGA_MINI_PORT_SET_MODE SetMode;
56
57 UINT64 VgaMemoryOffset;
58 UINT64 CrtcAddressRegisterOffset;
59 UINT64 CrtcDataRegisterOffset;
60
61 UINT8 VgaMemoryBar;
62 UINT8 CrtcAddressRegisterBar;
63 UINT8 CrtcDataRegisterBar;
64
65 UINT8 MaxMode;
66 } EFI_VGA_MINI_PORT_PROTOCOL;
67
68 extern EFI_GUID gEfiVgaMiniPortProtocolGuid;
69
70 #endif