blob: a890848152de8c13f3bc0cd859494cb2f07968af (
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, const char *tag, device_t *owner, UINT32 clock);
virtual machine_config_constructor device_mconfig_additions() const;
protected:
virtual void device_start();
virtual void device_reset();
virtual void scsi_command();
virtual UINT8 scsi_get_data(int id, int pos);
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
|