Commented com3 and com4 in isa_com implementation, usual case is 2 not 4 (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2013-02-25 10:38:07 +00:00
parent 9250b2ffba
commit e39b9ad818

View File

@ -11,7 +11,7 @@
#include "machine/serial.h"
#include "machine/ins8250.h"
static const ins8250_interface genpc_com_interface[4]=
static const ins8250_interface genpc_com_interface[2]=
{
{
DEVCB_DEVICE_LINE_MEMBER("serport0", serial_port_device, tx),
@ -28,7 +28,7 @@ static const ins8250_interface genpc_com_interface[4]=
DEVCB_DEVICE_LINE_MEMBER(DEVICE_SELF_OWNER, isa8_com_device, pc_com_interrupt_2),
DEVCB_NULL,
DEVCB_NULL
},
}/*,
{
DEVCB_DEVICE_LINE_MEMBER("serport2", serial_port_device, tx),
DEVCB_DEVICE_LINE_MEMBER("serport2", rs232_port_device, dtr_w),
@ -44,10 +44,10 @@ static const ins8250_interface genpc_com_interface[4]=
DEVCB_DEVICE_LINE_MEMBER(DEVICE_SELF_OWNER, isa8_com_device, pc_com_interrupt_2),
DEVCB_NULL,
DEVCB_NULL
}
}*/
};
static const rs232_port_interface serport_config[4] =
static const rs232_port_interface serport_config[2] =
{
{
DEVCB_DEVICE_LINE_MEMBER("uart_0", ins8250_uart_device, rx_w),
@ -62,7 +62,7 @@ static const rs232_port_interface serport_config[4] =
DEVCB_DEVICE_LINE_MEMBER("uart_1", ins8250_uart_device, dsr_w),
DEVCB_DEVICE_LINE_MEMBER("uart_1", ins8250_uart_device, ri_w),
DEVCB_DEVICE_LINE_MEMBER("uart_1", ins8250_uart_device, cts_w)
},
}/*,
{
DEVCB_DEVICE_LINE_MEMBER("uart_2", ins8250_uart_device, rx_w),
DEVCB_DEVICE_LINE_MEMBER("uart_2", ins8250_uart_device, dcd_w),
@ -76,7 +76,7 @@ static const rs232_port_interface serport_config[4] =
DEVCB_DEVICE_LINE_MEMBER("uart_3", ins8250_uart_device, dsr_w),
DEVCB_DEVICE_LINE_MEMBER("uart_3", ins8250_uart_device, ri_w),
DEVCB_DEVICE_LINE_MEMBER("uart_3", ins8250_uart_device, cts_w)
}
}*/
};
static SLOT_INTERFACE_START(isa_com)
@ -89,12 +89,12 @@ SLOT_INTERFACE_END
static MACHINE_CONFIG_FRAGMENT( com_config )
MCFG_INS8250_ADD( "uart_0", genpc_com_interface[0], XTAL_1_8432MHz )
MCFG_INS8250_ADD( "uart_1", genpc_com_interface[1], XTAL_1_8432MHz )
MCFG_INS8250_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
MCFG_INS8250_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
//MCFG_INS8250_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
//MCFG_INS8250_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
MCFG_RS232_PORT_ADD( "serport0", serport_config[0], isa_com, "microsoft_mouse", NULL )
MCFG_RS232_PORT_ADD( "serport1", serport_config[1], isa_com, NULL, NULL )
MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
//MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
//MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
MACHINE_CONFIG_END
//**************************************************************************
@ -143,8 +143,8 @@ void isa8_com_device::device_start()
set_isa_device();
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")) );
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")) );
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")) );
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")) );
// 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")) );
// 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")) );
}
//-------------------------------------------------
@ -158,12 +158,12 @@ void isa8_com_device::device_reset()
static MACHINE_CONFIG_FRAGMENT( com_at_config )
MCFG_NS16450_ADD( "uart_0", genpc_com_interface[0], XTAL_1_8432MHz ) /* Verified: IBM P/N 6320947 Serial/Parallel card uses an NS16450N */
MCFG_NS16450_ADD( "uart_1", genpc_com_interface[1], XTAL_1_8432MHz )
MCFG_NS16450_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
MCFG_NS16450_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
// MCFG_NS16450_ADD( "uart_2", genpc_com_interface[2], XTAL_1_8432MHz )
// MCFG_NS16450_ADD( "uart_3", genpc_com_interface[3], XTAL_1_8432MHz )
MCFG_RS232_PORT_ADD( "serport0", serport_config[0], isa_com, "microsoft_mouse", NULL )
MCFG_RS232_PORT_ADD( "serport1", serport_config[1], isa_com, NULL, NULL )
MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
// MCFG_RS232_PORT_ADD( "serport2", serport_config[2], isa_com, NULL, NULL )
// MCFG_RS232_PORT_ADD( "serport3", serport_config[3], isa_com, NULL, NULL )
MACHINE_CONFIG_END
//**************************************************************************