created new base class for scsi devices which scsihle derives from (nw)

This commit is contained in:
smf- 2012-10-04 12:49:00 +00:00
parent 22ab437a65
commit 56e3c23328
6 changed files with 43 additions and 6 deletions

2
.gitattributes vendored
View File

@ -1208,6 +1208,8 @@ src/emu/machine/scsicb.c svneol=native#text/plain
src/emu/machine/scsicb.h svneol=native#text/plain
src/emu/machine/scsicd.c svneol=native#text/plain
src/emu/machine/scsicd.h svneol=native#text/plain
src/emu/machine/scsidev.c svneol=native#text/plain
src/emu/machine/scsidev.h svneol=native#text/plain
src/emu/machine/scsihd.c svneol=native#text/plain
src/emu/machine/scsihd.h svneol=native#text/plain
src/emu/machine/scsihle.c svneol=native#text/plain

View File

@ -249,9 +249,10 @@ EMUMACHINEOBJS = \
$(EMUMACHINE)/s3c2410.o \
$(EMUMACHINE)/s3c2440.o \
$(EMUMACHINE)/s3520cf.o \
$(EMUMACHINE)/scsicb.o \
$(EMUMACHINE)/scsibus.o \
$(EMUMACHINE)/scsicb.o \
$(EMUMACHINE)/scsicd.o \
$(EMUMACHINE)/scsidev.o \
$(EMUMACHINE)/scsihd.o \
$(EMUMACHINE)/scsihle.o \
$(EMUMACHINE)/secflash.o \

12
src/emu/machine/scsidev.c Normal file
View File

@ -0,0 +1,12 @@
/***************************************************************************
scsidev.c - Base class for SCSI devices.
***************************************************************************/
#include "machine/scsidev.h"
scsidev_device::scsidev_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, type, name, tag, owner, clock)
{
}

20
src/emu/machine/scsidev.h Normal file
View File

@ -0,0 +1,20 @@
/***************************************************************************
scsidev.h
***************************************************************************/
#ifndef _SCSIDEV_H_
#define _SCSIDEV_H_
#include "emu.h"
// base handler
class scsidev_device : public device_t
{
public:
// construction/destruction
scsidev_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock);
};
#endif

View File

@ -1,6 +1,6 @@
/***************************************************************************
scsihle.c - Base class for scsi devices.
scsihle.c - Base class for HLE'd SCSI devices.
***************************************************************************/
@ -8,7 +8,7 @@
#include "machine/scsihle.h"
scsihle_device::scsihle_device(const machine_config &mconfig, device_type type, const char *name, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, type, name, tag, owner, clock)
scsidev_device(mconfig, type, name, tag, owner, clock)
{
}

View File

@ -4,11 +4,13 @@
***************************************************************************/
#ifndef _SCSIDEV_H_
#define _SCSIDEV_H_
#ifndef _SCSIHLE_H_
#define _SCSIHLE_H_
#include "machine/scsidev.h"
// base handler
class scsihle_device : public device_t
class scsihle_device : public scsidev_device
{
public:
// construction/destruction