TianoCore EDK2 master
Loading...
Searching...
No Matches
VirtioMmioDeviceLib.h File Reference

Go to the source code of this file.

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

Definition in file VirtioMmioDeviceLib.h.

Function Documentation

◆ VirtioMmioInstallDevice()

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.

Definition at line 131 of file VirtioMmioDevice.c.

◆ VirtioMmioUninstallDevice()

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.

Definition at line 186 of file VirtioMmioDevice.c.