Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

scsi.h File Reference


Detailed Description

VirtualBox - SCSI declarations. (DEV,+)

Definition in file scsi.h.

#include <iprt/assert.h>

Go to the source code of this file.

Classes

struct  SCSIINQUIRYCDB
struct  SCSIINQUIRYDATA

SCSI_INQUIRY

#define SCSI_INQUIRY_DATA_PERIPHERAL_DEVICE_TYPE_CD_DVD   0x05
#define SCSI_INQUIRY_DATA_PERIPHERAL_DEVICE_TYPE_DIRECT_ACCESS   0x00
#define SCSI_INQUIRY_DATA_PERIPHERAL_DEVICE_TYPE_SEQUENTIAL_ACCESS   0x01
#define SCSI_INQUIRY_DATA_PERIPHERAL_DEVICE_TYPE_UNKNOWN   0x1f
#define SCSI_INQUIRY_DATA_PERIPHERAL_QUALIFIER_CONNECTED   0x00
#define SCSI_INQUIRY_DATA_PERIPHERAL_QUALIFIER_NOT_CONNECTED_BUT_SUPPORTED   0x01
#define SCSI_INQUIRY_DATA_PERIPHERAL_QUALIFIER_NOT_CONNECTED_NOT_SUPPORTED   0x03
typedef const SCSIINQUIRYCDB * PCSCSIINQUIRYCDB
typedef const SCSIINQUIRYDATA * PCSCSIINQUIRYDATA
typedef SCSIINQUIRYCDB * PSCSIINQUIRYCDB
typedef SCSIINQUIRYDATA * PSCSIINQUIRYDATA
 AssertCompileSize (SCSIINQUIRYDATA, 97)
 AssertCompileSize (SCSIINQUIRYCDB, 6)

Defines

#define SCSI_ASC_ILLEGAL_OPCODE   0x20
#define SCSI_ASC_INV_FIELD_IN_CMD_PACKET   0x24
#define SCSI_ASC_INVALID_MESSAGE   0x49
#define SCSI_ASC_LOGICAL_BLOCK_OOR   0x21
#define SCSI_ASC_LOGICAL_UNIT_DOES_NOT_RESPOND_TO_SELECTION   0x00
#define SCSI_ASC_MEDIA_LOAD_OR_EJECT_FAILED   0x53
#define SCSI_ASC_MEDIUM_MAY_HAVE_CHANGED   0x28
#define SCSI_ASC_MEDIUM_NOT_PRESENT   0x3a
#define SCSI_ASC_NONE   0x00
#define SCSI_ASC_READ_ERROR   0x11
#define SCSI_ASC_SAVING_PARAMETERS_NOT_SUPPORTED   0x39
#define SCSI_MAX_BUFFER_SIZE   (100 * _1K)
#define SCSI_MODEPAGE_CD_STATUS   0x2a
#define SCSI_MODEPAGE_ERROR_RECOVERY   0x01
#define SCSI_MODEPAGE_WRITE_PARAMETER   0x05
#define SCSI_PAGECONTROL_CHANGEABLE   0x01
#define SCSI_PAGECONTROL_CURRENT   0x00
#define SCSI_PAGECONTROL_DEFAULT   0x02
#define SCSI_PAGECONTROL_SAVED   0x03
#define SCSI_SENSE_ABORTED_COMMAND   11
#define SCSI_SENSE_BLANK_CHECK   8
#define SCSI_SENSE_COPY_ABORTED   10
#define SCSI_SENSE_DATA_PROTECT   7
#define SCSI_SENSE_HARDWARE_ERROR   4
#define SCSI_SENSE_ILLEGAL_REQUEST   5
#define SCSI_SENSE_MEDIUM_ERROR   3
#define SCSI_SENSE_MISCOMPARE   14
#define SCSI_SENSE_NONE   0
#define SCSI_SENSE_NOT_READY   2
#define SCSI_SENSE_RECOVERED_ERROR   1
#define SCSI_SENSE_RESPONSE_CODE_CURR_DESC   0x72
#define SCSI_SENSE_RESPONSE_CODE_CURR_FIXED   0x70
#define SCSI_SENSE_RESPONSE_CODE_DEFERRED_DESC   0x73
#define SCSI_SENSE_RESPONSE_CODE_DEFERRED_FIXED   0x71
#define SCSI_SENSE_UNIT_ATTENTION   6
#define SCSI_SENSE_VENDOR_SPECIFIC   9
#define SCSI_SENSE_VOLUME_OVERFLOW   13
#define SCSI_STATUS_ACA_ACTIVE   0x30
#define SCSI_STATUS_BUSY   0x08
#define SCSI_STATUS_CHECK_CONDITION   0x02
#define SCSI_STATUS_COMMAND_TERMINATED   0x22
#define SCSI_STATUS_CONDITION_MET   0x04
#define SCSI_STATUS_DATA_UNDEROVER_RUN   0x12
#define SCSI_STATUS_INTERMEDIATE   0x10
#define SCSI_STATUS_INTERMEDIATE_CONDITION_MET   0x14
#define SCSI_STATUS_OK   0x00
#define SCSI_STATUS_QUEUE_FULL   0x28
#define SCSI_STATUS_RESERVATION_CONFLICT   0x18
#define SCSI_STATUS_TASK_ABORTED   0x40

Enumerations

enum  SCSICMD {
  SCSI_BLANK = 0xa1, SCSI_CLOSE_TRACK_SESSION = 0x5b, SCSI_ERASE_10 = 0x2c, SCSI_FORMAT_UNIT = 0x04,
  SCSI_GET_CONFIGURATION = 0x46, SCSI_GET_EVENT_STATUS_NOTIFICATION = 0x4a, SCSI_GET_PERFORMANCE = 0xac, SCSI_INQUIRY = 0x12,
  SCSI_LOAD_UNLOAD_MEDIUM = 0xa6, SCSI_MECHANISM_STATUS = 0xbd, SCSI_MODE_SELECT_10 = 0x55, SCSI_MODE_SENSE_10 = 0x5a,
  SCSI_PAUSE_RESUME = 0x4b, SCSI_PLAY_AUDIO_10 = 0x45, SCSI_PLAY_AUDIO_12 = 0xa5, SCSI_PLAY_AUDIO_MSF = 0x47,
  SCSI_PREVENT_ALLOW_MEDIUM_REMOVAL = 0x1e, SCSI_READ_10 = 0x28, SCSI_READ_12 = 0xa8, SCSI_READ_BUFFER = 0x3c,
  SCSI_READ_BUFFER_CAPACITY = 0x5c, SCSI_READ_CAPACITY = 0x25, SCSI_READ_CD = 0xbe, SCSI_READ_CD_MSF = 0xb9,
  SCSI_READ_DISC_INFORMATION = 0x51, SCSI_READ_DVD_STRUCTURE = 0xad, SCSI_READ_FORMAT_CAPACITIES = 0x23, SCSI_READ_SUBCHANNEL = 0x42,
  SCSI_READ_TOC_PMA_ATIP = 0x43, SCSI_READ_TRACK_INFORMATION = 0x52, SCSI_REPAIR_TRACK = 0x58, SCSI_REPORT_KEY = 0xa4,
  SCSI_REQUEST_SENSE = 0x03, SCSI_RESERVE_TRACK = 0x53, SCSI_SCAN = 0xba, SCSI_SEEK_10 = 0x2b,
  SCSI_SEND_CUE_SHEET = 0x5d, SCSI_SEND_DVD_STRUCTURE = 0xbf, SCSI_SEND_EVENT = 0xa2, SCSI_SEND_KEY = 0xa3,
  SCSI_SEND_OPC_INFORMATION = 0x54, SCSI_SET_CD_SPEED = 0xbb, SCSI_SET_READ_AHEAD = 0xa7, SCSI_SET_STREAMING = 0xb6,
  SCSI_START_STOP_UNIT = 0x1b, SCSI_STOP_PLAY_SCAN = 0x4e, SCSI_SYNCHRONIZE_CACHE = 0x35, SCSI_TEST_UNIT_READY = 0x00,
  SCSI_VERIFY_10 = 0x2f, SCSI_WRITE_10 = 0x2a, SCSI_WRITE_12 = 0xaa, SCSI_WRITE_AND_VERIFY_10 = 0x2e,
  SCSI_WRITE_BUFFER = 0x3b, SCSI_MODE_SELECT_6 = 0x15, SCSI_MODE_SENSE_6 = 0x1a, SCSI_REPORT_LUNS = 0xa0,
  SCSI_REPORT_DENSITY = 0x44, SCSI_REZERO_UNIT = 0x01, SCSI_SERVICE_ACTION_IN_16 = 0x9e, SCSI_READ_16 = 0x88,
  SCSI_WRITE_16 = 0x8a, SCSI_READ_6 = 0x08, SCSI_WRITE_6 = 0x0a, SCSI_LOG_SENSE = 0x4d
}
enum  SCSISVCACTIONIN { SCSI_SVC_ACTION_IN_READ_CAPACITY_16 = 0x10 }


Generated by  Doxygen 1.6.0   Back to index