]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Changes in shared code that don't affect open-vm-tools functionality.
authorVMware, Inc <>
Wed, 24 Feb 2010 22:26:12 +0000 (14:26 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Wed, 24 Feb 2010 22:26:12 +0000 (14:26 -0800)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/pvscsi/scsi_defs.h

index ddd5d42e512eeb5f21b1a8cae6303950adeab076..946e4e198f7ac5a94ba0846f2819701bd2550656 100644 (file)
@@ -674,6 +674,7 @@ typedef struct {
 #define SCSI_MS_PAGE_CONFIG   0x10     // device configuration (TAPE)
 #define SCSI_MS_PAGE_POWER    0x1a     // power condition (CDROM)
 #define SCSI_MS_PAGE_EXCEPT   0x1c     // informal exception (ALL:SCSI-3)
+#define SCSI_MS_PAGE_TIMEOUT  0x1d     // time-out and protect (CDROM)
 #define SCSI_MS_PAGE_CDCAPS   0x2a     // CD-ROM capabilities and mechanical status (CDROM)
 // more defined...
 #define SCSI_MS_PAGE_ALL      0x3f     // all available pages (ALL)
@@ -990,6 +991,21 @@ typedef struct {
    uint32   standbyTimer;  // inactivity time until standby (100 ms)
 } SCSICDROMPowerPage;
 
+typedef struct {
+   uint8    page     :6,   // page code: 0x1d
+                     :1,
+            ps       :1;
+   uint8    len;           // page length 0x08
+   uint8    reserved1[2];
+   uint8    swpp     :1,   // software write protect
+            disp     :1,   // make unit unavailable until power is reapplied
+            tmoe     :1,   // time out parameters are in effect
+                     :5;
+   uint8    reserved2;
+   uint16   minTimeOut1;   // "Group 1 Minimum Time-out (Seconds)"
+   uint16   minTimeOut2;   // "Group 2 Minimum Time-out (Seconds)"
+} SCSICDROMTimeoutPage;
+
 typedef struct {
    uint8    page     :6,   // page code: 0x2a
                      :1,
@@ -1946,6 +1962,7 @@ struct {
 #define SCSI_FEAT_CODE_RANDOMREADABLE  0x10
 #define SCSI_FEAT_CODE_DVDREAD         0x1F
 #define SCSI_FEAT_CODE_POWERMANAGEMENT 0x100
+#define SCSI_FEAT_CODE_TIMEOUT         0x105
 #define SCSI_FEAT_CODE_VMWARE_LAST     0xFF80
    uint16 code;
    uint8  featureCurrent:1,