summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/t10sbc.h
blob: d32c0beee5775504224b9215ab7990922cde5d0b (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
// license:BSD-3-Clause
// copyright-holders:smf
/***************************************************************************

t10sbc.h

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

#ifndef _T10SBC_H_
#define _T10SBC_H_

#include "t10spc.h"
#include "imagedev/harddriv.h"

class t10sbc : public virtual t10spc
{
public:
	virtual void SetDevice( void *device );
	virtual void GetDevice( void **device );
	virtual void ExecCommand();
	virtual void WriteData( UINT8 *data, int dataLength );
	virtual void ReadData( UINT8 *data, int dataLength );

protected:
	virtual void t10_start(device_t &device);
	virtual void t10_reset();

	harddisk_image_device *m_image;

	UINT32 m_lba;
	UINT32 m_blocks;

	hard_disk_file *m_disk;
};

#endif