diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-02-19 11:43:12 +0100 |
---|---|---|
committer | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2016-02-24 12:07:32 +0100 |
commit | 5528732a51bc998702ee49f6b8c86f076521d394 (patch) | |
tree | 26031e04cbea11722f3504c802432753dfb3eaa6 /OvmfPkg/VirtioRngDxe/VirtioRng.inf | |
parent | 8bc951a26419c7d3fa45f8e583318690b108a6cd (diff) | |
download | edk2-5528732a51bc998702ee49f6b8c86f076521d394.tar.gz edk2-5528732a51bc998702ee49f6b8c86f076521d394.tar.bz2 edk2-5528732a51bc998702ee49f6b8c86f076521d394.zip |
OvmfPkg: implement UEFI driver for Virtio RNG devices
This implements a UEFI driver model driver for Virtio devices of type
VIRTIO_SUBSYSTEM_ENTROPY_SOURCE, and exposes them via instances of
the EFI_RNG_PROTOCOL protocol, supporting the EFI_RNG_ALGORITHM_RAW
algorithm only.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Diffstat (limited to 'OvmfPkg/VirtioRngDxe/VirtioRng.inf')
-rw-r--r-- | OvmfPkg/VirtioRngDxe/VirtioRng.inf | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/OvmfPkg/VirtioRngDxe/VirtioRng.inf b/OvmfPkg/VirtioRngDxe/VirtioRng.inf new file mode 100644 index 0000000000..471beb37bc --- /dev/null +++ b/OvmfPkg/VirtioRngDxe/VirtioRng.inf @@ -0,0 +1,45 @@ +## @file
+# This driver produces EFI_RNG_PROTOCOL instances for virtio-rng devices.
+#
+# Copyright (C) 2016, Linaro Ltd.
+#
+# This program and the accompanying materials are licensed and made available
+# under the terms and conditions of the BSD License which accompanies this
+# distribution. The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+#
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT
+# WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+##
+
+[Defines]
+ INF_VERSION = 0x00010005
+ BASE_NAME = VirtioRngDxe
+ FILE_GUID = 58E26F0D-CBAC-4BBA-B70F-18221415665A
+ MODULE_TYPE = UEFI_DRIVER
+ VERSION_STRING = 1.0
+ ENTRY_POINT = VirtioRngEntryPoint
+
+[Sources]
+ VirtioRng.c
+
+[Packages]
+ MdePkg/MdePkg.dec
+ OvmfPkg/OvmfPkg.dec
+
+[LibraryClasses]
+ BaseMemoryLib
+ DebugLib
+ MemoryAllocationLib
+ UefiBootServicesTableLib
+ UefiDriverEntryPoint
+ UefiLib
+ VirtioLib
+
+[Protocols]
+ gEfiRngProtocolGuid ## BY_START
+ gVirtioDeviceProtocolGuid ## TO_START
+
+[Guids]
+ gEfiRngAlgorithmRaw
|