]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/VirtioRngDxe/VirtioRng.h
OvmfPkg/TlsAuthConfigLib: configure trusted CA certs for HTTPS boot
[mirror_edk2.git] / OvmfPkg / VirtioRngDxe / VirtioRng.h
index 844550a00c175685e564b69c04a6ced3b5bae9f7..389c8ddc8d312f654c0bcf7b2460a235c293284b 100644 (file)
@@ -1,46 +1,47 @@
-/** @file
-
-  Private definitions of the VirtioRng RNG driver
-
-  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.
-
-**/
-
-#ifndef _VIRTIO_RNG_DXE_H_
-#define _VIRTIO_RNG_DXE_H_
-
-#include <Protocol/ComponentName.h>
-#include <Protocol/DriverBinding.h>
-#include <Protocol/Rng.h>
-
-#include <IndustryStandard/Virtio.h>
-
-#define VIRTIO_RNG_SIG SIGNATURE_32 ('V', 'R', 'N', 'G')
-
-typedef struct {
-  //
-  // Parts of this structure are initialized / torn down in various functions
-  // at various call depths. The table to the right should make it easier to
-  // track them.
-  //
-  //                        field              init function       init depth
-  //                        ----------------   ------------------  ----------
-  UINT32                    Signature;      // DriverBindingStart   0
-  VIRTIO_DEVICE_PROTOCOL    *VirtIo;        // DriverBindingStart   0
-  EFI_EVENT                 ExitBoot;       // DriverBindingStart   0
-  VRING                     Ring;           // VirtioRingInit       2
-  EFI_RNG_PROTOCOL          Rng;            // VirtioRngInit        1
-} VIRTIO_RNG_DEV;
-
-#define VIRTIO_ENTROPY_SOURCE_FROM_RNG(RngPointer) \
-          CR (RngPointer, VIRTIO_RNG_DEV, Rng, VIRTIO_RNG_SIG)
-
-#endif
+/** @file\r
+\r
+  Private definitions of the VirtioRng RNG driver\r
+\r
+  Copyright (C) 2016, Linaro Ltd.\r
+\r
+  This program and the accompanying materials are licensed and made available\r
+  under the terms and conditions of the BSD License which accompanies this\r
+  distribution. The full text of the license may be found at\r
+  http://opensource.org/licenses/bsd-license.php\r
+\r
+  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, WITHOUT\r
+  WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+\r
+**/\r
+\r
+#ifndef _VIRTIO_RNG_DXE_H_\r
+#define _VIRTIO_RNG_DXE_H_\r
+\r
+#include <Protocol/ComponentName.h>\r
+#include <Protocol/DriverBinding.h>\r
+#include <Protocol/Rng.h>\r
+\r
+#include <IndustryStandard/Virtio.h>\r
+\r
+#define VIRTIO_RNG_SIG SIGNATURE_32 ('V', 'R', 'N', 'G')\r
+\r
+typedef struct {\r
+  //\r
+  // Parts of this structure are initialized / torn down in various functions\r
+  // at various call depths. The table to the right should make it easier to\r
+  // track them.\r
+  //\r
+  //                        field              init function       init depth\r
+  //                        ----------------   ------------------  ----------\r
+  UINT32                    Signature;      // DriverBindingStart   0\r
+  VIRTIO_DEVICE_PROTOCOL    *VirtIo;        // DriverBindingStart   0\r
+  EFI_EVENT                 ExitBoot;       // DriverBindingStart   0\r
+  VRING                     Ring;           // VirtioRingInit       2\r
+  EFI_RNG_PROTOCOL          Rng;            // VirtioRngInit        1\r
+  VOID                      *RingMap;       // VirtioRingMap        2\r
+} VIRTIO_RNG_DEV;\r
+\r
+#define VIRTIO_ENTROPY_SOURCE_FROM_RNG(RngPointer) \\r
+          CR (RngPointer, VIRTIO_RNG_DEV, Rng, VIRTIO_RNG_SIG)\r
+\r
+#endif\r