Previous 199869 Revisions Next

r17555 Wednesday 29th August, 2012 at 14:10:35 UTC by Miodrag Milanović
s3c24xx: placed video start and screen update into device (no whatsnew)
[src/emu/machine]s3c2400.c s3c2400.h s3c2410.c s3c2410.h s3c2440.c s3c2440.h
[src/mame/drivers]ghosteo.c
[src/mess/drivers]hp49gp.c mini2440.c palmz22.c

trunk/src/mame/drivers/ghosteo.c
r17554r17555
595595   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500) /* not accurate */)
596596   MCFG_SCREEN_SIZE(455, 262)
597597   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)
599599
600600   MCFG_PALETTE_LENGTH(256)
601601
602602   MCFG_MACHINE_RESET( bballoon )
603603
604   MCFG_VIDEO_START(s3c2410)
605
606604   MCFG_S3C2410_ADD("s3c2410", 12000000, bballoon_s3c2410_intf)
607605
608606//  MCFG_NAND_ADD("nand", 0xEC, 0x75)
trunk/src/emu/machine/s3c2440.c
r17554r17555
3131#include "machine/s3c24xx.c"
3232#undef DEVICE_S3C2440
3333
34VIDEO_START( s3c2440 )
34UINT32 s3c2440_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
3535{
36   device_t *device = machine.device( S3C2440_TAG);
37   s3c24xx_video_start( device, machine);
36   return s3c24xx_video_update( this, screen, bitmap, cliprect);
3837}
3938
40SCREEN_UPDATE_RGB32( s3c2440 )
41{
42   device_t *device = screen.machine().device( S3C2440_TAG);
43   return s3c24xx_video_update( device, screen, bitmap, cliprect);
44}
45
4639DEVICE_START( s3c2440 )
4740{
4841   address_space *space = device->machine().device( "maincpu")->memory().space( AS_PROGRAM);
r17554r17555
7467   space->install_legacy_readwrite_handler( *device, 0x5a000000, 0x5a000043, FUNC(s3c24xx_sdi_r), FUNC(s3c24xx_sdi_w));
7568   space->install_legacy_readwrite_handler( *device, 0x5b000000, 0x5b00001f, FUNC(s3c24xx_ac97_r), FUNC(s3c24xx_ac97_w));
7669   DEVICE_START_CALL(s3c24xx);
70   
71   s3c24xx_video_start( device, device->machine());
7772}
7873
7974DEVICE_GET_INFO( s3c2440 )
r17554r17555
114109   s3c24xx_pin_frnb_w( device, state);
115110}
116111
117DEFINE_LEGACY_DEVICE(S3C2440, s3c2440);
112s3c2440_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
117const device_type S3C2440 = &legacy_device_creator<s3c2440_device>;
trunk/src/emu/machine/s3c2440.h
r17554r17555
4040   S3C2440_CORE_PIN_OM1
4141};
4242
43DECLARE_LEGACY_DEVICE(S3C2440, s3c2440);
43DEVICE_GET_INFO( s3c2440 );
4444
45class s3c2440_device : public legacy_device_base
46{
47public:
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
53extern const device_type S3C2440;
54
55
4556/*******************************************************************************
4657    TYPE DEFINITIONS
4758*******************************************************************************/
r17554r17555
117128    PROTOTYPES
118129*******************************************************************************/
119130
120DEVICE_GET_INFO( s3c2440 );
121
122VIDEO_START( s3c2440 );
123SCREEN_UPDATE_RGB32( s3c2440 );
124
125131void s3c2440_uart_fifo_w( device_t *device, int uart, UINT8 data);
126132void s3c2440_touch_screen( device_t *device, int state);
127133void s3c2440_request_irq( device_t *device, UINT32 int_type);
trunk/src/emu/machine/s3c2400.c
r17554r17555
3131#include "machine/s3c24xx.c"
3232#undef DEVICE_S3C2400
3333
34VIDEO_START( s3c2400 )
34UINT32 s3c2400_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
3535{
36   device_t *device = machine.device( S3C2400_TAG);
37   s3c24xx_video_start( device, machine);
36   return s3c24xx_video_update( this, screen, bitmap, cliprect);
3837}
3938
40SCREEN_UPDATE_RGB32( s3c2400 )
41{
42   device_t *device = screen.machine().device( S3C2400_TAG);
43   return s3c24xx_video_update( device, screen, bitmap, cliprect);
44}
45
4639DEVICE_START( s3c2400 )
4740{
4841   address_space *space = device->machine().device( "maincpu")->memory().space( AS_PROGRAM);
r17554r17555
6962   space->install_legacy_readwrite_handler( *device, 0x15800000, 0x15800007, FUNC(s3c24xx_adc_r), FUNC(s3c24xx_adc_w));
7063   space->install_legacy_readwrite_handler( *device, 0x15900000, 0x15900017, FUNC(s3c24xx_spi_0_r), FUNC(s3c24xx_spi_0_w));
7164   space->install_legacy_readwrite_handler( *device, 0x15a00000, 0x15a0003f, FUNC(s3c24xx_mmc_r), FUNC(s3c24xx_mmc_w));
65   
66   s3c24xx_video_start( device, device->machine());
7267}
7368
7469DEVICE_GET_INFO( s3c2400 )
r17554r17555
8984   s3c24xx_uart_fifo_w( device, uart, data);
9085}
9186
92DEFINE_LEGACY_DEVICE(S3C2400, s3c2400);
87s3c2400_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
92const device_type S3C2400 = &legacy_device_creator<s3c2400_device>;
trunk/src/emu/machine/s3c2400.h
r17554r17555
3333   S3C2400_GPIO_PORT_G
3434};
3535
36DECLARE_LEGACY_DEVICE(S3C2400, s3c2400);
36DEVICE_GET_INFO( s3c2400 );
3737
38class s3c2400_device : public legacy_device_base
39{
40public:
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
46extern const device_type S3C2400;
47
3848/*******************************************************************************
3949    TYPE DEFINITIONS
4050*******************************************************************************/
r17554r17555
100110    PROTOTYPES
101111*******************************************************************************/
102112
103DEVICE_GET_INFO( s3c2400 );
104
105VIDEO_START( s3c2400 );
106SCREEN_UPDATE_RGB32( s3c2400 );
107
108113void s3c2400_uart_fifo_w( device_t *device, int uart, UINT8 data);
109114
110115/*******************************************************************************
trunk/src/emu/machine/s3c2410.c
r17554r17555
3131#include "machine/s3c24xx.c"
3232#undef DEVICE_S3C2410
3333
34VIDEO_START( s3c2410 )
34UINT32 s3c2410_device::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
3535{
36   device_t *device = machine.device( S3C2410_TAG);
37   s3c24xx_video_start( device, machine);
36   return s3c24xx_video_update( this, screen, bitmap, cliprect);
3837}
3938
40SCREEN_UPDATE_RGB32( s3c2410 )
41{
42   device_t *device = screen.machine().device( S3C2410_TAG);
43   return s3c24xx_video_update( device, screen, bitmap, cliprect);
44}
45
4639DEVICE_START( s3c2410 )
4740{
4841   address_space *space = device->machine().device( "maincpu")->memory().space( AS_PROGRAM);
r17554r17555
7265   space->install_legacy_readwrite_handler( *device, 0x59000000, 0x59000017, FUNC(s3c24xx_spi_0_r), FUNC(s3c24xx_spi_0_w));
7366   space->install_legacy_readwrite_handler( *device, 0x59000020, 0x59000037, FUNC(s3c24xx_spi_1_r), FUNC(s3c24xx_spi_1_w));
7467   space->install_legacy_readwrite_handler( *device, 0x5a000000, 0x5a000043, FUNC(s3c24xx_sdi_r), FUNC(s3c24xx_sdi_w));
68   
69   s3c24xx_video_start( device, device->machine());
7570}
7671
7772DEVICE_GET_INFO( s3c2410 )
r17554r17555
113108   s3c24xx_request_eint( device, number);
114109}
115110
116DEFINE_LEGACY_DEVICE(S3C2410, s3c2410);
111s3c2410_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
116const device_type S3C2410 = &legacy_device_creator<s3c2410_device>;
trunk/src/emu/machine/s3c2410.h
r17554r17555
4141   S3C2410_CORE_PIN_OM1
4242};
4343
44DECLARE_LEGACY_DEVICE(S3C2410, s3c2410);
44DEVICE_GET_INFO( s3c2410 );
4545
46class s3c2410_device : public legacy_device_base
47{
48public:
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
54extern const device_type S3C2410;
55
56
4657READ32_DEVICE_HANDLER( s3c2410_lcd_r );
4758
4859/*******************************************************************************
r17554r17555
120131    PROTOTYPES
121132*******************************************************************************/
122133
123DEVICE_GET_INFO( s3c2410 );
124
125VIDEO_START( s3c2410 );
126SCREEN_UPDATE_RGB32( s3c2410 );
127
128134void s3c2410_uart_fifo_w( device_t *device, int uart, UINT8 data);
129135void s3c2410_touch_screen( device_t *device, int state);
130136void s3c2410_request_eint( device_t *device, UINT32 number);
trunk/src/mess/drivers/mini2440.c
r17554r17555
234234   MCFG_SCREEN_VISIBLE_AREA(0, 239, 0, 319)
235235   MCFG_DEFAULT_LAYOUT(layout_lcd)
236236
237   MCFG_VIDEO_START(s3c2440)
238   MCFG_SCREEN_UPDATE_STATIC(s3c2440)
237   MCFG_SCREEN_UPDATE_DEVICE("s3c2440", s3c2440_device, screen_update)
239238
240239   MCFG_MACHINE_START(mini2440)
241240   MCFG_MACHINE_RESET(mini2440)
trunk/src/mess/drivers/hp49gp.c
r17554r17555
301301   MCFG_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500)) /* not accurate */
302302   MCFG_SCREEN_SIZE(160, 85)
303303   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)
305305
306306   MCFG_DEFAULT_LAYOUT(layout_lcd)
307307
308   MCFG_VIDEO_START(s3c2410)
309
310308   MCFG_MACHINE_START(hp49gp)
311309   MCFG_MACHINE_RESET(hp49gp)
312310
trunk/src/mess/drivers/palmz22.c
r17554r17555
306306   MCFG_SCREEN_VISIBLE_AREA(0, 160 - 1, 0, 160 - 1)
307307   MCFG_DEFAULT_LAYOUT(layout_lcd)
308308
309   MCFG_VIDEO_START(s3c2410)
310   MCFG_SCREEN_UPDATE_STATIC(s3c2410)
309   MCFG_SCREEN_UPDATE_DEVICE("s3c2410", s3c2410_device, screen_update)
311310
312311   MCFG_MACHINE_START(palmz22)
313312   MCFG_MACHINE_RESET(palmz22)

Previous 199869 Revisions Next


© 1997-2024 The MAME Team