summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/machine/s3c2410.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/emu/machine/s3c2410.h')
-rw-r--r--src/emu/machine/s3c2410.h156
1 files changed, 78 insertions, 78 deletions
diff --git a/src/emu/machine/s3c2410.h b/src/emu/machine/s3c2410.h
index b446f970194..0054f2c026c 100644
--- a/src/emu/machine/s3c2410.h
+++ b/src/emu/machine/s3c2410.h
@@ -498,17 +498,17 @@ static const UINT32 MAP_SUBINT_TO_INT[11] =
TYPE DEFINITIONS
*******************************************************************************/
-typedef struct
+struct s3c24xx_memcon_regs_t
{
UINT32 data[0x34/4];
-} s3c24xx_memcon_regs_t;
+};
-typedef struct
+struct s3c24xx_usbhost_regs_t
{
UINT32 data[0x5C/4];
-} s3c24xx_usbhost_regs_t;
+};
-typedef struct
+struct s3c24xx_irq_regs_t
{
UINT32 srcpnd;
UINT32 intmod;
@@ -518,9 +518,9 @@ typedef struct
UINT32 intoffset;
UINT32 subsrcpnd;
UINT32 intsubmsk;
-} s3c24xx_irq_regs_t;
+};
-typedef struct
+struct s3c24xx_dma_regs_t
{
UINT32 disrc;
UINT32 disrcc;
@@ -531,9 +531,9 @@ typedef struct
UINT32 dcsrc;
UINT32 dcdst;
UINT32 dmasktrig;
-} s3c24xx_dma_regs_t;
+};
-typedef struct
+struct s3c24xx_clkpow_regs_t
{
UINT32 locktime;
UINT32 mpllcon;
@@ -541,9 +541,9 @@ typedef struct
UINT32 clkcon;
UINT32 clkslow;
UINT32 clkdivn;
-} s3c24xx_clkpow_regs_t;
+};
-typedef struct
+struct s3c24xx_lcd_regs_t
{
UINT32 lcdcon1;
UINT32 lcdcon2;
@@ -563,14 +563,14 @@ typedef struct
UINT32 lcdsrcpnd;
UINT32 lcdintmsk;
UINT32 lpcsel;
-} s3c24xx_lcd_regs_t;
+};
-typedef struct
+struct s3c24xx_lcdpal_regs_t
{
UINT32 data[0x400/4];
-} s3c24xx_lcdpal_regs_t;
+};
-typedef struct
+struct s3c24xx_nand_regs_t
{
UINT32 nfconf;
UINT32 nfcmd;
@@ -578,9 +578,9 @@ typedef struct
UINT32 nfdata;
UINT32 nfstat;
UINT32 nfecc;
-} s3c24xx_nand_regs_t;
+};
-typedef struct
+struct s3c24xx_uart_regs_t
{
UINT32 ulcon;
UINT32 ucon;
@@ -593,9 +593,9 @@ typedef struct
UINT32 utxh;
UINT32 urxh;
UINT32 ubrdiv;
-} s3c24xx_uart_regs_t;
+};
-typedef struct
+struct s3c24xx_pwm_regs_t
{
UINT32 tcfg0;
UINT32 tcfg1;
@@ -614,38 +614,38 @@ typedef struct
UINT32 tcnto3;
UINT32 tcntb4;
UINT32 tcnto4;
-} s3c24xx_pwm_regs_t;
+};
-typedef struct
+struct s3c24xx_usbdev_regs_t
{
UINT32 data[0x130/4];
-} s3c24xx_usbdev_regs_t;
+};
-typedef struct
+struct s3c24xx_wdt_regs_t
{
UINT32 wtcon;
UINT32 wtdat;
UINT32 wtcnt;
-} s3c24xx_wdt_regs_t;
+};
-typedef struct
+struct s3c24xx_iic_regs_t
{
UINT32 iiccon;
UINT32 iicstat;
UINT32 iicadd;
UINT32 iicds;
-} s3c24xx_iic_regs_t;
+};
-typedef struct
+struct s3c24xx_iis_regs_t
{
UINT32 iiscon;
UINT32 iismod;
UINT32 iispsr;
UINT32 iisfcon;
UINT32 iisfifo;
-} s3c24xx_iis_regs_t;
+};
-typedef struct
+struct s3c24xx_gpio_regs_t
{
UINT32 gpacon;
UINT32 gpadat;
@@ -695,9 +695,9 @@ typedef struct
UINT32 gstatus2;
UINT32 gstatus3;
UINT32 gstatus4;
-} s3c24xx_gpio_regs_t;
+};
-typedef struct
+struct s3c24xx_rtc_regs_t
{
UINT32 rtccon;
UINT32 ticnt;
@@ -717,18 +717,18 @@ typedef struct
UINT32 bcddow;
UINT32 bcdmon;
UINT32 bcdyear;
-} s3c24xx_rtc_regs_t;
+};
-typedef struct
+struct s3c24xx_adc_regs_t
{
UINT32 adccon;
UINT32 adctsc;
UINT32 adcdly;
UINT32 adcdat0;
UINT32 adcdat1;
-} s3c24xx_adc_regs_t;
+};
-typedef struct
+struct s3c24xx_spi_regs_t
{
UINT32 spcon;
UINT32 spsta;
@@ -736,41 +736,41 @@ typedef struct
UINT32 sppre;
UINT32 sptdat;
UINT32 sprdat;
-} s3c24xx_spi_regs_t;
+};
-typedef struct
+struct s3c24xx_sdi_regs_t
{
UINT32 data[0x44/4];
-} s3c24xx_sdi_regs_t;
+};
-typedef struct
+struct s3c24xx_memcon_t
{
s3c24xx_memcon_regs_t regs;
-} s3c24xx_memcon_t;
+};
-typedef struct
+struct s3c24xx_usbhost_t
{
s3c24xx_usbhost_regs_t regs;
-} s3c24xx_usbhost_t;
+};
-typedef struct
+struct s3c24xx_irq_t
{
s3c24xx_irq_regs_t regs;
int line_irq, line_fiq;
-} s3c24xx_irq_t;
+};
-typedef struct
+struct s3c24xx_dma_t
{
s3c24xx_dma_regs_t regs;
emu_timer *timer;
-} s3c24xx_dma_t;
+};
-typedef struct
+struct s3c24xx_clkpow_t
{
s3c24xx_clkpow_regs_t regs;
-} s3c24xx_clkpow_t;
+};
-typedef struct
+struct s3c24xx_lcd_t
{
s3c24xx_lcd_regs_t regs;
emu_timer *timer;
@@ -787,89 +787,89 @@ typedef struct
UINT32 tpal;
UINT32 hpos_min, hpos_max, vpos_min, vpos_max;
UINT32 dma_data, dma_bits;
-} s3c24xx_lcd_t;
+};
-typedef struct
+struct s3c24xx_lcdpal_t
{
s3c24xx_lcdpal_regs_t regs;
-} s3c24xx_lcdpal_t;
+};
-typedef struct
+struct s3c24xx_nand_t
{
s3c24xx_nand_regs_t regs;
UINT8 mecc[3];
int ecc_pos, data_count;
-} s3c24xx_nand_t;
+};
-typedef struct
+struct s3c24xx_uart_t
{
s3c24xx_uart_regs_t regs;
-} s3c24xx_uart_t;
+};
-typedef struct
+struct s3c24xx_pwm_t
{
s3c24xx_pwm_regs_t regs;
emu_timer *timer[5];
UINT32 cnt[5];
UINT32 cmp[5];
UINT32 freq[5];
-} s3c24xx_pwm_t;
+};
-typedef struct
+struct s3c24xx_usbdev_t
{
s3c24xx_usbdev_regs_t regs;
-} s3c24xx_usbdev_t;
+};
-typedef struct
+struct s3c24xx_wdt_t
{
s3c24xx_wdt_regs_t regs;
emu_timer *timer;
UINT32 freq, cnt;
-} s3c24xx_wdt_t;
+};
-typedef struct
+struct s3c24xx_iic_t
{
s3c24xx_iic_regs_t regs;
emu_timer *timer;
int count;
-} s3c24xx_iic_t;
+};
-typedef struct
+struct s3c24xx_iis_t
{
s3c24xx_iis_regs_t regs;
emu_timer *timer;
UINT16 fifo[16/2];
int fifo_index;
-} s3c24xx_iis_t;
+};
-typedef struct
+struct s3c24xx_gpio_t
{
s3c24xx_gpio_regs_t regs;
-} s3c24xx_gpio_t;
+};
-typedef struct
+struct s3c24xx_rtc_t
{
s3c24xx_rtc_regs_t regs;
emu_timer *timer_tick_count;
emu_timer *timer_update;
-} s3c24xx_rtc_t;
+};
-typedef struct
+struct s3c24xx_adc_t
{
s3c24xx_adc_regs_t regs;
-} s3c24xx_adc_t;
+};
-typedef struct
+struct s3c24xx_spi_t
{
s3c24xx_spi_regs_t regs;
-} s3c24xx_spi_t;
+};
-typedef struct
+struct s3c24xx_sdi_t
{
s3c24xx_sdi_regs_t regs;
-} s3c24xx_sdi_t;
+};
-typedef struct
+struct s3c24xx_t
{
const s3c2410_interface *iface;
UINT8 steppingstone[4*1024];
@@ -892,6 +892,6 @@ typedef struct
s3c24xx_adc_t adc;
s3c24xx_spi_t spi[S3C24XX_SPI_COUNT];
s3c24xx_sdi_t sdi;
-} s3c24xx_t;
+};
#endif