openMSX
Public Member Functions | Static Public Attributes | List of all members
openmsx::SCSIDevice Class Referenceabstract

#include <SCSIDevice.hh>

Inheritance diagram for openmsx::SCSIDevice:
Inheritance graph
[legend]

Public Member Functions

virtual ~SCSIDevice ()=default
 
virtual void reset ()=0
 
virtual bool isSelected ()=0
 
virtual unsigned executeCmd (std::span< const uint8_t, 12 > cdb, SCSI::Phase &phase, unsigned &blocks)=0
 
virtual unsigned executingCmd (SCSI::Phase &phase, unsigned &blocks)=0
 
virtual uint8_t getStatusCode ()=0
 
virtual int msgOut (uint8_t value)=0
 
virtual uint8_t msgIn ()=0
 
virtual void disconnect ()=0
 
virtual void busReset ()=0
 
virtual unsigned dataIn (unsigned &blocks)=0
 
virtual unsigned dataOut (unsigned &blocks)=0
 

Static Public Attributes

static constexpr unsigned BIT_SCSI2 = 0x0001
 
static constexpr unsigned BIT_SCSI2_ONLY = 0x0002
 
static constexpr unsigned BIT_SCSI3 = 0x0004
 
static constexpr unsigned MODE_SCSI1 = 0x0000
 
static constexpr unsigned MODE_SCSI2 = 0x0003
 
static constexpr unsigned MODE_SCSI3 = 0x0005
 
static constexpr unsigned MODE_UNITATTENTION = 0x0008
 
static constexpr unsigned MODE_MEGASCSI = 0x0010
 
static constexpr unsigned MODE_NOVAXIS = 0x0100
 
static constexpr unsigned BUFFER_SIZE = 0x10000
 

Detailed Description

Definition at line 9 of file SCSIDevice.hh.

Constructor & Destructor Documentation

◆ ~SCSIDevice()

virtual openmsx::SCSIDevice::~SCSIDevice ( )
virtualdefault

Member Function Documentation

◆ busReset()

virtual void openmsx::SCSIDevice::busReset ( )
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ dataIn()

virtual unsigned openmsx::SCSIDevice::dataIn ( unsigned &  blocks)
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ dataOut()

virtual unsigned openmsx::SCSIDevice::dataOut ( unsigned &  blocks)
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ disconnect()

virtual void openmsx::SCSIDevice::disconnect ( )
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ executeCmd()

virtual unsigned openmsx::SCSIDevice::executeCmd ( std::span< const uint8_t, 12 >  cdb,
SCSI::Phase phase,
unsigned &  blocks 
)
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ executingCmd()

virtual unsigned openmsx::SCSIDevice::executingCmd ( SCSI::Phase phase,
unsigned &  blocks 
)
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ getStatusCode()

virtual uint8_t openmsx::SCSIDevice::getStatusCode ( )
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ isSelected()

virtual bool openmsx::SCSIDevice::isSelected ( )
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ msgIn()

virtual uint8_t openmsx::SCSIDevice::msgIn ( )
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ msgOut()

virtual int openmsx::SCSIDevice::msgOut ( uint8_t  value)
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ reset()

virtual void openmsx::SCSIDevice::reset ( )
pure virtual

Implemented in openmsx::DummySCSIDevice.

Member Data Documentation

◆ BIT_SCSI2

constexpr unsigned openmsx::SCSIDevice::BIT_SCSI2 = 0x0001
staticconstexpr

Definition at line 12 of file SCSIDevice.hh.

◆ BIT_SCSI2_ONLY

constexpr unsigned openmsx::SCSIDevice::BIT_SCSI2_ONLY = 0x0002
staticconstexpr

Definition at line 13 of file SCSIDevice.hh.

◆ BIT_SCSI3

constexpr unsigned openmsx::SCSIDevice::BIT_SCSI3 = 0x0004
staticconstexpr

Definition at line 14 of file SCSIDevice.hh.

◆ BUFFER_SIZE

constexpr unsigned openmsx::SCSIDevice::BUFFER_SIZE = 0x10000
staticconstexpr

Definition at line 24 of file SCSIDevice.hh.

◆ MODE_MEGASCSI

constexpr unsigned openmsx::SCSIDevice::MODE_MEGASCSI = 0x0010
staticconstexpr

Definition at line 20 of file SCSIDevice.hh.

Referenced by openmsx::MB89352::MB89352().

◆ MODE_NOVAXIS

constexpr unsigned openmsx::SCSIDevice::MODE_NOVAXIS = 0x0100
staticconstexpr

Definition at line 22 of file SCSIDevice.hh.

Referenced by openmsx::WD33C93::WD33C93().

◆ MODE_SCSI1

constexpr unsigned openmsx::SCSIDevice::MODE_SCSI1 = 0x0000
staticconstexpr

Definition at line 16 of file SCSIDevice.hh.

Referenced by openmsx::WD33C93::WD33C93().

◆ MODE_SCSI2

constexpr unsigned openmsx::SCSIDevice::MODE_SCSI2 = 0x0003
staticconstexpr

Definition at line 17 of file SCSIDevice.hh.

Referenced by openmsx::MB89352::MB89352().

◆ MODE_SCSI3

constexpr unsigned openmsx::SCSIDevice::MODE_SCSI3 = 0x0005
staticconstexpr

Definition at line 18 of file SCSIDevice.hh.

◆ MODE_UNITATTENTION

constexpr unsigned openmsx::SCSIDevice::MODE_UNITATTENTION = 0x0008
staticconstexpr

Definition at line 19 of file SCSIDevice.hh.

Referenced by openmsx::WD33C93::WD33C93().


The documentation for this class was generated from the following file: