]>
Commit | Line | Data |
---|---|---|
0169352e AB |
1 | /** @file\r |
2 | * Manage XenBus device path and I/O handles\r | |
3 | *\r | |
4 | * Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>\r | |
5 | *\r | |
b26f0cf9 | 6 | * SPDX-License-Identifier: BSD-2-Clause-Patent\r |
0169352e AB |
7 | *\r |
8 | **/\r | |
9 | \r | |
10 | #ifndef _XENIO_MMIO_DEVICE_LIB_H_\r | |
11 | #define _XENIO_MMIO_DEVICE_LIB_H_\r | |
12 | \r | |
13 | /**\r | |
14 | \r | |
15 | Install the XENBUS_ROOT_DEVICE_PATH and XENIO_PROTOCOL protocols on\r | |
16 | the handle pointed to by @Handle, or on a new handle if it points to\r | |
17 | NULL\r | |
18 | \r | |
19 | @param Handle Pointer to the handle to install the protocols\r | |
20 | on, may point to a NULL handle.\r | |
21 | \r | |
22 | @param GrantTableAddress The address of the Xen grant table\r | |
23 | \r | |
24 | @retval EFI_SUCCESS Protocols were installed successfully\r | |
25 | \r | |
26 | @retval EFI_OUT_OF_RESOURCES The function failed to allocate memory required\r | |
27 | by the XenIo MMIO and device path protocols\r | |
28 | \r | |
29 | @return Status code returned by the boot service\r | |
30 | InstallMultipleProtocolInterfaces ()\r | |
31 | \r | |
32 | **/\r | |
33 | EFI_STATUS\r | |
34 | XenIoMmioInstall (\r | |
35 | IN OUT EFI_HANDLE *Handle,\r | |
36 | IN EFI_PHYSICAL_ADDRESS GrantTableAddress\r | |
37 | );\r | |
38 | \r | |
39 | \r | |
40 | /**\r | |
41 | \r | |
42 | Uninstall the XENBUS_ROOT_DEVICE_PATH and XENIO_PROTOCOL protocols\r | |
43 | \r | |
44 | @param Handle Handle onto which the protocols have been installed\r | |
45 | earlier by XenIoMmioInstall ()\r | |
46 | \r | |
47 | @retval EFI_SUCCESS Protocols were uninstalled successfully\r | |
48 | \r | |
49 | @return Status code returned by the boot service\r | |
50 | UninstallMultipleProtocolInterfaces ()\r | |
51 | \r | |
52 | **/\r | |
53 | EFI_STATUS\r | |
54 | XenIoMmioUninstall (\r | |
55 | IN EFI_HANDLE Handle\r | |
56 | );\r | |
57 | \r | |
58 | #endif\r |