mirror of
https://github.com/holub/mame
synced 2025-04-25 17:56:43 +03:00
created new base class for scsi devices which scsihle derives from (nw)
This commit is contained in:
parent
22ab437a65
commit
56e3c23328
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -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/scsicb.h svneol=native#text/plain
|
||||||
src/emu/machine/scsicd.c 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/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.c svneol=native#text/plain
|
||||||
src/emu/machine/scsihd.h svneol=native#text/plain
|
src/emu/machine/scsihd.h svneol=native#text/plain
|
||||||
src/emu/machine/scsihle.c svneol=native#text/plain
|
src/emu/machine/scsihle.c svneol=native#text/plain
|
||||||
|
@ -249,9 +249,10 @@ EMUMACHINEOBJS = \
|
|||||||
$(EMUMACHINE)/s3c2410.o \
|
$(EMUMACHINE)/s3c2410.o \
|
||||||
$(EMUMACHINE)/s3c2440.o \
|
$(EMUMACHINE)/s3c2440.o \
|
||||||
$(EMUMACHINE)/s3520cf.o \
|
$(EMUMACHINE)/s3520cf.o \
|
||||||
$(EMUMACHINE)/scsicb.o \
|
|
||||||
$(EMUMACHINE)/scsibus.o \
|
$(EMUMACHINE)/scsibus.o \
|
||||||
|
$(EMUMACHINE)/scsicb.o \
|
||||||
$(EMUMACHINE)/scsicd.o \
|
$(EMUMACHINE)/scsicd.o \
|
||||||
|
$(EMUMACHINE)/scsidev.o \
|
||||||
$(EMUMACHINE)/scsihd.o \
|
$(EMUMACHINE)/scsihd.o \
|
||||||
$(EMUMACHINE)/scsihle.o \
|
$(EMUMACHINE)/scsihle.o \
|
||||||
$(EMUMACHINE)/secflash.o \
|
$(EMUMACHINE)/secflash.o \
|
||||||
|
12
src/emu/machine/scsidev.c
Normal file
12
src/emu/machine/scsidev.c
Normal 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
20
src/emu/machine/scsidev.h
Normal 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
|
@ -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"
|
#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) :
|
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)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,11 +4,13 @@
|
|||||||
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef _SCSIDEV_H_
|
#ifndef _SCSIHLE_H_
|
||||||
#define _SCSIDEV_H_
|
#define _SCSIHLE_H_
|
||||||
|
|
||||||
|
#include "machine/scsidev.h"
|
||||||
|
|
||||||
// base handler
|
// base handler
|
||||||
class scsihle_device : public device_t
|
class scsihle_device : public scsidev_device
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// construction/destruction
|
// construction/destruction
|
||||||
|
Loading…
Reference in New Issue
Block a user