summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/idectrl.h
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2013-06-08 15:42:11 +0000
committer smf- <smf-@users.noreply.github.com>2013-06-08 15:42:11 +0000
commit9eafc98ed9992e5d2067b2cbfaa53dae582976c8 (patch)
treeaa7f701d25232324d1733425738e15be527a3f5b /src/emu/machine/idectrl.h
parentbac361dd3df9e5744268f3cf91b16855e349697b (diff)
First pass at tidying up ide interface. It no longer tries to force everything to act as a PC. A copy of the VIA VT83C461 datasheet would be useful to remove some of the hacks added to make the games using it work again. [smf]
Diffstat (limited to 'src/emu/machine/idectrl.h')
-rw-r--r--src/emu/machine/idectrl.h27
1 files changed, 12 insertions, 15 deletions
diff --git a/src/emu/machine/idectrl.h b/src/emu/machine/idectrl.h
index 016d3854637..91bf0cca397 100644
--- a/src/emu/machine/idectrl.h
+++ b/src/emu/machine/idectrl.h
@@ -90,24 +90,21 @@ public:
void ide_set_master_password(const UINT8 *password);
void ide_set_user_password(const UINT8 *password);
- int ide_bus_r(int select, int offset);
- void ide_bus_w(int select, int offset, int data);
-
- UINT32 ide_controller_r(int reg, int size);
- void ide_controller_w(int reg, int size, UINT32 data);
-
- DECLARE_READ32_MEMBER( ide_controller32_r );
- DECLARE_WRITE32_MEMBER( ide_controller32_w );
- DECLARE_READ16_MEMBER( ide_controller16_pcmcia_r );
- DECLARE_WRITE16_MEMBER( ide_controller16_pcmcia_w );
+ DECLARE_READ8_MEMBER(read_via_config);
+ DECLARE_WRITE8_MEMBER(write_via_config);
+ DECLARE_READ16_MEMBER(read_cs0);
+ DECLARE_READ16_MEMBER(read_cs1);
+ DECLARE_WRITE16_MEMBER(write_cs0);
+ DECLARE_WRITE16_MEMBER(write_cs1);
+
+ DECLARE_READ16_MEMBER(read_cs0_pc);
+ DECLARE_READ16_MEMBER(read_cs1_pc);
+ DECLARE_WRITE16_MEMBER(write_cs0_pc);
+ DECLARE_WRITE16_MEMBER(write_cs1_pc);
+
DECLARE_READ32_MEMBER( ide_bus_master32_r );
DECLARE_WRITE32_MEMBER( ide_bus_master32_w );
- DECLARE_READ16_MEMBER( ide_controller16_r );
- DECLARE_WRITE16_MEMBER( ide_controller16_w );
-
- UINT32 ide_controller_read(int bank, offs_t offset, int size);
- void ide_controller_write(int bank, offs_t offset, int size, UINT32 data);
UINT32 ide_bus_master_read(offs_t offset, int size);
void ide_bus_master_write(offs_t offset, int size, UINT32 data);
void signal_interrupt();