openMSX
Namespaces | Enumerations | Variables
SCSI.hh File Reference
#include <cstdint>
Include dependency graph for SCSI.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  openmsx
 This file implemented 3 utility functions:
 
namespace  openmsx::SCSI
 

Enumerations

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

Variables

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