]> git.proxmox.com Git - mirror_edk2.git/blob - OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.h
OvmfPkg/Csm/LegacyBiosDxe: Fix Legacy16GetTableAddress call for E820 data
[mirror_edk2.git] / OvmfPkg / XenPvBlkDxe / XenPvBlkDxe.h
1 /** @file
2 Main header for XenPvBlkDxe
3
4 Copyright (C) 2014, Citrix Ltd.
5
6 SPDX-License-Identifier: BSD-2-Clause-Patent
7
8 **/
9
10 #ifndef __EFI_XEN_PV_BLK_DXE_H__
11 #define __EFI_XEN_PV_BLK_DXE_H__
12
13 #include <Uefi.h>
14
15 #define xen_mb() MemoryFence()
16 #define xen_rmb() MemoryFence()
17 #define xen_wmb() MemoryFence()
18
19 //
20 // Libraries
21 //
22 #include <Library/UefiBootServicesTableLib.h>
23 #include <Library/MemoryAllocationLib.h>
24 #include <Library/BaseMemoryLib.h>
25 #include <Library/BaseLib.h>
26 #include <Library/UefiLib.h>
27 #include <Library/DevicePathLib.h>
28 #include <Library/DebugLib.h>
29
30
31 //
32 // UEFI Driver Model Protocols
33 //
34 #include <Protocol/DriverBinding.h>
35 #include <Protocol/ComponentName2.h>
36 #include <Protocol/ComponentName.h>
37
38
39 //
40 // Consumed Protocols
41 //
42 #include <Protocol/XenBus.h>
43
44
45 //
46 // Produced Protocols
47 //
48 #include <Protocol/BlockIo.h>
49
50
51 //
52 // Driver Version
53 //
54 #define XEN_PV_BLK_DXE_VERSION 0x00000010
55
56
57 //
58 // Protocol instances
59 //
60 extern EFI_DRIVER_BINDING_PROTOCOL gXenPvBlkDxeDriverBinding;
61 extern EFI_COMPONENT_NAME2_PROTOCOL gXenPvBlkDxeComponentName2;
62 extern EFI_COMPONENT_NAME_PROTOCOL gXenPvBlkDxeComponentName;
63
64
65 //
66 // Include files with function prototypes
67 //
68 #include "DriverBinding.h"
69 #include "ComponentName.h"
70 #include "BlockIo.h"
71
72
73 #endif