VirtualBox

Changeset 47708 in vbox


Ignore:
Timestamp:
Aug 13, 2013 7:34:13 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87947
Message:

Added a few random SCSI constants.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/scsi.h

    r44528 r47708  
    9191    SCSI_SET_STREAMING                  = 0xb6,
    9292    SCSI_START_STOP_UNIT                = 0x1b,
     93    SCSI_LOAD_UNLOAD                    = 0x1b,
    9394    SCSI_STOP_PLAY_SCAN                 = 0x4e,
    9495    /** Synchronize Cache command. */
     
    111112    /** Rezero Unit command. Obsolete for ages now, but used by cdrecord. */
    112113    SCSI_REZERO_UNIT                    = 0x01,
     114    SCSI_REWIND                         = 0x01,
    113115    SCSI_SERVICE_ACTION_IN_16           = 0x9e,
    114116    SCSI_READ_16                        = 0x88,
     
    117119    SCSI_WRITE_6                        = 0x0a,
    118120    SCSI_LOG_SENSE                      = 0x4d,
    119     SCSI_UNMAP                          = 0x42
     121    SCSI_UNMAP                          = 0x42,
     122    SCSI_RESERVE_6                      = 0x16,
     123    SCSI_RELEASE_6                      = 0x17,
     124    SCSI_RESERVE_10                     = 0x56,
     125    SCSI_RELEASE_10                     = 0x57,
     126    SCSI_READ_BLOCK_LIMITS              = 0x05
    120127} SCSICMD;
    121128
     
    177184#define SCSI_SENSE_MISCOMPARE       14
    178185
    179 
    180 /* additional sense keys */
     186/* Additional sense bit flags (to be ORed with sense key). */
     187#define SCSI_SENSE_FLAG_FILEMARK    0x80
     188#define SCSI_SENSE_FLAG_EOM         0x40
     189#define SCSI_SENSE_FLAG_ILI         0x20
     190
     191/* Additional sense keys */
    181192#define SCSI_ASC_NONE                                       0x00
    182193#define SCSI_ASC_WRITE_ERROR                                0x0c
     
    196207
    197208/** Additional sense code qualifiers (ASCQ). */
     209/* NB: The ASC/ASCQ combination determines the full meaning. */
    198210#define SCSI_ASCQ_SYSTEM_BUFFER_FULL                        0x01
    199211#define SCSI_ASCQ_POWER_ON_RESET_BUS_DEVICE_RESET_OCCURRED  0x00
     212#define SCSI_ASCQ_END_OF_DATA_DETECTED                      0x05
     213#define SCSI_ASCQ_FILEMARK_DETECTED                         0x01
     214#define SCSI_ASCQ_EOP_EOM_DETECTED                          0x02
     215#define SCSI_ASCQ_SETMARK_DETECTED                          0x03
     216#define SCSI_ASCQ_BOP_BOM_DETECTED                          0x04
    200217
    201218/** @name SCSI_INQUIRY
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette