Previous 199869 Revisions Next

r21435 Monday 25th February, 2013 at 10:38:07 UTC by Miodrag Milanović
Commented com3 and com4 in isa_com implementation, usual case is 2 not 4 (no whatsnew)
[src/mess/machine]isa_com.c

trunk/src/mess/machine/isa_com.c
r21434r21435
1111#include "machine/serial.h"
1212#include "machine/ins8250.h"
1313
14static const ins8250_interface genpc_com_interface[4]=
14static const ins8250_interface genpc_com_interface[2]=
1515{
1616   {
1717      DEVCB_DEVICE_LINE_MEMBER("serport0", serial_port_device, tx),
r21434r21435
2828      DEVCB_DEVICE_LINE_MEMBER(DEVICE_SELF_OWNER, isa8_com_device, pc_com_interrupt_2),
2929      DEVCB_NULL,
3030      DEVCB_NULL
31   },
31   }/*,
3232   {
3333      DEVCB_DEVICE_LINE_MEMBER("serport2", serial_port_device, tx),
3434      DEVCB_DEVICE_LINE_MEMBER("serport2", rs232_port_device, dtr_w),
r21434r21435
4444      DEVCB_DEVICE_LINE_MEMBER(DEVICE_SELF_OWNER, isa8_com_device, pc_com_interrupt_2),
4545      DEVCB_NULL,
4646      DEVCB_NULL
47   }
47   }*/
4848};
4949
50static const rs232_port_interface serport_config[4] =
50static const rs232_port_interface serport_config[2] =
5151{
5252   {
5353      DEVCB_DEVICE_LINE_MEMBER("uart_0", ins8250_uart_device, rx_w),
r21434r21435
6262      DEVCB_DEVICE_LINE_MEMBER("uart_1", ins8250_uart_device, dsr_w),
6363      DEVCB_DEVICE_LINE_MEMBER("uart_1", ins8250_uart_device, ri_w),
6464      DEVCB_DEVICE_LINE_MEMBER("uart_1", ins8250_uart_device, cts_w)
65   },
65   }/*,
6666   {
6767      DEVCB_DEVICE_LINE_MEMBER("uart_2", ins8250_uart_device, rx_w),
6868      DEVCB_DEVICE_LINE_MEMBER("uart_2", ins8250_uart_device, dcd_w),
r21434r21435
7676      DEVCB_DEVICE_LINE_MEMBER("uart_3", ins8250_uart_device, dsr_w),
7777      DEVCB_DEVICE_LINE_MEMBER("uart_3", ins8250_uart_device, ri_w),
7878      DEVCB_DEVICE_LINE_MEMBER("uart_3", ins8250_uart_device, cts_w)
79   }
79   }*/
8080};
8181
8282static SLOT_INTERFACE_START(isa_com)
r21434r21435
8989static MACHINE_CONFIG_FRAGMENT( com_config )
9090   MCFG_INS8250_ADD( "uart_0", genpc_com_interface[0], XTAL_1_8432MHz )
9191   MCFG_INS8250_ADD( "uart_1", genpc_com_interface[1], XTAL_1_8432MHz )
92   MCFG_INS8250_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
93   MCFG_INS8250_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
92   //MCFG_INS8250_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
93   //MCFG_INS8250_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
9494   MCFG_RS232_PORT_ADD( "serport0", serport_config[0], isa_com, "microsoft_mouse", NULL )
9595   MCFG_RS232_PORT_ADD( "serport1", serport_config[1], isa_com, NULL, NULL )
96   MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
97   MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
96   //MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
97   //MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
9898MACHINE_CONFIG_END
9999
100100//**************************************************************************
r21434r21435
143143   set_isa_device();
144144   m_isa->install_device(0x03f8, 0x03ff, 0, 0, read8_delegate(FUNC(ins8250_device::ins8250_r), subdevice<ins8250_uart_device>("uart_0")), write8_delegate(FUNC(ins8250_device::ins8250_w), subdevice<ins8250_uart_device>("uart_0")) );
145145   m_isa->install_device(0x02f8, 0x02ff, 0, 0, read8_delegate(FUNC(ins8250_device::ins8250_r), subdevice<ins8250_uart_device>("uart_1")), write8_delegate(FUNC(ins8250_device::ins8250_w), subdevice<ins8250_uart_device>("uart_1")) );
146   m_isa->install_device(0x03e8, 0x03ef, 0, 0, read8_delegate(FUNC(ins8250_device::ins8250_r), subdevice<ins8250_uart_device>("uart_2")), write8_delegate(FUNC(ins8250_device::ins8250_w), subdevice<ins8250_uart_device>("uart_2")) );
147   m_isa->install_device(0x02e8, 0x02ef, 0, 0, read8_delegate(FUNC(ins8250_device::ins8250_r), subdevice<ins8250_uart_device>("uart_3")), write8_delegate(FUNC(ins8250_device::ins8250_w), subdevice<ins8250_uart_device>("uart_3")) );
146//   m_isa->install_device(0x03e8, 0x03ef, 0, 0, read8_delegate(FUNC(ins8250_device::ins8250_r), subdevice<ins8250_uart_device>("uart_2")), write8_delegate(FUNC(ins8250_device::ins8250_w), subdevice<ins8250_uart_device>("uart_2")) );
147//   m_isa->install_device(0x02e8, 0x02ef, 0, 0, read8_delegate(FUNC(ins8250_device::ins8250_r), subdevice<ins8250_uart_device>("uart_3")), write8_delegate(FUNC(ins8250_device::ins8250_w), subdevice<ins8250_uart_device>("uart_3")) );
148148}
149149
150150//-------------------------------------------------
r21434r21435
158158static MACHINE_CONFIG_FRAGMENT( com_at_config )
159159   MCFG_NS16450_ADD( "uart_0", genpc_com_interface[0], XTAL_1_8432MHz ) /* Verified: IBM P/N 6320947 Serial/Parallel card uses an NS16450N */
160160   MCFG_NS16450_ADD( "uart_1", genpc_com_interface[1], XTAL_1_8432MHz )
161   MCFG_NS16450_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
162   MCFG_NS16450_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
161//   MCFG_NS16450_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
162//   MCFG_NS16450_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
163163   MCFG_RS232_PORT_ADD( "serport0", serport_config[0], isa_com, "microsoft_mouse", NULL )
164164   MCFG_RS232_PORT_ADD( "serport1", serport_config[1], isa_com, NULL, NULL )
165   MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
166   MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
165//   MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
166//   MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
167167MACHINE_CONFIG_END
168168
169169//**************************************************************************

Previous 199869 Revisions Next


© 1997-2024 The MAME Team