3 Definitions for the VirtIo MMIO Device Library
5 Copyright (C) 2013, ARM Ltd
7 This program and the accompanying materials are licensed and made available
8 under the terms and conditions of the BSD License which accompanies this
9 distribution. The full text of the license may be found at
10 http://opensource.org/licenses/bsd-license.php
12 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
13 WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
17 #ifndef _VIRTIO_MMIO_DEVICE_LIB_H_
18 #define _VIRTIO_MMIO_DEVICE_LIB_H_
22 Initialize VirtIo Device and Install VIRTIO_DEVICE_PROTOCOL protocol
24 @param[in] BaseAddress Base Address of the VirtIo MMIO Device
26 @param[in] Handle Handle of the device the driver should be attached
29 @retval EFI_SUCCESS The VirtIo Device has been installed
32 @retval EFI_OUT_OF_RESOURCES The function failed to allocate memory required
33 by the Virtio MMIO device initialization.
35 @retval EFI_UNSUPPORTED BaseAddress does not point to a VirtIo MMIO
38 @return Status code returned by InstallProtocolInterface
39 Boot Service function.
43 VirtioMmioInstallDevice (
44 IN PHYSICAL_ADDRESS BaseAddress
,
50 Uninstall the VirtIo Device
52 @param[in] Handle Handle of the device where the VirtIo Device protocol
53 should have been installed.
55 @retval EFI_SUCCESS The device has been un-initialized successfully.
57 @return Status code returned by UninstallProtocolInterface
58 Boot Service function.
62 VirtioMmioUninstallDevice (
66 #endif // _VIRTIO_MMIO_DEVICE_LIB_H_