diff options
author | 2009-02-11 19:48:39 +0000 | |
---|---|---|
committer | 2009-02-11 19:48:39 +0000 | |
commit | 5cb6bf00e90dd0e836bcabf7d5a8a2bdbf941767 (patch) | |
tree | f0fd5a55acb6b6592a5be0fd9c766aed1a695c88 /src/emu/sound/s14001a.h | |
parent | 1420ed893ae8344144582793cdcc1a0eafda4610 (diff) |
Ok, this is The Big One.
Please note: regression testing is in progress, but the first round
of glaring regressions have already been taken care of. That said,
there is likely to be a host of regressions as a result of this
change.
Also note: There are still a few rough edges in the interfaces. I
will try to clean them up systematically once the basic system is
working.
All sound chips are now proper devices.
Merged the sound chip interface into the device interface,
removing any differences (such as the whole ALIASing concept).
Modified every sound chip in the following ways:
* updated to match the device interface
* reduced read/write handlers down to the minimal number
* added the use of get_safe_token() for ensuring correctness
* other minor cleanup
Removed the custom sound device. The additional work to just make
custom sound cases into full devices is minimal, so I just converted
them all over to be actual devices.
Vastly simplified the sound interfaces, removing the ghastly
sndti_* business and moving everyone over to using tags for
sound identity. sndintrf, like cpuintrf, is now just a header
file with no implementation.
Modified each and every driver that references a sound chip:
* all memory maps explicitly reference the targeted device via
AM_DEVREAD/AM_DEVWRITE/AM_DEVREADWRITE
* 16-bit and 32-bit accesses to 8-bit chips no longer use
trampoline functions but instead use the 8-bit AM_DEVREAD/WRITE
macros
* all references to sound chips are now done via tags
* note that these changes are brute force, not optimal; in many
cases drivers should grab pointers to devices in MACHINE_START
and stash them away
Diffstat (limited to 'src/emu/sound/s14001a.h')
-rw-r--r-- | src/emu/sound/s14001a.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/emu/sound/s14001a.h b/src/emu/sound/s14001a.h index d05f776c1e7..f465fb2df18 100644 --- a/src/emu/sound/s14001a.h +++ b/src/emu/sound/s14001a.h @@ -3,14 +3,14 @@ #ifndef __S14001A_H__ #define __S14001A_H__ -int s14001a_bsy_0_r(void); /* read BUSY pin */ -void s14001a_reg_0_w(int data); /* write to input latch */ -void s14001a_rst_0_w(int data); /* write to RESET pin */ -void s14001a_set_clock(int clock); /* set VSU-1000 clock */ -void s14001a_set_volume(int volume); /* set VSU-1000 volume control */ +int s14001a_bsy_r(const device_config *device); /* read BUSY pin */ +void s14001a_reg_w(const device_config *device, int data); /* write to input latch */ +void s14001a_rst_w(const device_config *device, int data); /* write to RESET pin */ +void s14001a_set_clock(const device_config *device, int clock); /* set VSU-1000 clock */ +void s14001a_set_volume(const device_config *device, int volume); /* set VSU-1000 volume control */ -SND_GET_INFO( s14001a ); -#define SOUND_S14001A SND_GET_INFO_NAME( s14001a ) +DEVICE_GET_INFO( s14001a ); +#define SOUND_S14001A DEVICE_GET_INFO_NAME( s14001a ) #endif /* __S14001A_H__ */ |