2 * Manage XenBus device path and I/O handles
4 * Copyright (c) 2015, Linaro Ltd. All rights reserved.<BR>
6 * This program and the accompanying materials are
7 * licensed and made available under the terms and conditions of the BSD License
8 * which accompanies this distribution. The full text of the license may be found at
9 * http://opensource.org/licenses/bsd-license.php
11 * THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
16 #ifndef _XENIO_MMIO_DEVICE_LIB_H_
17 #define _XENIO_MMIO_DEVICE_LIB_H_
21 Install the XENBUS_ROOT_DEVICE_PATH and XENIO_PROTOCOL protocols on
22 the handle pointed to by @Handle, or on a new handle if it points to
25 @param Handle Pointer to the handle to install the protocols
26 on, may point to a NULL handle.
28 @param GrantTableAddress The address of the Xen grant table
30 @retval EFI_SUCCESS Protocols were installed successfully
32 @retval EFI_OUT_OF_RESOURCES The function failed to allocate memory required
33 by the XenIo MMIO and device path protocols
35 @return Status code returned by the boot service
36 InstallMultipleProtocolInterfaces ()
41 IN OUT EFI_HANDLE
*Handle
,
42 IN EFI_PHYSICAL_ADDRESS GrantTableAddress
48 Uninstall the XENBUS_ROOT_DEVICE_PATH and XENIO_PROTOCOL protocols
50 @param Handle Handle onto which the protocols have been installed
51 earlier by XenIoMmioInstall ()
53 @retval EFI_SUCCESS Protocols were uninstalled successfully
55 @return Status code returned by the boot service
56 UninstallMultipleProtocolInterfaces ()