]> 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:25:59 +0000 (14:25 -0800)
committerMarcelo Vanzin <mvanzin@vmware.com>
Wed, 24 Feb 2010 22:25:59 +0000 (14:25 -0800)
Signed-off-by: Marcelo Vanzin <mvanzin@vmware.com>
open-vm-tools/modules/linux/pvscsi/scsi_defs.h

index b544489e7df39e67a54c3d4b18598b153fe021cb..ddd5d42e512eeb5f21b1a8cae6303950adeab076 100644 (file)
@@ -672,6 +672,7 @@ typedef struct {
 #define SCSI_MS_PAGE_CDAUDIO  0x0e     // CD-ROM audio (CDROM)
 #define SCSI_MS_PAGE_COMPRESS 0x0f     // data compression (TAPE)
 #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_CDCAPS   0x2a     // CD-ROM capabilities and mechanical status (CDROM)
 // more defined...
@@ -976,6 +977,19 @@ typedef struct {
    uint8    port3Volume;
 } SCSICDROMAudioPage;
 
+typedef struct {
+   uint8    page     :6,   // page code: 0x1a
+                     :1,
+            ps       :1;
+   uint8    len;           // page length 0x0a
+   uint8    reserved;
+   uint8    standby  :1,   // standby timer enabled
+            idle     :1,   // idle timer enabled
+                     :6;
+   uint32   idleTimer;     // inactivity time until idle (100 ms)
+   uint32   standbyTimer;  // inactivity time until standby (100 ms)
+} SCSICDROMPowerPage;
+
 typedef struct {
    uint8    page     :6,   // page code: 0x2a
                      :1,
@@ -1931,6 +1945,7 @@ struct {
 #define SCSI_FEAT_CODE_REMOVABLEMEDIUM 0x3
 #define SCSI_FEAT_CODE_RANDOMREADABLE  0x10
 #define SCSI_FEAT_CODE_DVDREAD         0x1F
+#define SCSI_FEAT_CODE_POWERMANAGEMENT 0x100
 #define SCSI_FEAT_CODE_VMWARE_LAST     0xFF80
    uint16 code;
    uint8  featureCurrent:1,