#include <Protocol/PciIo.h>\r
#include <Protocol/VirtioDevice.h>\r
\r
-#define VIRTIO_1_0_SIGNATURE SIGNATURE_32 ('V', 'I', 'O', '1')\r
+#define VIRTIO_1_0_SIGNATURE SIGNATURE_32 ('V', 'I', 'O', '1')\r
\r
//\r
// Type of the PCI BAR that contains a VirtIo 1.0 config structure.\r
// The type below defines the access to a VirtIo 1.0 config structure.\r
//\r
typedef struct {\r
- BOOLEAN Exists; // The device exposes this structure\r
- VIRTIO_1_0_BAR_TYPE BarType;\r
- UINT8 Bar;\r
- UINT32 Offset; // Offset into BAR where structure starts\r
- UINT32 Length; // Length of structure in BAR.\r
+ BOOLEAN Exists; // The device exposes this structure\r
+ VIRTIO_1_0_BAR_TYPE BarType;\r
+ UINT8 Bar;\r
+ UINT32 Offset; // Offset into BAR where structure starts\r
+ UINT32 Length; // Length of structure in BAR.\r
} VIRTIO_1_0_CONFIG;\r
\r
typedef struct {\r
- UINT32 Signature;\r
- VIRTIO_DEVICE_PROTOCOL VirtIo;\r
- EFI_PCI_IO_PROTOCOL *PciIo;\r
- UINT64 OriginalPciAttributes;\r
- VIRTIO_1_0_CONFIG CommonConfig; // Common settings\r
- VIRTIO_1_0_CONFIG NotifyConfig; // Notifications\r
- UINT32 NotifyOffsetMultiplier;\r
- VIRTIO_1_0_CONFIG SpecificConfig; // Device specific settings\r
+ UINT32 Signature;\r
+ VIRTIO_DEVICE_PROTOCOL VirtIo;\r
+ EFI_PCI_IO_PROTOCOL *PciIo;\r
+ UINT64 OriginalPciAttributes;\r
+ VIRTIO_1_0_CONFIG CommonConfig; // Common settings\r
+ VIRTIO_1_0_CONFIG NotifyConfig; // Notifications\r
+ UINT32 NotifyOffsetMultiplier;\r
+ VIRTIO_1_0_CONFIG SpecificConfig; // Device specific settings\r
} VIRTIO_1_0_DEV;\r
\r
#define VIRTIO_1_0_FROM_VIRTIO_DEVICE(Device) \\r