blob: b516d1e0987e372253a4707af5d58b7f416a3724 (
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
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
#ifndef __NSCSI_CD_H__
#define __NSCSI_CD_H__
#include "machine/nscsi_bus.h"
#include "cdrom.h"
class nscsi_cdrom_device : public nscsi_full_device
{
public:
nscsi_cdrom_device(const machine_config &mconfig, std::string tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const override;
protected:
virtual void device_start() override;
virtual void device_reset() override;
virtual void scsi_command() override;
virtual UINT8 scsi_get_data(int id, int pos) override;
private:
UINT8 block[2048];
cdrom_file *cdrom;
int bytes_per_sector;
int lba, cur_lba, blocks;
void return_no_cd();
};
extern const device_type NSCSI_CDROM;
#endif
|