blob: e0e58661389b6db77c438dd7d70ec06c164e2ac7 (
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
43
44
45
46
47
48
49
50
51
52
53
|
// license:BSD-3-Clause
// copyright-holders:Miodrag Milanovic
#ifndef MAME_BUS_ISA_IDE_H
#define MAME_BUS_ISA_IDE_H
#pragma once
#include "isa.h"
#include "machine/idectrl.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> isa16_ide_device
class isa16_ide_device : public device_t,
public device_isa16_card_interface
{
public:
// construction/destruction
isa16_ide_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
static void cdrom_headphones(device_t *device);
protected:
// device-level overrides
virtual void device_start() override;
virtual void device_reset() override;
// optional information overrides
virtual void device_add_mconfig(machine_config &config) override;
virtual ioport_constructor device_input_ports() const override;
private:
DECLARE_WRITE_LINE_MEMBER(ide_interrupt);
READ8_MEMBER(ide16_alt_r);
WRITE8_MEMBER(ide16_alt_w);
bool is_primary() { return m_is_primary; }
void map(address_map &map);
void alt_map(address_map &map);
// internal state
bool m_is_primary;
required_device<ide_controller_device> m_ide;
};
// device type definition
DECLARE_DEVICE_TYPE(ISA16_IDE, isa16_ide_device)
#endif // MAME_BUS_ISA_IDE_H
|