Previous 15994 Revisions Next

r3936 Saturday 20th December, 2008 at 20:49:31 UTC by Nathan Woods
Cleaned up NS16550 interface
[src/mess/drivers]avigo.c bebox.c
[src/mess/includes]bebox.h
[src/mess/machine]bebox.c

src/mess/includes/bebox.h
r3935r3936
1818extern const struct dma8237_interface bebox_dma8237_2_config;
1919extern const struct pic8259_interface bebox_pic8259_master_config;
2020extern const struct pic8259_interface bebox_pic8259_slave_config;
21extern const ins8250_interface bebox_uart_inteface[4];
21extern const ins8250_interface bebox_uart_inteface_0;
22extern const ins8250_interface bebox_uart_inteface_1;
23extern const ins8250_interface bebox_uart_inteface_2;
24extern const ins8250_interface bebox_uart_inteface_3;
2225
2326MACHINE_START( bebox );
2427MACHINE_RESET( bebox );
src/mess/machine/bebox.c
r3935r3936
361361}
362362
363363
364const ins8250_interface bebox_uart_inteface[4] =
364const ins8250_interface bebox_uart_inteface_0 =
365365{
366   {
367      0,
368      NULL,
369      NULL,
370      NULL,
371      NULL
372   },
373   {
374      0,
375      NULL,
376      NULL,
377      NULL,
378      NULL
379   },
380   {
381      0,
382      NULL,
383      NULL,
384      NULL,
385      NULL
386   },
387   {
388      0,
389      NULL,
390      bebox_uart_transmit,
391      bebox_uart_handshake,
392      NULL
393   }
366   0,
367   NULL,
368   NULL,
369   NULL,
370   NULL
394371};
395372
373const ins8250_interface bebox_uart_inteface_1 =
374{
375   0,
376   NULL,
377   NULL,
378   NULL,
379   NULL
380};
396381
382const ins8250_interface bebox_uart_inteface_2 =
383{
384   0,
385   NULL,
386   NULL,
387   NULL,
388   NULL
389};
390
391const ins8250_interface bebox_uart_inteface_3 =
392{
393   0,
394   NULL,
395   bebox_uart_transmit,
396   bebox_uart_handshake,
397   NULL
398};
399
400
397401/*************************************
398402 *
399403 *   Floppy Disk Controller
src/mess/drivers/bebox.c
r3935r3936
101101
102102   MDRV_PIC8259_ADD( "pic8259_slave", bebox_pic8259_slave_config )
103103
104   MDRV_DEVICE_ADD( "ns16550_0", NS16550 )         /* TODO: Verify model */
105   MDRV_DEVICE_CONFIG( bebox_uart_inteface[0] )
104   MDRV_NS16550_ADD( "ns16550_0", bebox_uart_inteface_0 )         /* TODO: Verify model */
105   MDRV_NS16550_ADD( "ns16550_1", bebox_uart_inteface_1 )         /* TODO: Verify model */
106   MDRV_NS16550_ADD( "ns16550_2", bebox_uart_inteface_2 )         /* TODO: Verify model */
107   MDRV_NS16550_ADD( "ns16550_3", bebox_uart_inteface_3 )         /* TODO: Verify model */
106108
107   MDRV_DEVICE_ADD( "ns16550_1", NS16550 )         /* TODO: Verify model */
108   MDRV_DEVICE_CONFIG( bebox_uart_inteface[1] )
109
110   MDRV_DEVICE_ADD( "ns16550_2", NS16550 )         /* TODO: Verify model */
111   MDRV_DEVICE_CONFIG( bebox_uart_inteface[2] )
112
113   MDRV_DEVICE_ADD( "ns16550_3", NS16550 )         /* TODO: Verify model */
114   MDRV_DEVICE_CONFIG( bebox_uart_inteface[3] )
115
116109   MDRV_IDE_CONTROLLER_ADD( "ide", bebox_ide_interrupt )   /* FIXME */
117110
118111   /* video hardware */
src/mess/drivers/avigo.c
r3935r3936
866866   MDRV_MACHINE_RESET( avigo )
867867   MDRV_NVRAM_HANDLER( avigo )
868868
869   MDRV_DEVICE_ADD( "ns16550", NS16550 )
870   MDRV_DEVICE_CONFIG( avigo_com_interface )
869   MDRV_NS16550_ADD( "ns16550", avigo_com_interface )
871870
872871    /* video hardware */
873872   MDRV_SCREEN_ADD("main", LCD)

Previous 15994 Revisions Next


© 1998-2018 The MESS Team