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 (const byte *cdb, SCSI::Phase &phase, unsigned &blocks)=0
 
virtual unsigned executingCmd (SCSI::Phase &phase, unsigned &blocks)=0
 
virtual byte getStatusCode ()=0
 
virtual int msgOut (byte value)=0
 
virtual byte 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 const unsigned BIT_SCSI2 = 0x0001
 
static const unsigned BIT_SCSI2_ONLY = 0x0002
 
static const unsigned BIT_SCSI3 = 0x0004
 
static const unsigned MODE_SCSI1 = 0x0000
 
static const unsigned MODE_SCSI2 = 0x0003
 
static const unsigned MODE_SCSI3 = 0x0005
 
static const unsigned MODE_UNITATTENTION = 0x0008
 
static const unsigned MODE_MEGASCSI = 0x0010
 
static const unsigned MODE_NOVAXIS = 0x0100
 
static const unsigned BUFFER_SIZE = 0x10000
 

Detailed Description

Definition at line 8 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 ( const byte 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 byte openmsx::SCSIDevice::getStatusCode ( )
pure virtual

Implemented in openmsx::DummySCSIDevice.

◆ isSelected()

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

Implemented in openmsx::DummySCSIDevice.

◆ msgIn()

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

Implemented in openmsx::DummySCSIDevice.

◆ msgOut()

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

Implemented in openmsx::DummySCSIDevice.

◆ reset()

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

Implemented in openmsx::DummySCSIDevice.

Member Data Documentation

◆ BIT_SCSI2

const unsigned openmsx::SCSIDevice::BIT_SCSI2 = 0x0001
static

Definition at line 11 of file SCSIDevice.hh.

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

◆ BIT_SCSI2_ONLY

const unsigned openmsx::SCSIDevice::BIT_SCSI2_ONLY = 0x0002
static

Definition at line 12 of file SCSIDevice.hh.

◆ BIT_SCSI3

const unsigned openmsx::SCSIDevice::BIT_SCSI3 = 0x0004
static

Definition at line 13 of file SCSIDevice.hh.

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

◆ BUFFER_SIZE

const unsigned openmsx::SCSIDevice::BUFFER_SIZE = 0x10000
static

Definition at line 23 of file SCSIDevice.hh.

Referenced by openmsx::MB89352::MB89352(), and openmsx::WD33C93::WD33C93().

◆ MODE_MEGASCSI

const unsigned openmsx::SCSIDevice::MODE_MEGASCSI = 0x0010
static

Definition at line 19 of file SCSIDevice.hh.

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

◆ MODE_NOVAXIS

const unsigned openmsx::SCSIDevice::MODE_NOVAXIS = 0x0100
static

◆ MODE_SCSI1

const unsigned openmsx::SCSIDevice::MODE_SCSI1 = 0x0000
static

Definition at line 15 of file SCSIDevice.hh.

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

◆ MODE_SCSI2

const unsigned openmsx::SCSIDevice::MODE_SCSI2 = 0x0003
static

Definition at line 16 of file SCSIDevice.hh.

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

◆ MODE_SCSI3

const unsigned openmsx::SCSIDevice::MODE_SCSI3 = 0x0005
static

Definition at line 17 of file SCSIDevice.hh.

◆ MODE_UNITATTENTION

const unsigned openmsx::SCSIDevice::MODE_UNITATTENTION = 0x0008
static

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