TianoCore EDK2 master
|
#include <Library/BaseMemoryLib.h>
#include <Library/UefiBootServicesTableLib.h>
#include "VirtioMmioDevice.h"
Go to the source code of this file.
Functions | |
STATIC EFI_STATUS EFIAPI | VirtioMmioInit (IN PHYSICAL_ADDRESS BaseAddress, IN OUT VIRTIO_MMIO_DEVICE *Device) |
STATIC VOID EFIAPI | VirtioMmioUninit (IN VIRTIO_MMIO_DEVICE *Device) |
EFI_STATUS | VirtioMmioInstallDevice (IN PHYSICAL_ADDRESS BaseAddress, IN EFI_HANDLE Handle) |
EFI_STATUS | VirtioMmioUninstallDevice (IN EFI_HANDLE DeviceHandle) |
Variables | |
STATIC CONST VIRTIO_DEVICE_PROTOCOL | mMmioDeviceProtocolTemplate |
This driver produces Virtio Device Protocol instances for Virtio Mmio devices.
Copyright (C) 2013, ARM Ltd. Copyright (C) 2017, AMD Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file VirtioMmioDevice.c.
STATIC EFI_STATUS EFIAPI VirtioMmioInit | ( | IN PHYSICAL_ADDRESS | BaseAddress, |
IN OUT VIRTIO_MMIO_DEVICE * | Device | ||
) |
Initialize the VirtIo MMIO Device
[in] | BaseAddress | Base Address of the VirtIo MMIO Device |
[in,out] | Device | The driver instance to configure. |
EFI_SUCCESS | Setup complete. |
EFI_UNSUPPORTED | The driver is not a VirtIo MMIO device. |
Definition at line 55 of file VirtioMmioDevice.c.
EFI_STATUS VirtioMmioInstallDevice | ( | IN PHYSICAL_ADDRESS | BaseAddress, |
IN EFI_HANDLE | Handle | ||
) |
Initialize VirtIo Device and Install VIRTIO_DEVICE_PROTOCOL protocol
[in] | BaseAddress | Base Address of the VirtIo MMIO Device |
[in] | Handle | Handle of the device the driver should be attached to. |
EFI_SUCCESS | The VirtIo Device has been installed successfully. |
EFI_OUT_OF_RESOURCES | The function failed to allocate memory required by the Virtio MMIO device initialization. |
EFI_UNSUPPORTED | BaseAddress does not point to a VirtIo MMIO device. |
Definition at line 131 of file VirtioMmioDevice.c.
STATIC VOID EFIAPI VirtioMmioUninit | ( | IN VIRTIO_MMIO_DEVICE * | Device | ) |
Uninitialize the internals of a virtio-mmio device that has been successfully set up with VirtioMmioInit().
[in,out] | Device | The device to clean up. |
Definition at line 120 of file VirtioMmioDevice.c.
EFI_STATUS VirtioMmioUninstallDevice | ( | IN EFI_HANDLE | Handle | ) |
Uninstall the VirtIo Device
[in] | Handle | Handle of the device where the VirtIo Device protocol should have been installed. |
EFI_SUCCESS | The device has been un-initialized successfully. |
Definition at line 186 of file VirtioMmioDevice.c.
STATIC CONST VIRTIO_DEVICE_PROTOCOL mMmioDeviceProtocolTemplate |
Definition at line 17 of file VirtioMmioDevice.c.