diff options
author | 2010-12-31 18:15:29 +0000 | |
---|---|---|
committer | 2010-12-31 18:15:29 +0000 | |
commit | c00b57ae6d07c61c81cb99c95676a06720d83697 (patch) | |
tree | f0715073758eb84efacc9f6087614931560145b1 /src/emu/machine/s3c2400.h | |
parent | b921f6545410e210af5349f33acde4dcb4a17a27 (diff) |
s3c24xx: some improvements and fixes [Tim Schuerewegen]
out of whatsnew: these are now in sync with latest MESS additions, to avoid regressions in the MESS drivers which use these chips
Diffstat (limited to 'src/emu/machine/s3c2400.h')
-rw-r--r-- | src/emu/machine/s3c2400.h | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/src/emu/machine/s3c2400.h b/src/emu/machine/s3c2400.h index 539e2beb471..1f2080964f8 100644 --- a/src/emu/machine/s3c2400.h +++ b/src/emu/machine/s3c2400.h @@ -1,20 +1,20 @@ /******************************************************************************* - Samsung S3C2400 private data + Samsung S3C2400 *******************************************************************************/ #ifndef __S3C2400_H__ #define __S3C2400_H__ +#include "devlegcy.h" + /******************************************************************************* MACROS / CONSTANTS *******************************************************************************/ #define S3C2400_TAG "s3c2400" -#define S3C2400 DEVICE_GET_INFO_NAME( s3c2400 ) - #define MDRV_S3C2400_ADD(_tag, _clock, _config) \ MDRV_DEVICE_ADD(_tag, S3C2400, _clock) \ MDRV_DEVICE_CONFIG(_config) @@ -33,6 +33,8 @@ enum S3C2400_GPIO_PORT_G }; +DECLARE_LEGACY_DEVICE(S3C2400, s3c2400); + /******************************************************************************* TYPE DEFINITIONS *******************************************************************************/ @@ -67,6 +69,12 @@ struct _s3c2400_interface_i2s write16_device_func data_w; }; +typedef struct _s3c2400_interface_lcd s3c2400_interface_lcd; +struct _s3c2400_interface_lcd +{ + int flags; +}; + typedef struct _s3c2400_interface s3c2400_interface; struct _s3c2400_interface { @@ -74,6 +82,7 @@ struct _s3c2400_interface s3c2400_interface_i2c i2c; s3c2400_interface_adc adc; s3c2400_interface_i2s i2s; + s3c2400_interface_lcd lcd; }; /******************************************************************************* @@ -91,6 +100,10 @@ void s3c2400_uart_fifo_w( running_device *device, int uart, UINT8 data); MACROS & CONSTANTS *******************************************************************************/ +/* Interface */ + +#define S3C24XX_INTERFACE_LCD_REVERSE 1 + /* Memory Controller */ #define S3C24XX_BASE_MEMCON 0x14000000 @@ -583,6 +596,7 @@ typedef struct typedef struct { s3c24xx_irq_regs_t regs; + int line_irq, line_fiq; } s3c24xx_irq_t; typedef struct |