]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Include/IndustryStandard/Scsi.h
Read-Capacity16 command added for SCSI drivers
[mirror_edk2.git] / MdePkg / Include / IndustryStandard / Scsi.h
index 1d0eb3f308cfb39489a3d48d99c3e386d790f015..721c096abea8815056d7621c97b5e860e6d6b2d5 100644 (file)
@@ -49,6 +49,7 @@
 #define EFI_SCSI_OP_READ6           0x08\r
 #define EFI_SCSI_OP_READ10          0x28\r
 #define EFI_SCSI_OP_READ_CAPACITY   0x25\r
+#define EFI_SCSI_OP_READ_CAPACITY16 0x9e\r
 #define EFI_SCSI_OP_READ_DEFECT     0x37\r
 #define EFI_SCSI_OP_READ_LONG       0x3e\r
 #define EFI_SCSI_OP_REASSIGN_BLK    0x07\r
@@ -199,7 +200,7 @@ typedef struct {
   UINT8 Peripheral_Type : 5;\r
   UINT8 Peripheral_Qualifier : 3;\r
   UINT8 DeviceType_Modifier : 7;\r
-  UINT8 RMB : 1;\r
+  UINT8 Rmb : 1;\r
   UINT8 Version;\r
   UINT8 Response_Data_Format;\r
   UINT8 Addnl_Length;\r
@@ -215,7 +216,7 @@ typedef struct {
   UINT8 Segment_Number;\r
   UINT8 Sense_Key : 4;\r
   UINT8 Reserved_21 : 1;\r
-  UINT8 ILI : 1;\r
+  UINT8 Ili : 1;\r
   UINT8 Reserved_22 : 2;\r
   UINT8 Information_3_6[4];\r
   UINT8 Addnl_Sense_Length;           ///< Additional sense length (n-7)\r
@@ -240,6 +241,27 @@ typedef struct {
   UINT8 BlockSize0;\r
 } EFI_SCSI_DISK_CAPACITY_DATA;\r
 \r
+typedef struct {\r
+  UINT8 LastLba7;\r
+  UINT8 LastLba6;\r
+  UINT8 LastLba5;\r
+  UINT8 LastLba4;\r
+  UINT8 LastLba3;\r
+  UINT8 LastLba2;\r
+  UINT8 LastLba1;\r
+  UINT8 LastLba0;\r
+  UINT8 BlockSize3;\r
+  UINT8 BlockSize2;\r
+  UINT8 BlockSize1;\r
+  UINT8 BlockSize0;\r
+  UINT8 Protection;\r
+  UINT8 LogicPerPhysical;\r
+  UINT8 LowestAlignLogic2;  \r
+  UINT8 LowestAlignLogic1;    \r
+  UINT8 Reserved[16];  \r
+} EFI_SCSI_DISK_CAPACITY_DATA16;\r
+\r
+\r
 #pragma pack()\r
 \r
 //\r