summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/wd33c93.c
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2012-08-25 22:04:22 +0000
committer smf- <smf-@users.noreply.github.com>2012-08-25 22:04:22 +0000
commit17aa09603a67d89879ecc6778ca9e7916db279c0 (patch)
tree61bf257e8b65eb7bc48376f77493773be4fe81e5 /src/emu/machine/wd33c93.c
parentccd4b04d556d5c832250c6ca84ba86561261d797 (diff)
use device_t.static_set_static_config
Diffstat (limited to 'src/emu/machine/wd33c93.c')
-rw-r--r--src/emu/machine/wd33c93.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/emu/machine/wd33c93.c b/src/emu/machine/wd33c93.c
index 4f5723c24e7..3b2f6da292f 100644
--- a/src/emu/machine/wd33c93.c
+++ b/src/emu/machine/wd33c93.c
@@ -744,6 +744,16 @@ wd33c93_device::wd33c93_device(const machine_config &mconfig, const char *tag, d
{
}
+void wd33c93_device::device_config_complete()
+{
+ // inherit a copy of the static data
+ const WD33C93interface *intf = reinterpret_cast<const WD33C93interface *>(static_config());
+ if (intf != NULL)
+ {
+ *static_cast<WD33C93interface *>(this) = *intf;
+ }
+}
+
void wd33c93_device::device_start()
{
memset(&regs, 0, sizeof(regs));
@@ -772,12 +782,6 @@ void wd33c93_device::device_start()
save_item( NAME( read_pending ) );
}
-void wd33c93_device::static_set_interface(device_t &device, const WD33C93interface &interface)
-{
- wd33c93_device &wd33c93 = downcast<wd33c93_device &>(device);
- static_cast<WD33C93interface &>(wd33c93) = interface;
-}
-
void wd33c93_device::get_dma_data( int bytes, UINT8 *pData )
{
int len = bytes;