TianoCore EDK2 master
|
#include <Library/BaseLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/DebugLib.h>
#include <Library/UefiLib.h>
#include <Library/BaseMemoryLib.h>
#include <Library/MemoryAllocationLib.h>
#include <Library/DevicePathLib.h>
#include <Library/XenIoMmioLib.h>
#include <Protocol/XenIo.h>
#include <Guid/XenBusRootDevice.h>
Go to the source code of this file.
Data Structures | |
struct | XENBUS_ROOT_DEVICE_PATH |
Functions | |
EFI_STATUS | XenIoMmioInstall (IN OUT EFI_HANDLE *Handle, IN EFI_PHYSICAL_ADDRESS GrantTableAddress) |
EFI_STATUS | XenIoMmioUninstall (IN EFI_HANDLE Handle) |
Variables | |
STATIC CONST XENBUS_ROOT_DEVICE_PATH | mXenBusRootDevicePathTemplate |
Manage XenBus device path and I/O handles
Copyright (c) 2015, Linaro Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file XenIoMmioLib.c.
EFI_STATUS XenIoMmioInstall | ( | IN OUT EFI_HANDLE * | Handle, |
IN EFI_PHYSICAL_ADDRESS | GrantTableAddress | ||
) |
Install the XENBUS_ROOT_DEVICE_PATH and XENIO_PROTOCOL protocols on the handle pointed to by @Handle, or on a new handle if it points to NULL
Handle | Pointer to the handle to install the protocols on, may point to a NULL handle. |
GrantTableAddress | The address of the Xen grant table |
EFI_SUCCESS | Protocols were installed successfully |
EFI_OUT_OF_RESOURCES | The function failed to allocate memory required by the XenIo MMIO and device path protocols |
Definition at line 68 of file XenIoMmioLib.c.
EFI_STATUS XenIoMmioUninstall | ( | IN EFI_HANDLE | Handle | ) |
Uninstall the XENBUS_ROOT_DEVICE_PATH and XENIO_PROTOCOL protocols
Handle | Handle onto which the protocols have been installed earlier by XenIoMmioInstall () |
EFI_SUCCESS | Protocols were uninstalled successfully |
Definition at line 144 of file XenIoMmioLib.c.
STATIC CONST XENBUS_ROOT_DEVICE_PATH mXenBusRootDevicePathTemplate |
Definition at line 30 of file XenIoMmioLib.c.