]> git.proxmox.com Git - mirror_edk2.git/blob - IntelFrameworkModulePkg/Bus/Pci/VgaMiniPortDxe/VgaMiniPort.h
24db61193346c251bcdaa74a3caf6d3c110bf7eb
[mirror_edk2.git] / IntelFrameworkModulePkg / Bus / Pci / VgaMiniPortDxe / VgaMiniPort.h
1 /** @file
2
3 Copyright (c) 2006 - 2007 Intel Corporation. All rights reserved
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 VgaClass.h
16
17 Abstract:
18
19
20 Revision History
21
22 **/
23
24 #ifndef _VGA_MINIPORT_H
25 #define _VGA_MINIPORT_H
26
27 //
28 // The package level header files this module uses
29 //
30 #include <PiDxe.h>
31 //
32 // The protocols, PPI and GUID defintions for this module
33 //
34 #include <Protocol/PciIo.h>
35 #include <Protocol/VgaMiniPort.h>
36 #include <Protocol/ComponentName2.h>
37
38
39 //
40 // The Library classes this module consumes
41 //
42 #include <Library/DebugLib.h>
43 #include <Library/BaseMemoryLib.h>
44 #include <Library/UefiDriverEntryPoint.h>
45 #include <Library/UefiBootServicesTableLib.h>
46 #include <Library/UefiLib.h>
47
48 #include <IndustryStandard/Pci22.h>
49
50 //
51 // PCI VGA MiniPort Device Structure
52 //
53 #define PCI_VGA_MINI_PORT_DEV_SIGNATURE EFI_SIGNATURE_32('P','V','M','P')
54
55 typedef struct {
56 UINTN Signature;
57 EFI_HANDLE Handle;
58 EFI_VGA_MINI_PORT_PROTOCOL VgaMiniPort;
59 EFI_PCI_IO_PROTOCOL *PciIo;
60 } PCI_VGA_MINI_PORT_DEV;
61
62 #define PCI_VGA_MINI_PORT_DEV_FROM_THIS(a) CR(a, PCI_VGA_MINI_PORT_DEV, VgaMiniPort, PCI_VGA_MINI_PORT_DEV_SIGNATURE)
63
64 //
65 // Global Variables
66 //
67 extern EFI_DRIVER_BINDING_PROTOCOL gPciVgaMiniPortDriverBinding;
68 extern EFI_COMPONENT_NAME_PROTOCOL gPciVgaMiniPortComponentName;
69
70 //
71 // Driver Binding Protocol functions
72 //
73 EFI_STATUS
74 PciVgaMiniPortDriverBindingSupported (
75 IN EFI_DRIVER_BINDING_PROTOCOL *This,
76 IN EFI_HANDLE Controller,
77 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
78 );
79
80 EFI_STATUS
81 PciVgaMiniPortDriverBindingStart (
82 IN EFI_DRIVER_BINDING_PROTOCOL *This,
83 IN EFI_HANDLE Controller,
84 IN EFI_DEVICE_PATH_PROTOCOL *RemainingDevicePath
85 );
86
87 EFI_STATUS
88 PciVgaMiniPortDriverBindingStop (
89 IN EFI_DRIVER_BINDING_PROTOCOL *This,
90 IN EFI_HANDLE Controller,
91 IN UINTN NumberOfChildren,
92 IN EFI_HANDLE *ChildHandleBuffer
93 );
94
95 //
96 // VGA Mini Port Protocol functions
97 //
98 EFI_STATUS
99 EFIAPI
100 PciVgaMiniPortSetMode (
101 IN EFI_VGA_MINI_PORT_PROTOCOL *This,
102 IN UINTN ModeNumber
103 );
104
105 #endif