]> git.proxmox.com Git - mirror_edk2.git/blame - OvmfPkg/XenPvBlkDxe/XenPvBlkDxe.h
OvmfPkg/XenPvBlkDxe: Add BlockIo.
[mirror_edk2.git] / OvmfPkg / XenPvBlkDxe / XenPvBlkDxe.h
CommitLineData
de671da8
AP
1/** @file\r
2 Main header for XenPvBlkDxe\r
3\r
4 Copyright (C) 2014, Citrix Ltd.\r
5\r
6 This program and the accompanying materials\r
7 are licensed and made available under the terms and conditions of the BSD License\r
8 which accompanies this distribution. The full text of the license may be found at\r
9 http://opensource.org/licenses/bsd-license.php\r
10\r
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
13\r
14**/\r
15\r
16#ifndef __EFI_XEN_PV_BLK_DXE_H__\r
17#define __EFI_XEN_PV_BLK_DXE_H__\r
18\r
19#include <Uefi.h>\r
20\r
21//\r
22// Xen interface version used\r
23//\r
24#define __XEN_INTERFACE_VERSION__ 0x00040400\r
25#define xen_mb() MemoryFence()\r
26#define xen_rmb() MemoryFence()\r
27#define xen_wmb() MemoryFence()\r
28\r
29//\r
30// Libraries\r
31//\r
32#include <Library/UefiBootServicesTableLib.h>\r
33#include <Library/MemoryAllocationLib.h>\r
34#include <Library/BaseMemoryLib.h>\r
35#include <Library/BaseLib.h>\r
36#include <Library/UefiLib.h>\r
37#include <Library/DevicePathLib.h>\r
38#include <Library/DebugLib.h>\r
39\r
40\r
41//\r
42// UEFI Driver Model Protocols\r
43//\r
44#include <Protocol/DriverBinding.h>\r
45#include <Protocol/ComponentName2.h>\r
46#include <Protocol/ComponentName.h>\r
47\r
48\r
49//\r
50// Consumed Protocols\r
51//\r
52#include <Protocol/XenBus.h>\r
53\r
54\r
55//\r
56// Produced Protocols\r
57//\r
58#include <Protocol/BlockIo.h>\r
59\r
60\r
61//\r
62// Driver Version\r
63//\r
64#define XEN_PV_BLK_DXE_VERSION 0x00000010\r
65\r
66\r
67//\r
68// Protocol instances\r
69//\r
70extern EFI_DRIVER_BINDING_PROTOCOL gXenPvBlkDxeDriverBinding;\r
71extern EFI_COMPONENT_NAME2_PROTOCOL gXenPvBlkDxeComponentName2;\r
72extern EFI_COMPONENT_NAME_PROTOCOL gXenPvBlkDxeComponentName;\r
73\r
74\r
75//\r
76// Include files with function prototypes\r
77//\r
78#include "DriverBinding.h"\r
79#include "ComponentName.h"\r
5de8a35c 80#include "BlockIo.h"\r
de671da8
AP
81\r
82\r
83#endif\r