blob: 954e3b29231d85d0be4391ea6beb6681fc355367 (
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
|
// license:BSD-3-Clause
// copyright-holders:smf, Angelo Salese
/***************************************************************************
gdrom.h
***************************************************************************/
#ifndef _GDROM_H_
#define _GDROM_H_
#include "machine/atapicdr.h"
class gdrom_device : public atapi_cdrom_device
{
public:
gdrom_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// Sega GD-ROM handler
virtual void ExecCommand() override;
virtual void WriteData( uint8_t *data, int dataLength ) override;
virtual void ReadData( uint8_t *data, int dataLength ) override;
protected:
virtual void process_buffer() override;
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
private:
uint8_t GDROM_Cmd11_Reply[32];
uint32_t read_type; // for command 0x30 only
uint32_t data_select; // for command 0x30 only
uint32_t transferOffset;
};
// device type definition
extern const device_type GDROM;
#endif
|