summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/d9060hd.c
blob: b59d61b06ffb5ffc9a9b6396128bc8aa44659b2b (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
/*
 * D9060 - SASI + TANDON TM602S
 *
 */

#include "emu.h"
#include "machine/d9060hd.h"

// device type definition
const device_type D9060HD = &device_creator<d9060hd_device>;

d9060hd_device::d9060hd_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock)
	: scsihd_device(mconfig, D9060HD, "D9060HD", tag, owner, clock, "d9060hd", __FILE__)
{
}

#define D9060HD_CMD_PHYSICAL_DEVICE_ID ( 0xc0 )
#define D9060HD_CMD_DRIVE_DIAGS ( 0xe3 )

void d9060hd_device::ExecCommand( int *transferLength )
{
	switch( command[ 0 ] )
	{
	case D9060HD_CMD_PHYSICAL_DEVICE_ID:
	case D9060HD_CMD_DRIVE_DIAGS:
		SetPhase(SCSI_PHASE_STATUS);
		*transferLength = 0;
		break;

	default:
		scsihd_device::ExecCommand( transferLength );
		break;
	}
}