trunk/src/mame/drivers/ghosteo.c
r17554 | r17555 | |
595 | 595 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */) |
596 | 596 | MCFG_SCREEN_SIZE(455, 262) |
597 | 597 | MCFG_SCREEN_VISIBLE_AREA(0, 320-1, 0, 256-1) |
598 | | MCFG_SCREEN_UPDATE_STATIC(s3c2410) |
| 598 | MCFG_SCREEN_UPDATE_DEVICE("s3c2410", s3c2410_device, screen_update) |
599 | 599 | |
600 | 600 | MCFG_PALETTE_LENGTH(256) |
601 | 601 | |
602 | 602 | MCFG_MACHINE_RESET( bballoon ) |
603 | 603 | |
604 | | MCFG_VIDEO_START(s3c2410) |
605 | | |
606 | 604 | MCFG_S3C2410_ADD("s3c2410", 12000000, bballoon_s3c2410_intf) |
607 | 605 | |
608 | 606 | // MCFG_NAND_ADD("nand", 0xEC, 0x75) |
trunk/src/emu/machine/s3c2440.c
r17554 | r17555 | |
31 | 31 | #include "machine/s3c24xx.c" |
32 | 32 | #undef DEVICE_S3C2440 |
33 | 33 | |
34 | | VIDEO_START( s3c2440 ) |
| 34 | UINT32 s3c2440_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
35 | 35 | { |
36 | | device_t *device = machine.device( S3C2440_TAG); |
37 | | s3c24xx_video_start( device, machine); |
| 36 | return s3c24xx_video_update( this, screen, bitmap, cliprect); |
38 | 37 | } |
39 | 38 | |
40 | | SCREEN_UPDATE_RGB32( s3c2440 ) |
41 | | { |
42 | | device_t *device = screen.machine().device( S3C2440_TAG); |
43 | | return s3c24xx_video_update( device, screen, bitmap, cliprect); |
44 | | } |
45 | | |
46 | 39 | DEVICE_START( s3c2440 ) |
47 | 40 | { |
48 | 41 | address_space *space = device->machine().device( "maincpu")->memory().space( AS_PROGRAM); |
r17554 | r17555 | |
74 | 67 | space->install_legacy_readwrite_handler( *device, 0x5a000000, 0x5a000043, FUNC(s3c24xx_sdi_r), FUNC(s3c24xx_sdi_w)); |
75 | 68 | space->install_legacy_readwrite_handler( *device, 0x5b000000, 0x5b00001f, FUNC(s3c24xx_ac97_r), FUNC(s3c24xx_ac97_w)); |
76 | 69 | DEVICE_START_CALL(s3c24xx); |
| 70 | |
| 71 | s3c24xx_video_start( device, device->machine()); |
77 | 72 | } |
78 | 73 | |
79 | 74 | DEVICE_GET_INFO( s3c2440 ) |
r17554 | r17555 | |
114 | 109 | s3c24xx_pin_frnb_w( device, state); |
115 | 110 | } |
116 | 111 | |
117 | | DEFINE_LEGACY_DEVICE(S3C2440, s3c2440); |
| 112 | s3c2440_device::s3c2440_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock) |
| 113 | : legacy_device_base(mconfig, type, tag, owner, clock, DEVICE_GET_INFO_NAME(s3c2440)) |
| 114 | { |
| 115 | } |
| 116 | |
| 117 | const device_type S3C2440 = &legacy_device_creator<s3c2440_device>; |
trunk/src/emu/machine/s3c2440.h
r17554 | r17555 | |
40 | 40 | S3C2440_CORE_PIN_OM1 |
41 | 41 | }; |
42 | 42 | |
43 | | DECLARE_LEGACY_DEVICE(S3C2440, s3c2440); |
| 43 | DEVICE_GET_INFO( s3c2440 ); |
44 | 44 | |
| 45 | class s3c2440_device : public legacy_device_base |
| 46 | { |
| 47 | public: |
| 48 | s3c2440_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock); |
| 49 | |
| 50 | UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |
| 51 | }; |
| 52 | |
| 53 | extern const device_type S3C2440; |
| 54 | |
| 55 | |
45 | 56 | /******************************************************************************* |
46 | 57 | TYPE DEFINITIONS |
47 | 58 | *******************************************************************************/ |
r17554 | r17555 | |
117 | 128 | PROTOTYPES |
118 | 129 | *******************************************************************************/ |
119 | 130 | |
120 | | DEVICE_GET_INFO( s3c2440 ); |
121 | | |
122 | | VIDEO_START( s3c2440 ); |
123 | | SCREEN_UPDATE_RGB32( s3c2440 ); |
124 | | |
125 | 131 | void s3c2440_uart_fifo_w( device_t *device, int uart, UINT8 data); |
126 | 132 | void s3c2440_touch_screen( device_t *device, int state); |
127 | 133 | void s3c2440_request_irq( device_t *device, UINT32 int_type); |
trunk/src/emu/machine/s3c2400.c
r17554 | r17555 | |
31 | 31 | #include "machine/s3c24xx.c" |
32 | 32 | #undef DEVICE_S3C2400 |
33 | 33 | |
34 | | VIDEO_START( s3c2400 ) |
| 34 | UINT32 s3c2400_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
35 | 35 | { |
36 | | device_t *device = machine.device( S3C2400_TAG); |
37 | | s3c24xx_video_start( device, machine); |
| 36 | return s3c24xx_video_update( this, screen, bitmap, cliprect); |
38 | 37 | } |
39 | 38 | |
40 | | SCREEN_UPDATE_RGB32( s3c2400 ) |
41 | | { |
42 | | device_t *device = screen.machine().device( S3C2400_TAG); |
43 | | return s3c24xx_video_update( device, screen, bitmap, cliprect); |
44 | | } |
45 | | |
46 | 39 | DEVICE_START( s3c2400 ) |
47 | 40 | { |
48 | 41 | address_space *space = device->machine().device( "maincpu")->memory().space( AS_PROGRAM); |
r17554 | r17555 | |
69 | 62 | space->install_legacy_readwrite_handler( *device, 0x15800000, 0x15800007, FUNC(s3c24xx_adc_r), FUNC(s3c24xx_adc_w)); |
70 | 63 | space->install_legacy_readwrite_handler( *device, 0x15900000, 0x15900017, FUNC(s3c24xx_spi_0_r), FUNC(s3c24xx_spi_0_w)); |
71 | 64 | space->install_legacy_readwrite_handler( *device, 0x15a00000, 0x15a0003f, FUNC(s3c24xx_mmc_r), FUNC(s3c24xx_mmc_w)); |
| 65 | |
| 66 | s3c24xx_video_start( device, device->machine()); |
72 | 67 | } |
73 | 68 | |
74 | 69 | DEVICE_GET_INFO( s3c2400 ) |
r17554 | r17555 | |
89 | 84 | s3c24xx_uart_fifo_w( device, uart, data); |
90 | 85 | } |
91 | 86 | |
92 | | DEFINE_LEGACY_DEVICE(S3C2400, s3c2400); |
| 87 | s3c2400_device::s3c2400_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock) |
| 88 | : legacy_device_base(mconfig, type, tag, owner, clock, DEVICE_GET_INFO_NAME(s3c2400)) |
| 89 | { |
| 90 | } |
| 91 | |
| 92 | const device_type S3C2400 = &legacy_device_creator<s3c2400_device>; |
trunk/src/emu/machine/s3c2400.h
r17554 | r17555 | |
33 | 33 | S3C2400_GPIO_PORT_G |
34 | 34 | }; |
35 | 35 | |
36 | | DECLARE_LEGACY_DEVICE(S3C2400, s3c2400); |
| 36 | DEVICE_GET_INFO( s3c2400 ); |
37 | 37 | |
| 38 | class s3c2400_device : public legacy_device_base |
| 39 | { |
| 40 | public: |
| 41 | s3c2400_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock); |
| 42 | |
| 43 | UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |
| 44 | }; |
| 45 | |
| 46 | extern const device_type S3C2400; |
| 47 | |
38 | 48 | /******************************************************************************* |
39 | 49 | TYPE DEFINITIONS |
40 | 50 | *******************************************************************************/ |
r17554 | r17555 | |
100 | 110 | PROTOTYPES |
101 | 111 | *******************************************************************************/ |
102 | 112 | |
103 | | DEVICE_GET_INFO( s3c2400 ); |
104 | | |
105 | | VIDEO_START( s3c2400 ); |
106 | | SCREEN_UPDATE_RGB32( s3c2400 ); |
107 | | |
108 | 113 | void s3c2400_uart_fifo_w( device_t *device, int uart, UINT8 data); |
109 | 114 | |
110 | 115 | /******************************************************************************* |
trunk/src/emu/machine/s3c2410.c
r17554 | r17555 | |
31 | 31 | #include "machine/s3c24xx.c" |
32 | 32 | #undef DEVICE_S3C2410 |
33 | 33 | |
34 | | VIDEO_START( s3c2410 ) |
| 34 | UINT32 s3c2410_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect) |
35 | 35 | { |
36 | | device_t *device = machine.device( S3C2410_TAG); |
37 | | s3c24xx_video_start( device, machine); |
| 36 | return s3c24xx_video_update( this, screen, bitmap, cliprect); |
38 | 37 | } |
39 | 38 | |
40 | | SCREEN_UPDATE_RGB32( s3c2410 ) |
41 | | { |
42 | | device_t *device = screen.machine().device( S3C2410_TAG); |
43 | | return s3c24xx_video_update( device, screen, bitmap, cliprect); |
44 | | } |
45 | | |
46 | 39 | DEVICE_START( s3c2410 ) |
47 | 40 | { |
48 | 41 | address_space *space = device->machine().device( "maincpu")->memory().space( AS_PROGRAM); |
r17554 | r17555 | |
72 | 65 | space->install_legacy_readwrite_handler( *device, 0x59000000, 0x59000017, FUNC(s3c24xx_spi_0_r), FUNC(s3c24xx_spi_0_w)); |
73 | 66 | space->install_legacy_readwrite_handler( *device, 0x59000020, 0x59000037, FUNC(s3c24xx_spi_1_r), FUNC(s3c24xx_spi_1_w)); |
74 | 67 | space->install_legacy_readwrite_handler( *device, 0x5a000000, 0x5a000043, FUNC(s3c24xx_sdi_r), FUNC(s3c24xx_sdi_w)); |
| 68 | |
| 69 | s3c24xx_video_start( device, device->machine()); |
75 | 70 | } |
76 | 71 | |
77 | 72 | DEVICE_GET_INFO( s3c2410 ) |
r17554 | r17555 | |
113 | 108 | s3c24xx_request_eint( device, number); |
114 | 109 | } |
115 | 110 | |
116 | | DEFINE_LEGACY_DEVICE(S3C2410, s3c2410); |
| 111 | s3c2410_device::s3c2410_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock) |
| 112 | : legacy_device_base(mconfig, type, tag, owner, clock, DEVICE_GET_INFO_NAME(s3c2410)) |
| 113 | { |
| 114 | } |
| 115 | |
| 116 | const device_type S3C2410 = &legacy_device_creator<s3c2410_device>; |
trunk/src/emu/machine/s3c2410.h
r17554 | r17555 | |
41 | 41 | S3C2410_CORE_PIN_OM1 |
42 | 42 | }; |
43 | 43 | |
44 | | DECLARE_LEGACY_DEVICE(S3C2410, s3c2410); |
| 44 | DEVICE_GET_INFO( s3c2410 ); |
45 | 45 | |
| 46 | class s3c2410_device : public legacy_device_base |
| 47 | { |
| 48 | public: |
| 49 | s3c2410_device(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, UINT32 clock); |
| 50 | |
| 51 | UINT32 screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); |
| 52 | }; |
| 53 | |
| 54 | extern const device_type S3C2410; |
| 55 | |
| 56 | |
46 | 57 | READ32_DEVICE_HANDLER( s3c2410_lcd_r ); |
47 | 58 | |
48 | 59 | /******************************************************************************* |
r17554 | r17555 | |
120 | 131 | PROTOTYPES |
121 | 132 | *******************************************************************************/ |
122 | 133 | |
123 | | DEVICE_GET_INFO( s3c2410 ); |
124 | | |
125 | | VIDEO_START( s3c2410 ); |
126 | | SCREEN_UPDATE_RGB32( s3c2410 ); |
127 | | |
128 | 134 | void s3c2410_uart_fifo_w( device_t *device, int uart, UINT8 data); |
129 | 135 | void s3c2410_touch_screen( device_t *device, int state); |
130 | 136 | void s3c2410_request_eint( device_t *device, UINT32 number); |
trunk/src/mess/drivers/mini2440.c
r17554 | r17555 | |
234 | 234 | MCFG_SCREEN_VISIBLE_AREA(0, 239, 0, 319) |
235 | 235 | MCFG_DEFAULT_LAYOUT(layout_lcd) |
236 | 236 | |
237 | | MCFG_VIDEO_START(s3c2440) |
238 | | MCFG_SCREEN_UPDATE_STATIC(s3c2440) |
| 237 | MCFG_SCREEN_UPDATE_DEVICE("s3c2440", s3c2440_device, screen_update) |
239 | 238 | |
240 | 239 | MCFG_MACHINE_START(mini2440) |
241 | 240 | MCFG_MACHINE_RESET(mini2440) |
trunk/src/mess/drivers/hp49gp.c
r17554 | r17555 | |
301 | 301 | MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */ |
302 | 302 | MCFG_SCREEN_SIZE(160, 85) |
303 | 303 | MCFG_SCREEN_VISIBLE_AREA(0, 131 - 1, 0, 80 - 1) |
304 | | MCFG_SCREEN_UPDATE_STATIC(s3c2410) |
| 304 | MCFG_SCREEN_UPDATE_DEVICE("s3c2410", s3c2410_device, screen_update) |
305 | 305 | |
306 | 306 | MCFG_DEFAULT_LAYOUT(layout_lcd) |
307 | 307 | |
308 | | MCFG_VIDEO_START(s3c2410) |
309 | | |
310 | 308 | MCFG_MACHINE_START(hp49gp) |
311 | 309 | MCFG_MACHINE_RESET(hp49gp) |
312 | 310 | |
trunk/src/mess/drivers/palmz22.c
r17554 | r17555 | |
306 | 306 | MCFG_SCREEN_VISIBLE_AREA(0, 160 - 1, 0, 160 - 1) |
307 | 307 | MCFG_DEFAULT_LAYOUT(layout_lcd) |
308 | 308 | |
309 | | MCFG_VIDEO_START(s3c2410) |
310 | | MCFG_SCREEN_UPDATE_STATIC(s3c2410) |
| 309 | MCFG_SCREEN_UPDATE_DEVICE("s3c2410", s3c2410_device, screen_update) |
311 | 310 | |
312 | 311 | MCFG_MACHINE_START(palmz22) |
313 | 312 | MCFG_MACHINE_RESET(palmz22) |