diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-03 14:11:16 +0000 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2012-09-03 14:11:16 +0000 |
commit | c052b16e98f2f17aba672b584460fc205ceae165 (patch) | |
tree | a6b795ef2abae45dfef1be90ab0e0c5dfb5a8b6b /src/emu/machine/s3c24xx.c | |
parent | b711b1a007c3a4a75e78eb88f9a6afe4d4180728 (diff) |
converted remaining legacy_device_base users (no whatsnew)
Diffstat (limited to 'src/emu/machine/s3c24xx.c')
-rw-r--r-- | src/emu/machine/s3c24xx.c | 25 |
1 files changed, 7 insertions, 18 deletions
diff --git a/src/emu/machine/s3c24xx.c b/src/emu/machine/s3c24xx.c index 372175a7e4c..0c5b85b72b8 100644 --- a/src/emu/machine/s3c24xx.c +++ b/src/emu/machine/s3c24xx.c @@ -110,7 +110,13 @@ static void s3c24xx_dma_request_pwm( device_t *device); INLINE s3c24xx_t *get_token( device_t *device) { assert(device != NULL); - return (s3c24xx_t *)downcast<legacy_device_base *>(device)->token(); +#if defined(DEVICE_S3C2400) + return (s3c24xx_t *)downcast<s3c2400_device *>(device)->token(); +#elif defined(DEVICE_S3C2410) + return (s3c24xx_t *)downcast<s3c2410_device *>(device)->token(); +#elif defined(DEVICE_S3C2440) + return (s3c24xx_t *)downcast<s3c2440_device *>(device)->token(); +#endif } /*************************************************************************** @@ -3701,20 +3707,3 @@ static DEVICE_START( s3c24xx ) } #endif } - -static DEVICE_GET_INFO( s3c24xx ) -{ - switch ( state ) - { - /* --- the following bits of info are returned as 64-bit signed integers --- */ - case DEVINFO_INT_TOKEN_BYTES: info->i = sizeof(s3c24xx_t); break; - /* --- the following bits of info are returned as pointers to data or functions --- */ - case DEVINFO_FCT_START: info->start = DEVICE_START_NAME(s3c24xx); break; - case DEVINFO_FCT_RESET: info->reset = DEVICE_RESET_NAME(s3c24xx); break; - /* --- the following bits of info are returned as NULL-terminated strings --- */ - case DEVINFO_STR_FAMILY: strcpy(info->s, "S3C24XX"); break; - case DEVINFO_STR_VERSION: strcpy(info->s, "1.00"); break; - case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; - case DEVINFO_STR_CREDITS: strcpy(info->s, "Copyright the MESS Team"); break; - } -} |