summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/scsi/acb4070.h
blob: ea9b1583c28f7d32dbde9f11a7429cc90a92ed3a (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
43
44
45
46
47
// license:BSD-3-Clause
// copyright-holders:smf
#pragma once

#ifndef __ACB4070__
#define __ACB4070__

#include "scsihd.h"

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

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

private:
	struct adaptec_sense_t
	{
		// parameter list
		UINT8       reserved1[3];
		UINT8       length;

		// descriptor list
		UINT8       density;
		UINT8       reserved2[4];
		UINT8       block_size[3];

		// drive parameter list
		UINT8       format_code;
		UINT8       cylinder_count[2];
		UINT8       head_count;
		UINT8       reduced_write[2];
		UINT8       write_precomp[2];
		UINT8       landing_zone;
		UINT8       step_pulse_code;
		UINT8       bit_flags;
		UINT8       sectors_per_track;
	};
};

// device type definition
extern const device_type ACB4070;

#endif