blob: 954e3b29231d85d0be4391ea6beb6681fc355367 (
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_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
|