]> git.proxmox.com Git - mirror_edk2.git/blobdiff - OvmfPkg/VirtioScsiDxe/VirtioScsi.h
MdeModulePkg: Fix use-after-free error in InstallConfigurationTable()
[mirror_edk2.git] / OvmfPkg / VirtioScsiDxe / VirtioScsi.h
index f5220b2215a19e6b3f34e6ab00e17cbf8471009f..6d00567e8cb8304cfc6dc868195a791f34064b5a 100644 (file)
@@ -20,7 +20,6 @@
 \r
 #include <Protocol/ComponentName.h>\r
 #include <Protocol/DriverBinding.h>\r
-#include <Protocol/PciIo.h>\r
 #include <Protocol/ScsiPassThruExt.h>\r
 \r
 #include <IndustryStandard/Virtio.h>\r
@@ -33,7 +32,7 @@
 // identification, and 8 bytes for LUN identification.\r
 //\r
 // EFI_EXT_SCSI_PASS_THRU_MODE.AdapterId is also a target identifier,\r
-// consisting of 4 bytes. Make sure TARGET_MAX_BYTES can accomodate both\r
+// consisting of 4 bytes. Make sure TARGET_MAX_BYTES can accommodate both\r
 // AdapterId and our target identifiers.\r
 //\r
 #if TARGET_MAX_BYTES < 4\r
@@ -49,18 +48,18 @@ typedef struct {
   // 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
-  EFI_PCI_IO_PROTOCOL             *PciIo;                // DriverBindingStart  0\r
-  UINT64                          OriginalPciAttributes; // DriverBindingStart  0\r
-  BOOLEAN                         InOutSupported;        // VirtioScsiInit      1\r
-  UINT16                          MaxTarget;             // VirtioScsiInit      1\r
-  UINT32                          MaxLun;                // VirtioScsiInit      1\r
-  UINT32                          MaxSectors;            // VirtioScsiInit      1\r
-  VRING                           Ring;                  // VirtioRingInit      2\r
-  EFI_EXT_SCSI_PASS_THRU_PROTOCOL PassThru;              // VirtioScsiInit      1\r
-  EFI_EXT_SCSI_PASS_THRU_MODE     PassThruMode;          // VirtioScsiInit      1\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
+  BOOLEAN                         InOutSupported; // VirtioScsiInit      1\r
+  UINT16                          MaxTarget;      // VirtioScsiInit      1\r
+  UINT32                          MaxLun;         // VirtioScsiInit      1\r
+  UINT32                          MaxSectors;     // VirtioScsiInit      1\r
+  VRING                           Ring;           // VirtioRingInit      2\r
+  EFI_EXT_SCSI_PASS_THRU_PROTOCOL PassThru;       // VirtioScsiInit      1\r
+  EFI_EXT_SCSI_PASS_THRU_MODE     PassThruMode;   // VirtioScsiInit      1\r
 } VSCSI_DEV;\r
 \r
 #define VIRTIO_SCSI_FROM_PASS_THRU(PassThruPointer) \\r