OvmfPkg[all]  0.1
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
VirtioMmioDeviceLib.h File Reference

Functions

EFI_STATUS VirtioMmioInstallDevice (IN PHYSICAL_ADDRESS BaseAddress, IN EFI_HANDLE Handle)
 
EFI_STATUS VirtioMmioUninstallDevice (IN EFI_HANDLE Handle)
 

Detailed Description

Definitions for the VirtIo MMIO Device Library

Copyright (C) 2013, ARM Ltd

SPDX-License-Identifier: BSD-2-Clause-Patent

Function Documentation

EFI_STATUS VirtioMmioInstallDevice ( IN PHYSICAL_ADDRESS  BaseAddress,
IN EFI_HANDLE  Handle 
)

Initialize VirtIo Device and Install VIRTIO_DEVICE_PROTOCOL protocol

Parameters
[in]BaseAddressBase Address of the VirtIo MMIO Device
[in]HandleHandle of the device the driver should be attached to.
Return values
EFI_SUCCESSThe VirtIo Device has been installed successfully.
EFI_OUT_OF_RESOURCESThe function failed to allocate memory required by the Virtio MMIO device initialization.
EFI_UNSUPPORTEDBaseAddress does not point to a VirtIo MMIO device.
Returns
Status code returned by InstallProtocolInterface Boot Service function.
EFI_STATUS VirtioMmioUninstallDevice ( IN EFI_HANDLE  Handle)

Uninstall the VirtIo Device

Parameters
[in]HandleHandle of the device where the VirtIo Device protocol should have been installed.
Return values
EFI_SUCCESSThe device has been un-initialized successfully.
Returns
Status code returned by UninstallProtocolInterface Boot Service function.