summaryrefslogtreecommitdiffstatshomepage
path: root/src/mess/machine/sa1403d.h
blob: 286a3ef4fa4d33967b3e7586ee1d04428c8e830f (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
41
42
/**********************************************************************

    Shugart SA1403D Winchester Disk Controller emulation

    Copyright MESS Team.
    Visit http://mamedev.org for licensing and usage restrictions.

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

#pragma once

#ifndef __SA1403D__
#define __SA1403D__

#include "emu.h"
#include "imagedev/harddriv.h"
#include "machine/scsihd.h"

class sa1403d_device  : public scsihd_device
{
public:
	// construction/destruction
	sa1403d_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);

	// optional information overrides
	virtual const rom_entry *device_rom_region() const;
	virtual machine_config_constructor device_mconfig_additions() const;
	virtual ioport_constructor device_input_ports() const;

	virtual void ExecCommand( int *transferLength );
	virtual void WriteData( UINT8 *data, int dataLength );

protected:
	// device-level overrides
	virtual void device_config_complete() { m_shortname = "sa1403d"; }
};


// device type definition
extern const device_type SA1403D;

#endif