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