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

Definition at line 92 of file SCSI.hh.

◆ DT_Communications

constexpr byte openmsx::SCSI::DT_Communications = 0x09

Definition at line 96 of file SCSI.hh.

◆ DT_DirectAccess

constexpr byte openmsx::SCSI::DT_DirectAccess = 0x00

Definition at line 87 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ DT_MediaChanger

constexpr byte openmsx::SCSI::DT_MediaChanger = 0x08

Definition at line 95 of file SCSI.hh.

◆ DT_OpticalMemory

constexpr byte openmsx::SCSI::DT_OpticalMemory = 0x07

Definition at line 94 of file SCSI.hh.

◆ DT_Printer

constexpr byte openmsx::SCSI::DT_Printer = 0x02

Definition at line 89 of file SCSI.hh.

◆ DT_Processor

constexpr byte openmsx::SCSI::DT_Processor = 0x03

Definition at line 90 of file SCSI.hh.

◆ DT_Scanner

constexpr byte openmsx::SCSI::DT_Scanner = 0x06

Definition at line 93 of file SCSI.hh.

◆ DT_SequencialAccess

constexpr byte openmsx::SCSI::DT_SequencialAccess = 0x01

Definition at line 88 of file SCSI.hh.

◆ DT_Undefined

constexpr byte openmsx::SCSI::DT_Undefined = 0x1f

Definition at line 97 of file SCSI.hh.

◆ DT_WriteOnce

constexpr byte openmsx::SCSI::DT_WriteOnce = 0x04

Definition at line 91 of file SCSI.hh.

◆ MSG_ABORT

constexpr byte openmsx::SCSI::MSG_ABORT = 0x06

Definition at line 75 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ MSG_BUS_DEVICE_RESET

constexpr byte openmsx::SCSI::MSG_BUS_DEVICE_RESET = 0x0c

Definition at line 79 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ MSG_COMMAND_COMPLETE

constexpr byte openmsx::SCSI::MSG_COMMAND_COMPLETE = 0x00

Definition at line 73 of file SCSI.hh.

◆ MSG_INITIATOR_DETECT_ERROR

constexpr byte openmsx::SCSI::MSG_INITIATOR_DETECT_ERROR = 0x05

Definition at line 74 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ MSG_NO_OPERATION

constexpr byte openmsx::SCSI::MSG_NO_OPERATION = 0x08

Definition at line 77 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ MSG_PARITY_ERROR

constexpr byte openmsx::SCSI::MSG_PARITY_ERROR = 0x09

Definition at line 78 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ MSG_REJECT

constexpr byte openmsx::SCSI::MSG_REJECT = 0x07

Definition at line 76 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_CHANGE_DEFINITION

constexpr byte openmsx::SCSI::OP_CHANGE_DEFINITION = 0x40

Definition at line 41 of file SCSI.hh.

◆ OP_FORMAT_UNIT

constexpr byte openmsx::SCSI::OP_FORMAT_UNIT = 0x04

Definition at line 21 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_GROUP1

constexpr byte openmsx::SCSI::OP_GROUP1 = 0x20

Definition at line 34 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_GROUP2

constexpr byte openmsx::SCSI::OP_GROUP2 = 0x40

Definition at line 40 of file SCSI.hh.

◆ OP_INQUIRY

constexpr byte openmsx::SCSI::OP_INQUIRY = 0x12

Definition at line 26 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_MODE_SENSE

constexpr byte openmsx::SCSI::OP_MODE_SENSE = 0x1A

Definition at line 29 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_PAUSE_RESUME

constexpr byte openmsx::SCSI::OP_PAUSE_RESUME = 0x4B

Definition at line 49 of file SCSI.hh.

◆ OP_PLAY_AUDIO

constexpr byte openmsx::SCSI::OP_PLAY_AUDIO = 0x45

Definition at line 45 of file SCSI.hh.

◆ OP_PLAY_AUDIO12

constexpr byte openmsx::SCSI::OP_PLAY_AUDIO12 = 0xA5

Definition at line 51 of file SCSI.hh.

◆ OP_PLAY_AUDIO_MSF

constexpr byte openmsx::SCSI::OP_PLAY_AUDIO_MSF = 0x47

Definition at line 46 of file SCSI.hh.

◆ OP_PLAY_TRACK_INDEX

constexpr byte openmsx::SCSI::OP_PLAY_TRACK_INDEX = 0x48

Definition at line 47 of file SCSI.hh.

◆ OP_PLAY_TRACK_RELATIVE

constexpr byte openmsx::SCSI::OP_PLAY_TRACK_RELATIVE = 0x49

Definition at line 48 of file SCSI.hh.

◆ OP_PLAY_TRACK_RELATIVE12

constexpr byte openmsx::SCSI::OP_PLAY_TRACK_RELATIVE12 = 0xA9

Definition at line 53 of file SCSI.hh.

◆ OP_READ10

constexpr byte openmsx::SCSI::OP_READ10 = 0x28

Definition at line 36 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_READ12

constexpr byte openmsx::SCSI::OP_READ12 = 0xA8

Definition at line 52 of file SCSI.hh.

◆ OP_READ6

constexpr byte openmsx::SCSI::OP_READ6 = 0x08

Definition at line 23 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_READ_CAPACITY

constexpr byte openmsx::SCSI::OP_READ_CAPACITY = 0x25

Definition at line 35 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_READ_CD

constexpr byte openmsx::SCSI::OP_READ_CD = 0xBE

Definition at line 55 of file SCSI.hh.

◆ OP_READ_CD_MSF

constexpr byte openmsx::SCSI::OP_READ_CD_MSF = 0xB9

Definition at line 54 of file SCSI.hh.

◆ OP_READ_HEADER

constexpr byte openmsx::SCSI::OP_READ_HEADER = 0x44

Definition at line 44 of file SCSI.hh.

◆ OP_READ_SUB_CHANNEL

constexpr byte openmsx::SCSI::OP_READ_SUB_CHANNEL = 0x42

Definition at line 42 of file SCSI.hh.

◆ OP_READ_TOC

constexpr byte openmsx::SCSI::OP_READ_TOC = 0x43

Definition at line 43 of file SCSI.hh.

◆ OP_REASSIGN_BLOCKS

constexpr byte openmsx::SCSI::OP_REASSIGN_BLOCKS = 0x07

Definition at line 22 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_RELEASE_UNIT

constexpr byte openmsx::SCSI::OP_RELEASE_UNIT = 0x17

Definition at line 28 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_REQUEST_SENSE

constexpr byte openmsx::SCSI::OP_REQUEST_SENSE = 0x03

Definition at line 20 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_RESERVE_UNIT

constexpr byte openmsx::SCSI::OP_RESERVE_UNIT = 0x16

Definition at line 27 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_REZERO_UNIT

constexpr byte openmsx::SCSI::OP_REZERO_UNIT = 0x01

Definition at line 19 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_SEEK10

constexpr byte openmsx::SCSI::OP_SEEK10 = 0x2B

Definition at line 38 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_SEEK6

constexpr byte openmsx::SCSI::OP_SEEK6 = 0x0B

Definition at line 25 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_SEND_DIAGNOSTIC

constexpr byte openmsx::SCSI::OP_SEND_DIAGNOSTIC = 0x1D

Definition at line 31 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_START_STOP_UNIT

constexpr byte openmsx::SCSI::OP_START_STOP_UNIT = 0x1B

Definition at line 30 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_TEST_UNIT_READY

constexpr byte openmsx::SCSI::OP_TEST_UNIT_READY = 0x00

Definition at line 18 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_WRITE10

constexpr byte openmsx::SCSI::OP_WRITE10 = 0x2A

Definition at line 37 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ OP_WRITE6

constexpr byte openmsx::SCSI::OP_WRITE6 = 0x0A

Definition at line 24 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_ILLEGAL_BLOCK_ADDRESS

constexpr unsigned openmsx::SCSI::SENSE_ILLEGAL_BLOCK_ADDRESS = 0x052100

Definition at line 64 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_ILLEGAL_MESSAGE

constexpr unsigned openmsx::SCSI::SENSE_ILLEGAL_MESSAGE = 0x0b4900

Definition at line 70 of file SCSI.hh.

◆ SENSE_INITIATOR_DETECTED_ERR

constexpr unsigned openmsx::SCSI::SENSE_INITIATOR_DETECTED_ERR = 0x0b4800

Definition at line 69 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_INVALID_COMMAND_CODE

constexpr unsigned openmsx::SCSI::SENSE_INVALID_COMMAND_CODE = 0x052000

Definition at line 63 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_INVALID_LUN

constexpr unsigned openmsx::SCSI::SENSE_INVALID_LUN = 0x052500

Definition at line 65 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_MEDIUM_NOT_PRESENT

constexpr unsigned openmsx::SCSI::SENSE_MEDIUM_NOT_PRESENT = 0x023a00

Definition at line 60 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_MESSAGE_REJECT_ERROR

constexpr unsigned openmsx::SCSI::SENSE_MESSAGE_REJECT_ERROR = 0x0b4300

Definition at line 68 of file SCSI.hh.

◆ SENSE_NO_SENSE

constexpr unsigned openmsx::SCSI::SENSE_NO_SENSE = 0x000000

Definition at line 58 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_NOT_READY

constexpr unsigned openmsx::SCSI::SENSE_NOT_READY = 0x020400

Definition at line 59 of file SCSI.hh.

◆ SENSE_POWER_ON

constexpr unsigned openmsx::SCSI::SENSE_POWER_ON = 0x062900

Definition at line 66 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_UNRECOVERED_READ_ERROR

constexpr unsigned openmsx::SCSI::SENSE_UNRECOVERED_READ_ERROR = 0x031100

Definition at line 61 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_WRITE_FAULT

constexpr unsigned openmsx::SCSI::SENSE_WRITE_FAULT = 0x040300

Definition at line 62 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ SENSE_WRITE_PROTECT

constexpr unsigned openmsx::SCSI::SENSE_WRITE_PROTECT = 0x072700

Definition at line 67 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().

◆ ST_BUSY

constexpr byte openmsx::SCSI::ST_BUSY = 8

Definition at line 84 of file SCSI.hh.

◆ ST_CHECK_CONDITION

constexpr byte openmsx::SCSI::ST_CHECK_CONDITION = 2

◆ ST_GOOD

constexpr byte openmsx::SCSI::ST_GOOD = 0

Definition at line 82 of file SCSI.hh.

Referenced by openmsx::SCSIHD::SCSIHD(), and openmsx::SCSILS120::~SCSILS120().