1 /** @file
2   XenIo protocol to abstract arch specific details
3 
4   The Xen implementations for the Intel and ARM archictures differ in the way
5   the base address of the grant table is communicated to the guest. The former
6   uses a virtual PCI device, while the latter uses a device tree node.
7   In order to allow the XenBusDxe UEFI driver to be reused for the non-PCI
8   Xen implementation, this abstract protocol can be installed on a handle
9   with the appropriate base address.
10 
11   Copyright (C) 2014, Linaro Ltd.
12 
13   This program and the accompanying materials
14   are licensed and made available under the terms and conditions of the BSD License
15   which accompanies this distribution.  The full text of the license may be found at
16   http://opensource.org/licenses/bsd-license.php
17 
18   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
19   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
20 
21 **/
22 
23 #ifndef __PROTOCOL_XENIO_H__
24 #define __PROTOCOL_XENIO_H__
25 
26 #include <IndustryStandard/Xen/xen.h>
27 
28 #define XENIO_PROTOCOL_GUID \
29   {0x6efac84f, 0x0ab0, 0x4747, {0x81, 0xbe, 0x85, 0x55, 0x62, 0x59, 0x04, 0x49}}
30 
31 ///
32 /// Forward declaration
33 ///
34 typedef struct _XENIO_PROTOCOL XENIO_PROTOCOL;
35 
36 ///
37 /// Protocol structure
38 ///
39 struct _XENIO_PROTOCOL {
40   //
41   // Protocol data fields
42   //
43   EFI_PHYSICAL_ADDRESS          GrantTableAddress;
44 };
45 
46 extern EFI_GUID gXenIoProtocolGuid;
47 
48 #endif
49