TianoCore EDK2 master
Loading...
Searching...
No Matches
XenIoMmioLib.c File Reference

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
 

Detailed Description

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.

Function Documentation

◆ XenIoMmioInstall()

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

Parameters
HandlePointer to the handle to install the protocols on, may point to a NULL handle.
GrantTableAddressThe address of the Xen grant table
Return values
EFI_SUCCESSProtocols were installed successfully
EFI_OUT_OF_RESOURCESThe function failed to allocate memory required by the XenIo MMIO and device path protocols
Returns
Status code returned by the boot service InstallMultipleProtocolInterfaces ()

Definition at line 68 of file XenIoMmioLib.c.

◆ XenIoMmioUninstall()

EFI_STATUS XenIoMmioUninstall ( IN EFI_HANDLE  Handle)

Uninstall the XENBUS_ROOT_DEVICE_PATH and XENIO_PROTOCOL protocols

Parameters
HandleHandle onto which the protocols have been installed earlier by XenIoMmioInstall ()
Return values
EFI_SUCCESSProtocols were uninstalled successfully
Returns
Status code returned by the boot service UninstallMultipleProtocolInterfaces ()

Definition at line 144 of file XenIoMmioLib.c.

Variable Documentation

◆ mXenBusRootDevicePathTemplate

STATIC CONST XENBUS_ROOT_DEVICE_PATH mXenBusRootDevicePathTemplate
Initial value:
= {
{
{
{ sizeof (VENDOR_DEVICE_PATH) + sizeof (EFI_PHYSICAL_ADDRESS), 0 }
},
XENBUS_ROOT_DEVICE_GUID,
},
0,
{
END_DEVICE_PATH_TYPE,
END_ENTIRE_DEVICE_PATH_SUBTYPE,
{ sizeof (EFI_DEVICE_PATH_PROTOCOL), 0 }
}
}
#define HARDWARE_DEVICE_PATH
Definition: DevicePath.h:68
#define HW_VENDOR_DP
Definition: DevicePath.h:133
UINT64 EFI_PHYSICAL_ADDRESS
Definition: UefiBaseType.h:50

Definition at line 30 of file XenIoMmioLib.c.