mirror of
https://github.com/holub/mame
synced 2025-04-25 01:40:16 +03:00
Reduce dependencies on pc_fdc_interface and machine/pc_fdc.h (nw)
This commit is contained in:
parent
d2e056120c
commit
20f8b011c5
@ -161,7 +161,7 @@ void mufdc_device::device_start()
|
||||
void mufdc_device::device_reset()
|
||||
{
|
||||
m_isa->install_rom(this, 0xc8000, 0xc9fff, shortname(), "option");
|
||||
m_isa->install_device(0x3f0, 0x3f7, *m_fdc, &pc_fdc_interface::map);
|
||||
m_isa->install_device(0x3f0, 0x3f7, *m_fdc, &mcs3201_device::map);
|
||||
m_isa->set_dma_channel(2, this, true);
|
||||
}
|
||||
|
||||
|
@ -57,7 +57,7 @@ private:
|
||||
DECLARE_WRITE_LINE_MEMBER( fdc_irq_w );
|
||||
DECLARE_WRITE_LINE_MEMBER( fdc_drq_w );
|
||||
|
||||
required_device<pc_fdc_interface> m_fdc;
|
||||
required_device<mcs3201_device> m_fdc;
|
||||
required_ioport m_config;
|
||||
};
|
||||
|
||||
|
@ -536,7 +536,7 @@ void fdc37c93x_device::map_fdc_addresses()
|
||||
{
|
||||
uint16_t base = get_base_address(LogicalDevice::FDC, 0);
|
||||
|
||||
m_isa->install_device(base, base + 7, *floppy_controller_fdcdev, &pc_fdc_interface::map);
|
||||
m_isa->install_device(base, base + 7, *floppy_controller_fdcdev, &smc37c78_device::map);
|
||||
}
|
||||
|
||||
void fdc37c93x_device::unmap_fdc_addresses()
|
||||
|
@ -147,7 +147,7 @@ private:
|
||||
devcb_write_line m_txd2_callback;
|
||||
devcb_write_line m_ndtr2_callback;
|
||||
devcb_write_line m_nrts2_callback;
|
||||
required_device<pc_fdc_interface> floppy_controller_fdcdev;
|
||||
required_device<smc37c78_device> floppy_controller_fdcdev;
|
||||
required_device<pc_lpt_device> pc_lpt_lptdev;
|
||||
required_device<ns16450_device> pc_serial1_comdev;
|
||||
required_device<ns16450_device> pc_serial2_comdev;
|
||||
|
@ -6,7 +6,6 @@
|
||||
#include "imagedev/cassette.h"
|
||||
#include "machine/i8255.h"
|
||||
#include "machine/ins8250.h"
|
||||
#include "machine/pc_fdc.h"
|
||||
#include "machine/pc_lpt.h"
|
||||
#include "machine/pckeybrd.h"
|
||||
#include "machine/pic8259.h"
|
||||
|
@ -897,7 +897,7 @@ void it8703f_device::map_fdc_addresses()
|
||||
{
|
||||
uint16_t base = get_base_address(LogicalDevice::FDC, 0);
|
||||
|
||||
iospace->install_device(base, base + 7, *floppy_controller_fdcdev, &pc_fdc_interface::map);
|
||||
iospace->install_device(base, base + 7, *floppy_controller_fdcdev, &smc37c78_device::map);
|
||||
}
|
||||
|
||||
void it8703f_device::map_lpt(address_map& map)
|
||||
|
@ -57,7 +57,6 @@ TODO: 68230 device
|
||||
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "machine/mc68681.h"
|
||||
#include "machine/pc_fdc.h"
|
||||
#include "machine/timekpr.h"
|
||||
#include "machine/wd_fdc.h"
|
||||
#include "sound/spkrdev.h"
|
||||
|
@ -40,7 +40,6 @@ Tandy 1000 (80386) variations:
|
||||
#include "machine/genpc.h"
|
||||
#include "machine/pckeybrd.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/pc_fdc.h"
|
||||
#include "machine/bankdev.h"
|
||||
#include "video/pc_t1t.h"
|
||||
#include "sound/sn76496.h"
|
||||
|
@ -286,7 +286,7 @@ private:
|
||||
devcb_write_line m_txd2_callback;
|
||||
devcb_write_line m_ndtr2_callback;
|
||||
devcb_write_line m_nrts2_callback;
|
||||
required_device<pc_fdc_interface> floppy_controller_fdcdev;
|
||||
required_device<smc37c78_device> floppy_controller_fdcdev;
|
||||
required_device<pc_lpt_device> pc_lpt_lptdev;
|
||||
required_device<ns16450_device> pc_serial1_comdev;
|
||||
required_device<ns16450_device> pc_serial2_comdev;
|
||||
|
Loading…
Reference in New Issue
Block a user