]>
Commit | Line | Data |
---|---|---|
1 | /** @file\r | |
2 | XenIo protocol to abstract arch specific details\r | |
3 | \r | |
4 | The Xen implementations for the Intel and ARM architectures differ in the way\r | |
5 | the base address of the grant table is communicated to the guest. The former\r | |
6 | uses a virtual PCI device, while the latter uses a device tree node.\r | |
7 | In order to allow the XenBusDxe UEFI driver to be reused for the non-PCI\r | |
8 | Xen implementation, this abstract protocol can be installed on a handle\r | |
9 | with the appropriate base address.\r | |
10 | \r | |
11 | Copyright (C) 2014, Linaro Ltd.\r | |
12 | \r | |
13 | SPDX-License-Identifier: BSD-2-Clause-Patent\r | |
14 | \r | |
15 | **/\r | |
16 | \r | |
17 | #ifndef __PROTOCOL_XENIO_H__\r | |
18 | #define __PROTOCOL_XENIO_H__\r | |
19 | \r | |
20 | #include <IndustryStandard/Xen/xen.h>\r | |
21 | \r | |
22 | #define XENIO_PROTOCOL_GUID \\r | |
23 | {0x6efac84f, 0x0ab0, 0x4747, {0x81, 0xbe, 0x85, 0x55, 0x62, 0x59, 0x04, 0x49}}\r | |
24 | \r | |
25 | ///\r | |
26 | /// Forward declaration\r | |
27 | ///\r | |
28 | typedef struct _XENIO_PROTOCOL XENIO_PROTOCOL;\r | |
29 | \r | |
30 | ///\r | |
31 | /// Protocol structure\r | |
32 | ///\r | |
33 | struct _XENIO_PROTOCOL {\r | |
34 | //\r | |
35 | // Protocol data fields\r | |
36 | //\r | |
37 | EFI_PHYSICAL_ADDRESS GrantTableAddress;\r | |
38 | };\r | |
39 | \r | |
40 | extern EFI_GUID gXenIoProtocolGuid;\r | |
41 | \r | |
42 | #endif\r |