blob: 96fa7188ed3a4aab48bb0ea9d177a4223fe9140f (
plain) (
tree)
|
|
// 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 clock);
// Sega GD-ROM handler
virtual void ExecCommand();
virtual void WriteData( UINT8 *data, int dataLength );
virtual void ReadData( UINT8 *data, int dataLength );
protected:
virtual void process_buffer();
// device-level overrides
virtual void device_start();
virtual void device_reset();
private:
UINT8 GDROM_Cmd11_Reply[32];
UINT32 read_type; // for command 0x30 only
UINT32 data_select; // for command 0x30 only
UINT32 transferOffset;
};
// device type definition
extern const device_type GDROM;
#endif
|