diff options
author | 2019-03-26 11:13:37 +1100 | |
---|---|---|
committer | 2019-03-26 11:13:37 +1100 | |
commit | 97b67170277437131adf6ed4d60139c172529e4f (patch) | |
tree | 7a5cbf608f191075f1612b1af15832c206a3fe2d /src/devices/bus/isa/bt54x.h | |
parent | b380514764cf857469bae61c11143a19f79a74c5 (diff) |
(nw) Clean up the mess on master
This effectively reverts b380514764cf857469bae61c11143a19f79a74c5 and
c24473ddff715ecec2e258a6eb38960cf8c8e98e, restoring the state at
598cd5227223c3b04ca31f0dbc1981256d9ea3ff.
Before pushing, please check that what you're about to push is sane.
Check your local commit log and ensure there isn't anything out-of-place
before pushing to mainline. When things like this happen, it wastes
everyone's time. I really don't need this in a week when real work⢠is
busting my balls and I'm behind where I want to be with preparing for
MAME release.
Diffstat (limited to 'src/devices/bus/isa/bt54x.h')
-rw-r--r-- | src/devices/bus/isa/bt54x.h | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/src/devices/bus/isa/bt54x.h b/src/devices/bus/isa/bt54x.h new file mode 100644 index 00000000000..dfdd0009416 --- /dev/null +++ b/src/devices/bus/isa/bt54x.h @@ -0,0 +1,74 @@ +// license:BSD-3-Clause +// copyright-holders:AJR +/*************************************************************************** + + BusTek/BusLogic BT-54x series PC/AT SCSI host adapters + +***************************************************************************/ + +#ifndef MAME_BUS_ISA_BT54X_H +#define MAME_BUS_ISA_BT54X_H + +#pragma once + +#include "isa.h" +#include "cpu/i86/i186.h" +#include "machine/upd765.h" + +class bt54x_device : public device_t, public device_isa16_card_interface +{ +public: + static constexpr feature_type unemulated_features() { return feature::DISK; } + +protected: + bt54x_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, u32 clock); + + virtual void device_start() override; + + u8 local_status_r(); + + void local_map(address_map &map); + void asc_config(device_t *device); + void fsc_config(device_t *device); + void fsc_base(machine_config &config); + + required_device<i80188_cpu_device> m_mpu; + required_device<upd765_family_device> m_fdc; + required_region_ptr<u8> m_bios; +}; + +class bt542b_device : public bt54x_device +{ +public: + bt542b_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + +protected: + virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override; +}; + +class bt542bh_device : public bt54x_device +{ +public: + bt542bh_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + +protected: + virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override; +}; + +class bt545s_device : public bt54x_device +{ +public: + bt545s_device(const machine_config &mconfig, const char *tag, device_t *owner, u32 clock); + +protected: + virtual void device_add_mconfig(machine_config &config) override; + virtual const tiny_rom_entry *device_rom_region() const override; +}; + +DECLARE_DEVICE_TYPE(BT542B, bt542b_device) +DECLARE_DEVICE_TYPE(BT542BH, bt542bh_device) +DECLARE_DEVICE_TYPE(BT545S, bt545s_device) + +#endif // MAME_BUS_ISA_BT54X_H |