openMSX
Enumerations | Variables
openmsx::SCSI Namespace Reference

Enumerations

enum  Phase {
  UNDEFINED , BUS_FREE , ARBITRATION , SELECTION ,
  RESELECTION , COMMAND , EXECUTE , DATA_IN ,
  DATA_OUT , STATUS , MSG_OUT , MSG_IN
}
 

Variables

constexpr uint8_t OP_TEST_UNIT_READY = 0x00
 
constexpr uint8_t OP_REZERO_UNIT = 0x01
 
constexpr uint8_t OP_REQUEST_SENSE = 0x03
 
constexpr uint8_t OP_FORMAT_UNIT = 0x04
 
constexpr uint8_t OP_REASSIGN_BLOCKS = 0x07
 
constexpr uint8_t OP_READ6 = 0x08
 
constexpr uint8_t OP_WRITE6 = 0x0A
 
constexpr uint8_t OP_SEEK6 = 0x0B
 
constexpr uint8_t OP_INQUIRY = 0x12
 
constexpr uint8_t OP_RESERVE_UNIT = 0x16
 
constexpr uint8_t OP_RELEASE_UNIT = 0x17
 
constexpr uint8_t OP_MODE_SENSE = 0x1A
 
constexpr uint8_t OP_START_STOP_UNIT = 0x1B
 
constexpr uint8_t OP_SEND_DIAGNOSTIC = 0x1D
 
constexpr uint8_t OP_GROUP1 = 0x20
 
constexpr uint8_t OP_READ_CAPACITY = 0x25
 
constexpr uint8_t OP_READ10 = 0x28
 
constexpr uint8_t OP_WRITE10 = 0x2A
 
constexpr uint8_t OP_SEEK10 = 0x2B
 
constexpr uint8_t OP_GROUP2 = 0x40
 
constexpr uint8_t OP_CHANGE_DEFINITION = 0x40
 
constexpr uint8_t OP_READ_SUB_CHANNEL = 0x42
 
constexpr uint8_t OP_READ_TOC = 0x43
 
constexpr uint8_t OP_READ_HEADER = 0x44
 
constexpr uint8_t OP_PLAY_AUDIO = 0x45
 
constexpr uint8_t OP_PLAY_AUDIO_MSF = 0x47
 
constexpr uint8_t OP_PLAY_TRACK_INDEX = 0x48
 
constexpr uint8_t OP_PLAY_TRACK_RELATIVE = 0x49
 
constexpr uint8_t OP_PAUSE_RESUME = 0x4B
 
constexpr uint8_t OP_PLAY_AUDIO12 = 0xA5
 
constexpr uint8_t OP_READ12 = 0xA8
 
constexpr uint8_t OP_PLAY_TRACK_RELATIVE12 = 0xA9
 
constexpr uint8_t OP_READ_CD_MSF = 0xB9
 
constexpr uint8_t OP_READ_CD = 0xBE
 
constexpr uint32_t SENSE_NO_SENSE = 0x000000
 
constexpr uint32_t SENSE_NOT_READY = 0x020400
 
constexpr uint32_t SENSE_MEDIUM_NOT_PRESENT = 0x023a00
 
constexpr uint32_t SENSE_UNRECOVERED_READ_ERROR = 0x031100
 
constexpr uint32_t SENSE_WRITE_FAULT = 0x040300
 
constexpr uint32_t SENSE_INVALID_COMMAND_CODE = 0x052000
 
constexpr uint32_t SENSE_ILLEGAL_BLOCK_ADDRESS = 0x052100
 
constexpr uint32_t SENSE_INVALID_LUN = 0x052500
 
constexpr uint32_t SENSE_POWER_ON = 0x062900
 
constexpr uint32_t SENSE_WRITE_PROTECT = 0x072700
 
constexpr uint32_t SENSE_MESSAGE_REJECT_ERROR = 0x0b4300
 
constexpr uint32_t SENSE_INITIATOR_DETECTED_ERR = 0x0b4800
 
constexpr uint32_t SENSE_ILLEGAL_MESSAGE = 0x0b4900
 
constexpr uint8_t MSG_COMMAND_COMPLETE = 0x00
 
constexpr uint8_t MSG_INITIATOR_DETECT_ERROR = 0x05
 
constexpr uint8_t MSG_ABORT = 0x06
 
constexpr uint8_t MSG_REJECT = 0x07
 
constexpr uint8_t MSG_NO_OPERATION = 0x08
 
constexpr uint8_t MSG_PARITY_ERROR = 0x09
 
constexpr uint8_t MSG_BUS_DEVICE_RESET = 0x0c
 
constexpr uint8_t ST_GOOD = 0
 
constexpr uint8_t ST_CHECK_CONDITION = 2
 
constexpr uint8_t ST_BUSY = 8
 
constexpr uint8_t DT_DirectAccess = 0x00
 
constexpr uint8_t DT_SequencialAccess = 0x01
 
constexpr uint8_t DT_Printer = 0x02
 
constexpr uint8_t DT_Processor = 0x03
 
constexpr uint8_t DT_WriteOnce = 0x04
 
constexpr uint8_t DT_CDROM = 0x05
 
constexpr uint8_t DT_Scanner = 0x06
 
constexpr uint8_t DT_OpticalMemory = 0x07
 
constexpr uint8_t DT_MediaChanger = 0x08
 
constexpr uint8_t DT_Communications = 0x09
 
constexpr uint8_t DT_Undefined = 0x1f
 

Enumeration Type Documentation

◆ Phase

Enumerator
UNDEFINED 
BUS_FREE 
ARBITRATION 
SELECTION 
RESELECTION 
COMMAND 
EXECUTE 
DATA_IN 
DATA_OUT 
STATUS 
MSG_OUT 
MSG_IN 

Definition at line 99 of file SCSI.hh.

Variable Documentation

◆ DT_CDROM

constexpr uint8_t openmsx::SCSI::DT_CDROM = 0x05
inlineconstexpr

Definition at line 92 of file SCSI.hh.

◆ DT_Communications

constexpr uint8_t openmsx::SCSI::DT_Communications = 0x09
inlineconstexpr

Definition at line 96 of file SCSI.hh.

◆ DT_DirectAccess

constexpr uint8_t openmsx::SCSI::DT_DirectAccess = 0x00
inlineconstexpr

Definition at line 87 of file SCSI.hh.

◆ DT_MediaChanger

constexpr uint8_t openmsx::SCSI::DT_MediaChanger = 0x08
inlineconstexpr

Definition at line 95 of file SCSI.hh.

◆ DT_OpticalMemory

constexpr uint8_t openmsx::SCSI::DT_OpticalMemory = 0x07
inlineconstexpr

Definition at line 94 of file SCSI.hh.

◆ DT_Printer

constexpr uint8_t openmsx::SCSI::DT_Printer = 0x02
inlineconstexpr

Definition at line 89 of file SCSI.hh.

◆ DT_Processor

constexpr uint8_t openmsx::SCSI::DT_Processor = 0x03
inlineconstexpr

Definition at line 90 of file SCSI.hh.

◆ DT_Scanner

constexpr uint8_t openmsx::SCSI::DT_Scanner = 0x06
inlineconstexpr

Definition at line 93 of file SCSI.hh.

◆ DT_SequencialAccess

constexpr uint8_t openmsx::SCSI::DT_SequencialAccess = 0x01
inlineconstexpr

Definition at line 88 of file SCSI.hh.

◆ DT_Undefined

constexpr uint8_t openmsx::SCSI::DT_Undefined = 0x1f
inlineconstexpr

Definition at line 97 of file SCSI.hh.

◆ DT_WriteOnce

constexpr uint8_t openmsx::SCSI::DT_WriteOnce = 0x04
inlineconstexpr

Definition at line 91 of file SCSI.hh.

◆ MSG_ABORT

constexpr uint8_t openmsx::SCSI::MSG_ABORT = 0x06
inlineconstexpr

Definition at line 75 of file SCSI.hh.

◆ MSG_BUS_DEVICE_RESET

constexpr uint8_t openmsx::SCSI::MSG_BUS_DEVICE_RESET = 0x0c
inlineconstexpr

Definition at line 79 of file SCSI.hh.

◆ MSG_COMMAND_COMPLETE

constexpr uint8_t openmsx::SCSI::MSG_COMMAND_COMPLETE = 0x00
inlineconstexpr

Definition at line 73 of file SCSI.hh.

◆ MSG_INITIATOR_DETECT_ERROR

constexpr uint8_t openmsx::SCSI::MSG_INITIATOR_DETECT_ERROR = 0x05
inlineconstexpr

Definition at line 74 of file SCSI.hh.

◆ MSG_NO_OPERATION

constexpr uint8_t openmsx::SCSI::MSG_NO_OPERATION = 0x08
inlineconstexpr

Definition at line 77 of file SCSI.hh.

◆ MSG_PARITY_ERROR

constexpr uint8_t openmsx::SCSI::MSG_PARITY_ERROR = 0x09
inlineconstexpr

Definition at line 78 of file SCSI.hh.

◆ MSG_REJECT

constexpr uint8_t openmsx::SCSI::MSG_REJECT = 0x07
inlineconstexpr

Definition at line 76 of file SCSI.hh.

◆ OP_CHANGE_DEFINITION

constexpr uint8_t openmsx::SCSI::OP_CHANGE_DEFINITION = 0x40
inlineconstexpr

Definition at line 41 of file SCSI.hh.

◆ OP_FORMAT_UNIT

constexpr uint8_t openmsx::SCSI::OP_FORMAT_UNIT = 0x04
inlineconstexpr

Definition at line 21 of file SCSI.hh.

◆ OP_GROUP1

constexpr uint8_t openmsx::SCSI::OP_GROUP1 = 0x20
inlineconstexpr

Definition at line 34 of file SCSI.hh.

◆ OP_GROUP2

constexpr uint8_t openmsx::SCSI::OP_GROUP2 = 0x40
inlineconstexpr

Definition at line 40 of file SCSI.hh.

◆ OP_INQUIRY

constexpr uint8_t openmsx::SCSI::OP_INQUIRY = 0x12
inlineconstexpr

Definition at line 26 of file SCSI.hh.

◆ OP_MODE_SENSE

constexpr uint8_t openmsx::SCSI::OP_MODE_SENSE = 0x1A
inlineconstexpr

Definition at line 29 of file SCSI.hh.

◆ OP_PAUSE_RESUME

constexpr uint8_t openmsx::SCSI::OP_PAUSE_RESUME = 0x4B
inlineconstexpr

Definition at line 49 of file SCSI.hh.

◆ OP_PLAY_AUDIO

constexpr uint8_t openmsx::SCSI::OP_PLAY_AUDIO = 0x45
inlineconstexpr

Definition at line 45 of file SCSI.hh.

◆ OP_PLAY_AUDIO12

constexpr uint8_t openmsx::SCSI::OP_PLAY_AUDIO12 = 0xA5
inlineconstexpr

Definition at line 51 of file SCSI.hh.

◆ OP_PLAY_AUDIO_MSF

constexpr uint8_t openmsx::SCSI::OP_PLAY_AUDIO_MSF = 0x47
inlineconstexpr

Definition at line 46 of file SCSI.hh.

◆ OP_PLAY_TRACK_INDEX

constexpr uint8_t openmsx::SCSI::OP_PLAY_TRACK_INDEX = 0x48
inlineconstexpr

Definition at line 47 of file SCSI.hh.

◆ OP_PLAY_TRACK_RELATIVE

constexpr uint8_t openmsx::SCSI::OP_PLAY_TRACK_RELATIVE = 0x49
inlineconstexpr

Definition at line 48 of file SCSI.hh.

◆ OP_PLAY_TRACK_RELATIVE12

constexpr uint8_t openmsx::SCSI::OP_PLAY_TRACK_RELATIVE12 = 0xA9
inlineconstexpr

Definition at line 53 of file SCSI.hh.

◆ OP_READ10

constexpr uint8_t openmsx::SCSI::OP_READ10 = 0x28
inlineconstexpr

Definition at line 36 of file SCSI.hh.

◆ OP_READ12

constexpr uint8_t openmsx::SCSI::OP_READ12 = 0xA8
inlineconstexpr

Definition at line 52 of file SCSI.hh.

◆ OP_READ6

constexpr uint8_t openmsx::SCSI::OP_READ6 = 0x08
inlineconstexpr

Definition at line 23 of file SCSI.hh.

◆ OP_READ_CAPACITY

constexpr uint8_t openmsx::SCSI::OP_READ_CAPACITY = 0x25
inlineconstexpr

Definition at line 35 of file SCSI.hh.

◆ OP_READ_CD

constexpr uint8_t openmsx::SCSI::OP_READ_CD = 0xBE
inlineconstexpr

Definition at line 55 of file SCSI.hh.

◆ OP_READ_CD_MSF

constexpr uint8_t openmsx::SCSI::OP_READ_CD_MSF = 0xB9
inlineconstexpr

Definition at line 54 of file SCSI.hh.

◆ OP_READ_HEADER

constexpr uint8_t openmsx::SCSI::OP_READ_HEADER = 0x44
inlineconstexpr

Definition at line 44 of file SCSI.hh.

◆ OP_READ_SUB_CHANNEL

constexpr uint8_t openmsx::SCSI::OP_READ_SUB_CHANNEL = 0x42
inlineconstexpr

Definition at line 42 of file SCSI.hh.

◆ OP_READ_TOC

constexpr uint8_t openmsx::SCSI::OP_READ_TOC = 0x43
inlineconstexpr

Definition at line 43 of file SCSI.hh.

◆ OP_REASSIGN_BLOCKS

constexpr uint8_t openmsx::SCSI::OP_REASSIGN_BLOCKS = 0x07
inlineconstexpr

Definition at line 22 of file SCSI.hh.

◆ OP_RELEASE_UNIT

constexpr uint8_t openmsx::SCSI::OP_RELEASE_UNIT = 0x17
inlineconstexpr

Definition at line 28 of file SCSI.hh.

◆ OP_REQUEST_SENSE

constexpr uint8_t openmsx::SCSI::OP_REQUEST_SENSE = 0x03
inlineconstexpr

Definition at line 20 of file SCSI.hh.

◆ OP_RESERVE_UNIT

constexpr uint8_t openmsx::SCSI::OP_RESERVE_UNIT = 0x16
inlineconstexpr

Definition at line 27 of file SCSI.hh.

◆ OP_REZERO_UNIT

constexpr uint8_t openmsx::SCSI::OP_REZERO_UNIT = 0x01
inlineconstexpr

Definition at line 19 of file SCSI.hh.

◆ OP_SEEK10

constexpr uint8_t openmsx::SCSI::OP_SEEK10 = 0x2B
inlineconstexpr

Definition at line 38 of file SCSI.hh.

◆ OP_SEEK6

constexpr uint8_t openmsx::SCSI::OP_SEEK6 = 0x0B
inlineconstexpr

Definition at line 25 of file SCSI.hh.

◆ OP_SEND_DIAGNOSTIC

constexpr uint8_t openmsx::SCSI::OP_SEND_DIAGNOSTIC = 0x1D
inlineconstexpr

Definition at line 31 of file SCSI.hh.

◆ OP_START_STOP_UNIT

constexpr uint8_t openmsx::SCSI::OP_START_STOP_UNIT = 0x1B
inlineconstexpr

Definition at line 30 of file SCSI.hh.

◆ OP_TEST_UNIT_READY

constexpr uint8_t openmsx::SCSI::OP_TEST_UNIT_READY = 0x00
inlineconstexpr

Definition at line 18 of file SCSI.hh.

◆ OP_WRITE10

constexpr uint8_t openmsx::SCSI::OP_WRITE10 = 0x2A
inlineconstexpr

Definition at line 37 of file SCSI.hh.

◆ OP_WRITE6

constexpr uint8_t openmsx::SCSI::OP_WRITE6 = 0x0A
inlineconstexpr

Definition at line 24 of file SCSI.hh.

◆ SENSE_ILLEGAL_BLOCK_ADDRESS

constexpr uint32_t openmsx::SCSI::SENSE_ILLEGAL_BLOCK_ADDRESS = 0x052100
inlineconstexpr

Definition at line 64 of file SCSI.hh.

◆ SENSE_ILLEGAL_MESSAGE

constexpr uint32_t openmsx::SCSI::SENSE_ILLEGAL_MESSAGE = 0x0b4900
inlineconstexpr

Definition at line 70 of file SCSI.hh.

◆ SENSE_INITIATOR_DETECTED_ERR

constexpr uint32_t openmsx::SCSI::SENSE_INITIATOR_DETECTED_ERR = 0x0b4800
inlineconstexpr

Definition at line 69 of file SCSI.hh.

◆ SENSE_INVALID_COMMAND_CODE

constexpr uint32_t openmsx::SCSI::SENSE_INVALID_COMMAND_CODE = 0x052000
inlineconstexpr

Definition at line 63 of file SCSI.hh.

◆ SENSE_INVALID_LUN

constexpr uint32_t openmsx::SCSI::SENSE_INVALID_LUN = 0x052500
inlineconstexpr

Definition at line 65 of file SCSI.hh.

◆ SENSE_MEDIUM_NOT_PRESENT

constexpr uint32_t openmsx::SCSI::SENSE_MEDIUM_NOT_PRESENT = 0x023a00
inlineconstexpr

Definition at line 60 of file SCSI.hh.

◆ SENSE_MESSAGE_REJECT_ERROR

constexpr uint32_t openmsx::SCSI::SENSE_MESSAGE_REJECT_ERROR = 0x0b4300
inlineconstexpr

Definition at line 68 of file SCSI.hh.

◆ SENSE_NO_SENSE

constexpr uint32_t openmsx::SCSI::SENSE_NO_SENSE = 0x000000
inlineconstexpr

Definition at line 58 of file SCSI.hh.

◆ SENSE_NOT_READY

constexpr uint32_t openmsx::SCSI::SENSE_NOT_READY = 0x020400
inlineconstexpr

Definition at line 59 of file SCSI.hh.

◆ SENSE_POWER_ON

constexpr uint32_t openmsx::SCSI::SENSE_POWER_ON = 0x062900
inlineconstexpr

Definition at line 66 of file SCSI.hh.

◆ SENSE_UNRECOVERED_READ_ERROR

constexpr uint32_t openmsx::SCSI::SENSE_UNRECOVERED_READ_ERROR = 0x031100
inlineconstexpr

Definition at line 61 of file SCSI.hh.

◆ SENSE_WRITE_FAULT

constexpr uint32_t openmsx::SCSI::SENSE_WRITE_FAULT = 0x040300
inlineconstexpr

Definition at line 62 of file SCSI.hh.

◆ SENSE_WRITE_PROTECT

constexpr uint32_t openmsx::SCSI::SENSE_WRITE_PROTECT = 0x072700
inlineconstexpr

Definition at line 67 of file SCSI.hh.

◆ ST_BUSY

constexpr uint8_t openmsx::SCSI::ST_BUSY = 8
inlineconstexpr

Definition at line 84 of file SCSI.hh.

◆ ST_CHECK_CONDITION

constexpr uint8_t openmsx::SCSI::ST_CHECK_CONDITION = 2
inlineconstexpr

Definition at line 83 of file SCSI.hh.

Referenced by openmsx::DummySCSIDevice::getStatusCode().

◆ ST_GOOD

constexpr uint8_t openmsx::SCSI::ST_GOOD = 0
inlineconstexpr

Definition at line 82 of file SCSI.hh.