mirror of
https://github.com/holub/mame
synced 2025-06-05 12:26:35 +03:00
Move IDE devices into bus/ata (nw) (#5756)
This commit is contained in:
parent
54b3968c74
commit
23a05f7e85
@ -280,6 +280,36 @@ if (BUSES["ASTROCADE"]~=null) then
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/bus/ata/atadev.h,BUSES["ATA"] = true
|
||||
--@src/devices/bus/ata/ataintf.h,BUSES["ATA"] = true
|
||||
---------------------------------------------------
|
||||
|
||||
if (MACHINES["ATAFLASH"]~=null) then
|
||||
BUSES["ATA"] = true
|
||||
end
|
||||
|
||||
if (BUSES["ATA"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/bus/ata/atadev.cpp",
|
||||
MAME_DIR .. "src/devices/bus/ata/atadev.h",
|
||||
MAME_DIR .. "src/devices/bus/ata/atahle.cpp",
|
||||
MAME_DIR .. "src/devices/bus/ata/atahle.h",
|
||||
MAME_DIR .. "src/devices/bus/ata/ataintf.cpp",
|
||||
MAME_DIR .. "src/devices/bus/ata/ataintf.h",
|
||||
MAME_DIR .. "src/devices/bus/ata/atapicdr.cpp",
|
||||
MAME_DIR .. "src/devices/bus/ata/atapicdr.h",
|
||||
MAME_DIR .. "src/devices/bus/ata/atapihle.cpp",
|
||||
MAME_DIR .. "src/devices/bus/ata/atapihle.h",
|
||||
MAME_DIR .. "src/devices/bus/ata/cr589.cpp",
|
||||
MAME_DIR .. "src/devices/bus/ata/cr589.h",
|
||||
MAME_DIR .. "src/devices/bus/ata/idehd.cpp",
|
||||
MAME_DIR .. "src/devices/bus/ata/idehd.h",
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/bus/bbc/fdc/fdc.h,BUSES["BBC_FDC"] = true
|
||||
|
@ -795,7 +795,6 @@ end
|
||||
---------------------------------------------------
|
||||
|
||||
if (MACHINES["ATAFLASH"]~=null) then
|
||||
MACHINES["IDE"] = true
|
||||
MACHINES["PCCARD"] = true
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/ataflash.cpp",
|
||||
@ -913,18 +912,6 @@ if (MACHINES["COM8116"]~=null) then
|
||||
}
|
||||
end
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/cr589.h,MACHINES["CR589"] = true
|
||||
---------------------------------------------------
|
||||
|
||||
if (MACHINES["CR589"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/cr589.cpp",
|
||||
MAME_DIR .. "src/devices/machine/cr589.h",
|
||||
}
|
||||
end
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/cs4031.h,MACHINES["CS4031"] = true
|
||||
@ -1436,27 +1423,14 @@ end
|
||||
|
||||
---------------------------------------------------
|
||||
--
|
||||
--@src/devices/machine/atadev.h,MACHINES["IDE"] = true
|
||||
--@src/devices/machine/ataintf.h,MACHINES["IDE"] = true
|
||||
--@src/devices/machine/idectrl.h,MACHINES["IDECTRL"] = true
|
||||
--@src/devices/machine/vt83c461.h,MACHINES["IDECTRL"] = true
|
||||
---------------------------------------------------
|
||||
|
||||
if (MACHINES["IDE"]~=null) then
|
||||
MACHINES["T10"] = true
|
||||
if (MACHINES["IDECTRL"]~=null) then
|
||||
files {
|
||||
MAME_DIR .. "src/devices/machine/atadev.cpp",
|
||||
MAME_DIR .. "src/devices/machine/atadev.h",
|
||||
MAME_DIR .. "src/devices/machine/atahle.cpp",
|
||||
MAME_DIR .. "src/devices/machine/atahle.h",
|
||||
MAME_DIR .. "src/devices/machine/ataintf.cpp",
|
||||
MAME_DIR .. "src/devices/machine/ataintf.h",
|
||||
MAME_DIR .. "src/devices/machine/atapicdr.cpp",
|
||||
MAME_DIR .. "src/devices/machine/atapicdr.h",
|
||||
MAME_DIR .. "src/devices/machine/atapihle.cpp",
|
||||
MAME_DIR .. "src/devices/machine/atapihle.h",
|
||||
MAME_DIR .. "src/devices/machine/idectrl.cpp",
|
||||
MAME_DIR .. "src/devices/machine/idectrl.h",
|
||||
MAME_DIR .. "src/devices/machine/idehd.cpp",
|
||||
MAME_DIR .. "src/devices/machine/idehd.h",
|
||||
MAME_DIR .. "src/devices/machine/vt83c461.cpp",
|
||||
MAME_DIR .. "src/devices/machine/vt83c461.h",
|
||||
}
|
||||
@ -2842,7 +2816,7 @@ end
|
||||
--
|
||||
---------------------------------------------------
|
||||
|
||||
if (BUSES["SCSI"]~=null) then
|
||||
if (BUSES["IDE"]~=null) or (BUSES["SCSI"]~=null) then
|
||||
MACHINES["T10"] = true
|
||||
end
|
||||
|
||||
|
@ -480,7 +480,7 @@ MACHINES["I8255"] = true
|
||||
--MACHINES["I8271"] = true
|
||||
MACHINES["I8279"] = true
|
||||
MACHINES["I8355"] = true
|
||||
MACHINES["IDE"] = true
|
||||
MACHINES["IDECTRL"] = true
|
||||
MACHINES["IE15"] = true
|
||||
MACHINES["IM6402"] = true
|
||||
MACHINES["INS8154"] = true
|
||||
@ -703,6 +703,7 @@ MACHINES["VRENDER0"] = true
|
||||
BUSES["AMIGA_KEYBOARD"] = true
|
||||
--BUSES["ARCADIA"] = true
|
||||
--BUSES["ASTROCADE"] = true
|
||||
BUSES["ATA"] = true
|
||||
--BUSES["BML3"] = true
|
||||
--BUSES["BW2"] = true
|
||||
--BUSES["C64"] = true
|
||||
|
@ -493,7 +493,7 @@ MACHINES["I8271"] = true
|
||||
MACHINES["I8279"] = true
|
||||
MACHINES["I8291A"] = true
|
||||
MACHINES["I8355"] = true
|
||||
MACHINES["IDE"] = true
|
||||
MACHINES["IDECTRL"] = true
|
||||
MACHINES["IE15"] = true
|
||||
MACHINES["IM6402"] = true
|
||||
MACHINES["INS8154"] = true
|
||||
@ -746,6 +746,7 @@ BUSES["APRICOT_KEYBOARD"] = true
|
||||
BUSES["AMIGA_KEYBOARD"] = true
|
||||
BUSES["ARCADIA"] = true
|
||||
BUSES["ASTROCADE"] = true
|
||||
BUSES["ATA"] = true
|
||||
BUSES["BBC_FDC"] = true
|
||||
BUSES["BBC_ANALOGUE"] = true
|
||||
BUSES["BBC_EXP"] = true
|
||||
|
@ -14,7 +14,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "a1bus.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
|
@ -13,7 +13,6 @@
|
||||
|
||||
#include "emu.h"
|
||||
#include "a2cffa.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "imagedev/harddriv.h"
|
||||
#include "softlist.h"
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "a2bus.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
|
@ -55,7 +55,6 @@
|
||||
|
||||
#include "emu.h"
|
||||
#include "a2vulcan.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "imagedev/harddriv.h"
|
||||
|
||||
//**************************************************************************
|
||||
|
@ -14,7 +14,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "a2bus.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
|
@ -68,7 +68,6 @@
|
||||
|
||||
#include "emu.h"
|
||||
#include "a2zipdrive.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "imagedev/harddriv.h"
|
||||
|
||||
//**************************************************************************
|
||||
|
@ -17,7 +17,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "a2bus.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
//**************************************************************************
|
||||
// TYPE DEFINITIONS
|
||||
|
@ -12,7 +12,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "exp.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/output_latch.h"
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@
|
||||
|
||||
#include "zorro.h"
|
||||
#include "machine/autoconfig.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
|
71
src/devices/bus/ata/atadev.cpp
Normal file
71
src/devices/bus/ata/atadev.cpp
Normal file
@ -0,0 +1,71 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:smf
|
||||
/***************************************************************************
|
||||
|
||||
ATA Device implementation.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "atadev.h"
|
||||
|
||||
#include "atapicdr.h"
|
||||
#include "idehd.h"
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_ata_interface - constructor
|
||||
//-------------------------------------------------
|
||||
|
||||
device_ata_interface::device_ata_interface(const machine_config &mconfig, device_t &device) :
|
||||
device_slot_card_interface(mconfig, device),
|
||||
m_irq_handler(device),
|
||||
m_dmarq_handler(device),
|
||||
m_dasp_handler(device),
|
||||
m_pdiag_handler(device)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// ATA SLOT DEVICE
|
||||
//**************************************************************************
|
||||
|
||||
// device type definition
|
||||
DEFINE_DEVICE_TYPE(ATA_SLOT, ata_slot_device, "ata_slot", "ATA Connector")
|
||||
|
||||
//-------------------------------------------------
|
||||
// ata_slot_device - constructor
|
||||
//-------------------------------------------------
|
||||
|
||||
ata_slot_device::ata_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: device_t(mconfig, ATA_SLOT, tag, owner, clock),
|
||||
device_slot_interface(mconfig, *this),
|
||||
m_dev(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_config_complete - perform any
|
||||
// operations now that the configuration is
|
||||
// complete
|
||||
//-------------------------------------------------
|
||||
|
||||
void ata_slot_device::device_config_complete()
|
||||
{
|
||||
m_dev = dynamic_cast<device_ata_interface *>(get_card_device());
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_start - device-specific startup
|
||||
//-------------------------------------------------
|
||||
|
||||
void ata_slot_device::device_start()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void ata_devices(device_slot_interface &device)
|
||||
{
|
||||
device.option_add("hdd", IDE_HARDDISK);
|
||||
device.option_add("cdrom", ATAPI_CDROM);
|
||||
}
|
@ -8,8 +8,8 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_MACHINE_ATADEV_H
|
||||
#define MAME_MACHINE_ATADEV_H
|
||||
#ifndef MAME_BUS_ATA_ATADEV_H
|
||||
#define MAME_BUS_ATA_ATADEV_H
|
||||
|
||||
#pragma once
|
||||
|
||||
@ -44,4 +44,29 @@ protected:
|
||||
devcb_write_line m_pdiag_handler;
|
||||
};
|
||||
|
||||
#endif // MAME_MACHINE_ATADEV_H
|
||||
// ======================> ata_slot_device
|
||||
|
||||
class ata_slot_device : public device_t,
|
||||
public device_slot_interface
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
ata_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||
|
||||
device_ata_interface *dev() { return m_dev; }
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
virtual void device_config_complete() override;
|
||||
|
||||
private:
|
||||
device_ata_interface *m_dev;
|
||||
};
|
||||
|
||||
// device type definition
|
||||
DECLARE_DEVICE_TYPE(ATA_SLOT, ata_slot_device)
|
||||
|
||||
void ata_devices(device_slot_interface &device);
|
||||
|
||||
#endif // MAME_BUS_ATA_ATADEV_H
|
@ -8,8 +8,8 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_MACHINE_ATAHLE_H
|
||||
#define MAME_MACHINE_ATAHLE_H
|
||||
#ifndef MAME_BUS_ATA_ATAHLE_H
|
||||
#define MAME_BUS_ATA_ATAHLE_H
|
||||
|
||||
#pragma once
|
||||
|
||||
@ -216,4 +216,4 @@ private:
|
||||
emu_timer *m_buffer_empty_timer;
|
||||
};
|
||||
|
||||
#endif // MAME_MACHINE_ATAHLE_H
|
||||
#endif // MAME_BUS_ATA_ATAHLE_H
|
@ -11,22 +11,8 @@
|
||||
#include "emu.h"
|
||||
#include "ataintf.h"
|
||||
|
||||
#include "atapicdr.h"
|
||||
#include "idehd.h"
|
||||
|
||||
#include "debugger.h"
|
||||
|
||||
void abstract_ata_interface_device::set_default_ata_devices(const char* _master, const char* _slave)
|
||||
{
|
||||
for (size_t slot_index = 0; slot_index < SLOT_COUNT; slot_index++)
|
||||
{
|
||||
slot(slot_index).option_add("hdd", IDE_HARDDISK);
|
||||
slot(slot_index).option_add("cdrom", ATAPI_CDROM);
|
||||
}
|
||||
slot(SLOT_MASTER).set_default_option(_master);
|
||||
slot(SLOT_SLAVE).set_default_option(_slave);
|
||||
}
|
||||
|
||||
ata_slot_device &abstract_ata_interface_device::slot(int index)
|
||||
{
|
||||
assert(index < 2);
|
||||
@ -220,12 +206,6 @@ WRITE_LINE_MEMBER( abstract_ata_interface_device::write_dmack )
|
||||
elem->dev()->write_dmack(state);
|
||||
}
|
||||
|
||||
void ata_devices(device_slot_interface &device)
|
||||
{
|
||||
device.option_add("hdd", IDE_HARDDISK);
|
||||
device.option_add("cdrom", ATAPI_CDROM);
|
||||
}
|
||||
|
||||
abstract_ata_interface_device::abstract_ata_interface_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock) :
|
||||
device_t(mconfig, type, tag, owner, clock),
|
||||
m_slot(*this, "%u", 0U),
|
||||
@ -294,41 +274,3 @@ void abstract_ata_interface_device::device_add_mconfig(machine_config &config)
|
||||
for (size_t slot = 0; slot < SLOT_COUNT; slot++)
|
||||
ATA_SLOT(config, m_slot[slot]);
|
||||
}
|
||||
|
||||
|
||||
//**************************************************************************
|
||||
// ATA SLOT DEVICE
|
||||
//**************************************************************************
|
||||
|
||||
// device type definition
|
||||
DEFINE_DEVICE_TYPE(ATA_SLOT, ata_slot_device, "ata_slot", "ATA Connector")
|
||||
|
||||
//-------------------------------------------------
|
||||
// ata_slot_device - constructor
|
||||
//-------------------------------------------------
|
||||
|
||||
ata_slot_device::ata_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock)
|
||||
: device_t(mconfig, ATA_SLOT, tag, owner, clock),
|
||||
device_slot_interface(mconfig, *this),
|
||||
m_dev(nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_config_complete - perform any
|
||||
// operations now that the configuration is
|
||||
// complete
|
||||
//-------------------------------------------------
|
||||
|
||||
void ata_slot_device::device_config_complete()
|
||||
{
|
||||
m_dev = dynamic_cast<device_ata_interface *>(get_card_device());
|
||||
}
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_start - device-specific startup
|
||||
//-------------------------------------------------
|
||||
|
||||
void ata_slot_device::device_start()
|
||||
{
|
||||
}
|
@ -8,8 +8,8 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_MACHINE_ATAINTF_H
|
||||
#define MAME_MACHINE_ATAINTF_H
|
||||
#ifndef MAME_BUS_ATA_ATAINTF_H
|
||||
#define MAME_BUS_ATA_ATAINTF_H
|
||||
|
||||
#pragma once
|
||||
|
||||
@ -19,35 +19,6 @@
|
||||
TYPE DEFINITIONS
|
||||
***************************************************************************/
|
||||
|
||||
// ======================> ata_slot_device
|
||||
|
||||
class ata_slot_device : public device_t,
|
||||
public device_slot_interface
|
||||
{
|
||||
public:
|
||||
// construction/destruction
|
||||
ata_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0);
|
||||
|
||||
device_ata_interface *dev() { return m_dev; }
|
||||
|
||||
protected:
|
||||
// device-level overrides
|
||||
virtual void device_start() override;
|
||||
virtual void device_config_complete() override;
|
||||
|
||||
private:
|
||||
device_ata_interface *m_dev;
|
||||
};
|
||||
|
||||
// device type definition
|
||||
DECLARE_DEVICE_TYPE(ATA_SLOT, ata_slot_device)
|
||||
|
||||
void ata_devices(device_slot_interface &device);
|
||||
|
||||
/***************************************************************************
|
||||
TYPE DEFINITIONS
|
||||
***************************************************************************/
|
||||
|
||||
/* ----- device interface ----- */
|
||||
|
||||
class abstract_ata_interface_device : public device_t
|
||||
@ -85,7 +56,6 @@ public:
|
||||
}
|
||||
|
||||
ata_slot_device &slot(int index);
|
||||
virtual void set_default_ata_devices(const char* _master, const char* _slave);
|
||||
|
||||
uint16_t read_dma();
|
||||
void write_dma(uint16_t data);
|
||||
@ -176,4 +146,4 @@ public:
|
||||
|
||||
DECLARE_DEVICE_TYPE(ATA_INTERFACE, ata_interface_device)
|
||||
|
||||
#endif // MAME_MACHINE_ATAINTF_H
|
||||
#endif // MAME_BUS_ATA_ATAINTF_H
|
@ -8,13 +8,13 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_MACHINE_ATAPICDR_H
|
||||
#define MAME_MACHINE_ATAPICDR_H
|
||||
#ifndef MAME_BUS_ATA_ATAPICDR_H
|
||||
#define MAME_BUS_ATA_ATAPICDR_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "atapihle.h"
|
||||
#include "t10mmc.h"
|
||||
#include "machine/t10mmc.h"
|
||||
|
||||
class atapi_cdrom_device : public atapi_hle_device, public t10mmc
|
||||
{
|
||||
@ -51,4 +51,4 @@ protected:
|
||||
DECLARE_DEVICE_TYPE(ATAPI_CDROM, atapi_cdrom_device)
|
||||
DECLARE_DEVICE_TYPE(ATAPI_FIXED_CDROM, atapi_fixed_cdrom_device)
|
||||
|
||||
#endif // MAME_MACHINE_ATAPICDR_H
|
||||
#endif // MAME_BUS_ATA_ATAPICDR_H
|
@ -8,13 +8,13 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_MACHINE_ATAPIHLE_H
|
||||
#define MAME_MACHINE_ATAPIHLE_H
|
||||
#ifndef MAME_BUS_ATA_ATAPIHLE_H
|
||||
#define MAME_BUS_ATA_ATAPIHLE_H
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "atahle.h"
|
||||
#include "t10spc.h"
|
||||
#include "machine/t10spc.h"
|
||||
|
||||
class atapi_hle_device : public ata_hle_device, public virtual t10spc
|
||||
{
|
||||
@ -74,4 +74,4 @@ private:
|
||||
static constexpr int ATAPI_BUFFER_LENGTH = 0xf800;
|
||||
};
|
||||
|
||||
#endif // MAME_MACHINE_ATAPIHLE_H
|
||||
#endif // MAME_BUS_ATA_ATAPIHLE_H
|
@ -8,8 +8,8 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_MACHINE_CR589_H
|
||||
#define MAME_MACHINE_CR589_H
|
||||
#ifndef MAME_BUS_ATA_CR589_H
|
||||
#define MAME_BUS_ATA_CR589_H
|
||||
|
||||
#pragma once
|
||||
|
||||
@ -46,4 +46,4 @@ private:
|
||||
// device type definition
|
||||
DECLARE_DEVICE_TYPE(CR589, matsushita_cr589_device)
|
||||
|
||||
#endif // MAME_MACHINE_CR589_H
|
||||
#endif // MAME_BUS_ATA_CR589_H
|
@ -8,8 +8,8 @@
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#ifndef MAME_MACHINE_IDEHD_H
|
||||
#define MAME_MACHINE_IDEHD_H
|
||||
#ifndef MAME_BUS_ATA_IDEHD_H
|
||||
#define MAME_BUS_ATA_IDEHD_H
|
||||
|
||||
#pragma once
|
||||
|
||||
@ -123,4 +123,4 @@ private:
|
||||
// device type definition
|
||||
DECLARE_DEVICE_TYPE(IDE_HARDDISK, ide_hdd_device)
|
||||
|
||||
#endif // MAME_MACHINE_IDEHD_H
|
||||
#endif // MAME_BUS_ATA_IDEHD_H
|
@ -13,8 +13,8 @@
|
||||
|
||||
|
||||
#include "exp.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/ds1302.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/intelfsh.h"
|
||||
#include "imagedev/harddriv.h"
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "cpcexp.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/ds128x.h"
|
||||
#include "machine/nvram.h"
|
||||
|
||||
|
@ -9,8 +9,8 @@
|
||||
#include "emu.h"
|
||||
#include "ide.h"
|
||||
|
||||
#include "bus/ata/atadev.h"
|
||||
#include "imagedev/harddriv.h"
|
||||
#include "machine/idectrl.h"
|
||||
#include "sound/cdda.h"
|
||||
#include "speaker.h"
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "isa.h"
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "isa.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/eeprompar.h"
|
||||
|
||||
//**************************************************************************
|
||||
|
@ -9,7 +9,7 @@
|
||||
#include "machine/z80ctc.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "machine/upd765.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "imagedev/floppy.h"
|
||||
#include "imagedev/harddriv.h"
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#include "machine/pic8259.h"
|
||||
#include "machine/pit8253.h"
|
||||
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/at_keybc.h"
|
||||
#include "machine/idectrl.h"
|
||||
|
||||
|
@ -12,7 +12,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "exp.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
|
||||
|
||||
|
@ -17,7 +17,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "peribox.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/ram.h"
|
||||
#include "machine/rtc65271.h"
|
||||
|
||||
|
@ -1,23 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:smf
|
||||
/***************************************************************************
|
||||
|
||||
ATA Device implementation.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "atadev.h"
|
||||
|
||||
//-------------------------------------------------
|
||||
// device_ata_interface - constructor
|
||||
//-------------------------------------------------
|
||||
|
||||
device_ata_interface::device_ata_interface(const machine_config &mconfig, device_t &device) :
|
||||
device_slot_card_interface(mconfig, device),
|
||||
m_irq_handler(device),
|
||||
m_dmarq_handler(device),
|
||||
m_dasp_handler(device),
|
||||
m_pdiag_handler(device)
|
||||
{
|
||||
}
|
@ -6,7 +6,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "pccard.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
|
||||
DECLARE_DEVICE_TYPE(ATA_FLASH_PCCARD, ata_flash_pccard_device)
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include "machine/pic8259.h"
|
||||
#include "machine/pit8253.h"
|
||||
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
#include "sound/spkrdev.h"
|
||||
#include "machine/ram.h"
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
class ide_controller_device : public abstract_ata_interface_device
|
||||
{
|
||||
|
@ -11,7 +11,7 @@
|
||||
#include "machine/pic8259.h"
|
||||
#include "machine/pit8253.h"
|
||||
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/at_keybc.h"
|
||||
|
||||
#include "sound/spkrdev.h"
|
||||
|
@ -11,13 +11,13 @@
|
||||
|
||||
#include "bus/amiga/keyboard/keyboard.h"
|
||||
#include "bus/amiga/zorro/zorro.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "cpu/m6502/m6502.h"
|
||||
#include "machine/bankdev.h"
|
||||
#include "machine/6525tpi.h"
|
||||
#include "machine/mos6526.h"
|
||||
#include "machine/gayle.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/dmac.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/i2cmem.h"
|
||||
|
@ -210,7 +210,7 @@ void bebox_state::bebox_peripherals(machine_config &config)
|
||||
scsictrl.set_scsi_port("scsi");
|
||||
|
||||
ide_controller_device &idectrl(IDE_CONTROLLER(config, "ide"));
|
||||
idectrl.set_default_ata_devices("hdd", nullptr);
|
||||
idectrl.options(ata_devices, "hdd", nullptr, false);
|
||||
idectrl.irq_handler().set(FUNC(bebox_state::bebox_ide_interrupt));
|
||||
|
||||
/* pci */
|
||||
|
@ -433,8 +433,8 @@ Thanks to Alex, Mr Mudkips, and Philip Burke for this info.
|
||||
#include "includes/xbox_pci.h"
|
||||
#include "includes/xbox.h"
|
||||
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "cpu/i386/i386.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "machine/jvs13551.h"
|
||||
#include "machine/jvshost.h"
|
||||
#include "machine/naomigd.h"
|
||||
|
@ -315,10 +315,10 @@
|
||||
|
||||
|
||||
#include "emu.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "cpu/powerpc/ppc.h"
|
||||
#include "machine/lpci.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "machine/jvshost.h"
|
||||
#include "machine/jvsdev.h"
|
||||
#include "machine/timekpr.h"
|
||||
|
@ -30,12 +30,12 @@
|
||||
***********************************************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "bus/ata/atadev.h"
|
||||
#include "cpu/h8/h83002.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/tmp68301.h"
|
||||
#include "machine/idectrl.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "machine/timer.h"
|
||||
#include "video/v9938.h"
|
||||
#include "audio/nichisnd.h"
|
||||
|
@ -68,10 +68,10 @@ hard drive 3.5 adapter long 3.5 IDE cable 3.5 adapter PCB
|
||||
#include "emu.h"
|
||||
#include "includes/djmain.h"
|
||||
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "sound/k054539.h"
|
||||
#include "machine/idehd.h"
|
||||
|
||||
#include "screen.h"
|
||||
#include "speaker.h"
|
||||
|
@ -138,10 +138,10 @@ Keyboard Mania 2nd Mix - dongle, program CD, audio CD
|
||||
|
||||
#include "emu.h"
|
||||
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/atapicdr.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "cpu/powerpc/ppc.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/atapicdr.h"
|
||||
#include "machine/ins8250.h"
|
||||
#include "machine/intelfsh.h"
|
||||
#include "machine/midikbd.h"
|
||||
|
@ -337,13 +337,13 @@ Notes:
|
||||
|
||||
#include "bus/generic/slot.h"
|
||||
#include "bus/generic/carts.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "cpu/mips/mips1.h"
|
||||
#include "cpu/jaguar/jaguar.h"
|
||||
#include "imagedev/chd_cd.h"
|
||||
#include "imagedev/snapquik.h"
|
||||
#include "machine/eepromser.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "machine/watchdog.h"
|
||||
#include "machine/vt83c461.h"
|
||||
#include "sound/cdda.h"
|
||||
|
@ -180,10 +180,10 @@ Notes:
|
||||
#include "emu.h"
|
||||
#include "audio/dcs.h"
|
||||
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "cpu/adsp2100/adsp2100.h"
|
||||
#include "cpu/mips/mips3.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "emupal.h"
|
||||
#include "screen.h"
|
||||
|
||||
|
@ -217,9 +217,9 @@ Notes:
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/powerpc/ppc.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/cr589.h"
|
||||
#include "machine/3dom2.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/cr589.h"
|
||||
#include "machine/eepromser.h"
|
||||
#include "machine/timekpr.h"
|
||||
#include "sound/dac.h"
|
||||
|
@ -346,10 +346,10 @@ G: gun mania only, drives air soft gun (this game uses real BB bullet)
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/psx/psx.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/cr589.h"
|
||||
#include "machine/adc083x.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/bankdev.h"
|
||||
#include "machine/cr589.h"
|
||||
#include "machine/ds2401.h"
|
||||
#include "machine/linflash.h"
|
||||
#include "machine/k573cass.h"
|
||||
|
@ -30,6 +30,8 @@
|
||||
//#define REAL_PCI_CHIPSET
|
||||
|
||||
#include "emu.h"
|
||||
#include "bus/ata/atapicdr.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "bus/isa/isa_cards.h"
|
||||
#include "cpu/i386/i386.h"
|
||||
#include "machine/at.h"
|
||||
@ -38,8 +40,6 @@
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/ins8250.h"
|
||||
#include "machine/microtch.h"
|
||||
#include "machine/atapicdr.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "machine/bankdev.h"
|
||||
#include "machine/intelfsh.h"
|
||||
#include "machine/ds128x.h"
|
||||
|
@ -22,12 +22,11 @@
|
||||
|
||||
|
||||
#include "emu.h"
|
||||
#include "bus/ata/atadev.h"
|
||||
#include "cpu/i386/athlon.h"
|
||||
#include "machine/pci.h"
|
||||
#include "machine/pci-ide.h"
|
||||
#include "machine/intelfsh.h"
|
||||
#include "machine/atapicdr.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "video/virge_pci.h"
|
||||
#include "includes/xbox_pci.h"
|
||||
#include "includes/nforcepc.h"
|
||||
@ -56,12 +55,6 @@ static const uint8_t test_spd_data[] = {
|
||||
};
|
||||
#endif
|
||||
|
||||
void nforcepc_ata_devices(device_slot_interface &device)
|
||||
{
|
||||
device.option_add("hdd", IDE_HARDDISK);
|
||||
device.option_add("cdrom", ATAPI_CDROM);
|
||||
}
|
||||
|
||||
/*
|
||||
Pci devices
|
||||
*/
|
||||
@ -754,7 +747,7 @@ void nforcepc_state::nforcepc(machine_config &config)
|
||||
mcpx_ide_device &ide(MCPX_IDE(config, ":pci:09.0", 0)); // 10de:01bc NVIDIA Corporation nForce IDE
|
||||
ide.pri_interrupt_handler().set(":pci:01.0", FUNC(mcpx_isalpc_device::irq14));
|
||||
ide.sec_interrupt_handler().set(":pci:01.0", FUNC(mcpx_isalpc_device::irq15));
|
||||
/*subdevice<ide_controller_32_device>(":pci:09.0:ide")->options(nforcepc_ata_devices, "hdd", "cdrom", true);*/
|
||||
/*subdevice<ide_controller_32_device>(":pci:09.0:ide")->options(ata_devices, "hdd", "cdrom", true);*/
|
||||
NV2A_AGP(config, ":pci:1e.0", 0, 0x10de01b7, 0); // 10de:01b7 NVIDIA Corporation nForce AGP to PCI Bridge
|
||||
VIRGEDX_PCI(config, ":pci:0a.0", 0);
|
||||
SST_49LF020(config, "bios", 0);
|
||||
|
@ -126,11 +126,11 @@ GUN_xP are 6 pin gun connectors (pins 3-6 match the UNICO sytle guns):
|
||||
****************************************************************************/
|
||||
|
||||
#include "emu.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "cpu/se3208/se3208.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "machine/eepromser.h"
|
||||
#include "machine/vrender0.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "emupal.h"
|
||||
|
||||
|
||||
|
@ -24,7 +24,6 @@ GP1 HDD data contents:
|
||||
#include "includes/qdrmfgp.h"
|
||||
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "sound/k054539.h"
|
||||
#include "speaker.h"
|
||||
|
@ -172,10 +172,10 @@ Notes:
|
||||
*/
|
||||
|
||||
#include "emu.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "cpu/powerpc/ppc.h"
|
||||
#include "cpu/tlcs900/tlcs900.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "video/poly.h"
|
||||
|
||||
|
@ -11,6 +11,9 @@
|
||||
#include "emu.h"
|
||||
#include "includes/turrett.h"
|
||||
|
||||
#include "bus/ata/idehd.h"
|
||||
|
||||
|
||||
/*************************************
|
||||
*
|
||||
* Definitions
|
||||
|
@ -238,11 +238,11 @@ Notes:
|
||||
#include "cpu/psx/psx.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "video/psx.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/scsi/scsi.h"
|
||||
#include "bus/scsi/scsicd.h"
|
||||
#include "bus/rs232/xvd701.h"
|
||||
#include "machine/am53cf96.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/fdc37c665gt.h"
|
||||
#include "machine/i2cmem.h"
|
||||
#include "machine/ram.h"
|
||||
|
@ -278,10 +278,12 @@
|
||||
#include "emu.h"
|
||||
#include "audio/dcs.h"
|
||||
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "bus/rs232/rs232.h"
|
||||
#include "cpu/adsp2100/adsp2100.h"
|
||||
#include "cpu/mips/mips3.h"
|
||||
#include "machine/idectrl.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "machine/ins8250.h"
|
||||
#include "machine/midwayic.h"
|
||||
#include "machine/smc91c9x.h"
|
||||
#include "machine/timekpr.h"
|
||||
@ -290,8 +292,6 @@
|
||||
#include "machine/pci-ide.h"
|
||||
#include "video/voodoo_pci.h"
|
||||
#include "screen.h"
|
||||
#include "machine/ins8250.h"
|
||||
#include "bus/rs232/rs232.h"
|
||||
|
||||
#include "sf2049.lh"
|
||||
|
||||
|
@ -350,8 +350,8 @@ some other components. It will be documented at a later date.
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/powerpc/ppc.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
#include "machine/lpci.h"
|
||||
#include "machine/timekpr.h"
|
||||
#include "machine/timer.h"
|
||||
|
@ -101,7 +101,7 @@ Small outline design for easy kit retrofitting of existing cabinets.
|
||||
|
||||
#include "emu.h"
|
||||
#include "cpu/mips/mips3.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/nvram.h"
|
||||
#include "imagedev/harddriv.h"
|
||||
#include "screen.h"
|
||||
|
@ -14,8 +14,8 @@
|
||||
#include "includes/xbox.h"
|
||||
|
||||
#include "cpu/i386/i386.h"
|
||||
#include "machine/atapicdr.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "bus/ata/atapicdr.h"
|
||||
#include "bus/ata/idehd.h"
|
||||
|
||||
#include "debug/debugcmd.h"
|
||||
#include "debug/debugcon.h"
|
||||
|
@ -15,13 +15,14 @@
|
||||
#include "audio/taito_zm.h"
|
||||
#include "audio/taitosnd.h"
|
||||
|
||||
#include "bus/ata/atadev.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "cpu/m68000/m68000.h"
|
||||
#include "cpu/mcs51/mcs51.h"
|
||||
#include "cpu/psx/psx.h"
|
||||
#include "cpu/z80/z80.h"
|
||||
#include "machine/7200fifo.h"
|
||||
#include "machine/at28c16.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/bankdev.h"
|
||||
#include "machine/cat702.h"
|
||||
#include "machine/gen_latch.h"
|
||||
|
@ -7,9 +7,9 @@
|
||||
|
||||
#include "dc.h"
|
||||
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "imagedev/chd_cd.h"
|
||||
#include "machine/gdrom.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/intelfsh.h"
|
||||
|
||||
class dc_cons_state : public dc_state
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "video/konami_helper.h"
|
||||
#include "video/k054156_k054157_k056832.h"
|
||||
#include "video/k055555.h"
|
||||
|
@ -7,8 +7,8 @@
|
||||
**************************************************************************/
|
||||
|
||||
#include "audio/dcs.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/adc0844.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/midwayic.h"
|
||||
#include "machine/timer.h"
|
||||
#include "machine/watchdog.h"
|
||||
|
@ -44,8 +44,8 @@
|
||||
#include "machine/pc9801_kbd.h"
|
||||
#include "machine/pc9801_cd.h"
|
||||
|
||||
#include "machine/idectrl.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "bus/ata/atadev.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
|
||||
#include "debugger.h"
|
||||
#include "emupal.h"
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "machine/timer.h"
|
||||
#include "sound/k054539.h"
|
||||
#include "machine/k053252.h"
|
||||
|
@ -11,8 +11,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "cpu/mips/mips1.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "machine/idehd.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "emupal.h"
|
||||
#include "speaker.h"
|
||||
#include "screen.h"
|
||||
|
@ -98,7 +98,7 @@
|
||||
#include "bus/lpci/cirrus.h"
|
||||
#include "cpu/powerpc/ppc.h"
|
||||
#include "machine/mc146818.h"
|
||||
#include "machine/ataintf.h"
|
||||
#include "bus/ata/ataintf.h"
|
||||
#include "bus/lpci/pci.h"
|
||||
|
||||
#define LOG_CPUIMASK 1
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "machine/atapicdr.h"
|
||||
#include "bus/ata/atapicdr.h"
|
||||
|
||||
class gdrom_device : public atapi_cdrom_device
|
||||
{
|
||||
|
@ -4,7 +4,7 @@
|
||||
#ifndef MAME_MACHINE_PC9801_CD_H
|
||||
#define MAME_MACHINE_PC9801_CD_H
|
||||
|
||||
#include "machine/atapicdr.h"
|
||||
#include "bus/ata/atapicdr.h"
|
||||
|
||||
class pc9801_cd_device : public atapi_cdrom_device
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user