summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/scsi/scsihd.cpp
blob: 806e9f8fa5eb7894afed2252d6ab0e4ca1a00c86 (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
// license:BSD-3-Clause
// copyright-holders:smf
/***************************************************************************

 scsihd.c - Implementation of a SCSI hard disk drive

***************************************************************************/

#include "emu.h"
#include "scsihd.h"

// device type definition
DEFINE_DEVICE_TYPE(SCSIHD, scsihd_device, "scsihd", "SCSI HD")

scsihd_device::scsihd_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock)
	: scsihd_device(mconfig, SCSIHD, tag, owner, clock)
{
}

scsihd_device::scsihd_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, const XTAL &clock) :
	scsihle_device(mconfig, type, tag, owner, clock)
{
}

void scsihd_device::device_start()
{
	m_image = subdevice<harddisk_image_device>("image");

	scsihle_device::device_start();
}

void scsihd_device::device_add_mconfig(machine_config &config)
{
	HARDDISK(config, "image", "scsi_hdd");
}