summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/scsibus.h
blob: 25bb50429d66076be6f9234179106e782d0c8c52 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*

scsibus.h

*/

#pragma once

#ifndef _SCSIBUS_H_
#define _SCSIBUS_H_

#include "machine/scsidev.h"

class scsibus_device : public device_t
{
public:
	// construction/destruction
	scsibus_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
	/* SCSI Bus read/write */

	void scsi_update();

protected:
	// device-level overrides
	virtual void device_start();

private:
	scsidev_device *devices[16];

	UINT32 data;
	int deviceCount;
};

#define MCFG_SCSIBUS_ADD(_tag) \
	MCFG_DEVICE_ADD(_tag, SCSIBUS, 0)

// device type definition
extern const device_type SCSIBUS;

#endif