Supported pcmcia modem card.
Submitted by: MURAMATSU Atsushi <amura@ma3.seikyou.ne.jp>
This commit is contained in:
parent
03881b0e61
commit
34a8061ba3
@ -132,7 +132,7 @@
|
||||
#define COM_IF_MCRS98 0x14 /* same as COM_IF_MC16550II */
|
||||
#define COM_IF_RSB3000 0x15
|
||||
#define COM_IF_RSB384 0x16
|
||||
#define COM_IF_MODEM_CARD 0x17 /* same as COM_IF_NS16550 */
|
||||
#define COM_IF_MODEM_CARD 0x17
|
||||
#define COM_IF_RSA98III 0x18
|
||||
#define COM_IF_ESP98 0x19
|
||||
#define COM_IF_END2 COM_IF_ESP98
|
||||
@ -929,7 +929,11 @@ sio_pccard_probe(dev)
|
||||
{
|
||||
/* Do not probe IRQ - pccard doesn't turn on the interrupt line */
|
||||
/* until bus_setup_intr */
|
||||
#ifdef PC98
|
||||
SET_FLAG(dev, COM_C_NOPROBE | SET_IFTYPE(COM_IF_MODEM_CARD));
|
||||
#else
|
||||
SET_FLAG(dev, COM_C_NOPROBE);
|
||||
#endif
|
||||
|
||||
return (sioprobe(dev, 0));
|
||||
}
|
||||
@ -1147,7 +1151,7 @@ sio_isa_probe(dev)
|
||||
#ifdef PC98
|
||||
logical_id = isa_get_logicalid(dev);
|
||||
if (logical_id == 0x0100e4a5) /* RSA-98III */
|
||||
device_set_flags(dev, SET_IFTYPE(COM_IF_RSA98III));
|
||||
SET_FLAG(dev, SET_IFTYPE(COM_IF_RSA98III));
|
||||
#endif
|
||||
return (sioprobe(dev, 0));
|
||||
}
|
||||
@ -1191,7 +1195,8 @@ sioprobe(dev, xrid)
|
||||
if (IS_8251(iod.if_type)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
||||
0, ~0, 1, RF_ACTIVE);
|
||||
} else if (iod.if_type == COM_IF_RSA98III ||
|
||||
} else if (iod.if_type == COM_IF_MODEM_CARD ||
|
||||
iod.if_type == COM_IF_RSA98III ||
|
||||
isa_get_vendorid(dev)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
|
||||
if_16550a_type[iod.if_type & 0x0f].iatsz, RF_ACTIVE);
|
||||
@ -1729,7 +1734,8 @@ sioattach(dev, xrid)
|
||||
if (IS_8251(if_type)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
||||
0, ~0, 1, RF_ACTIVE);
|
||||
} else if (if_type == COM_IF_RSA98III ||
|
||||
} else if (if_type == COM_IF_MODEM_CARD ||
|
||||
if_type == COM_IF_RSA98III ||
|
||||
isa_get_vendorid(dev)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
|
||||
if_16550a_type[if_type & 0x0f].iatsz, RF_ACTIVE);
|
||||
|
@ -132,7 +132,7 @@
|
||||
#define COM_IF_MCRS98 0x14 /* same as COM_IF_MC16550II */
|
||||
#define COM_IF_RSB3000 0x15
|
||||
#define COM_IF_RSB384 0x16
|
||||
#define COM_IF_MODEM_CARD 0x17 /* same as COM_IF_NS16550 */
|
||||
#define COM_IF_MODEM_CARD 0x17
|
||||
#define COM_IF_RSA98III 0x18
|
||||
#define COM_IF_ESP98 0x19
|
||||
#define COM_IF_END2 COM_IF_ESP98
|
||||
@ -929,7 +929,11 @@ sio_pccard_probe(dev)
|
||||
{
|
||||
/* Do not probe IRQ - pccard doesn't turn on the interrupt line */
|
||||
/* until bus_setup_intr */
|
||||
#ifdef PC98
|
||||
SET_FLAG(dev, COM_C_NOPROBE | SET_IFTYPE(COM_IF_MODEM_CARD));
|
||||
#else
|
||||
SET_FLAG(dev, COM_C_NOPROBE);
|
||||
#endif
|
||||
|
||||
return (sioprobe(dev, 0));
|
||||
}
|
||||
@ -1147,7 +1151,7 @@ sio_isa_probe(dev)
|
||||
#ifdef PC98
|
||||
logical_id = isa_get_logicalid(dev);
|
||||
if (logical_id == 0x0100e4a5) /* RSA-98III */
|
||||
device_set_flags(dev, SET_IFTYPE(COM_IF_RSA98III));
|
||||
SET_FLAG(dev, SET_IFTYPE(COM_IF_RSA98III));
|
||||
#endif
|
||||
return (sioprobe(dev, 0));
|
||||
}
|
||||
@ -1191,7 +1195,8 @@ sioprobe(dev, xrid)
|
||||
if (IS_8251(iod.if_type)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
||||
0, ~0, 1, RF_ACTIVE);
|
||||
} else if (iod.if_type == COM_IF_RSA98III ||
|
||||
} else if (iod.if_type == COM_IF_MODEM_CARD ||
|
||||
iod.if_type == COM_IF_RSA98III ||
|
||||
isa_get_vendorid(dev)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
|
||||
if_16550a_type[iod.if_type & 0x0f].iatsz, RF_ACTIVE);
|
||||
@ -1729,7 +1734,8 @@ sioattach(dev, xrid)
|
||||
if (IS_8251(if_type)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
||||
0, ~0, 1, RF_ACTIVE);
|
||||
} else if (if_type == COM_IF_RSA98III ||
|
||||
} else if (if_type == COM_IF_MODEM_CARD ||
|
||||
if_type == COM_IF_RSA98III ||
|
||||
isa_get_vendorid(dev)) {
|
||||
port = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
|
||||
if_16550a_type[if_type & 0x0f].iatsz, RF_ACTIVE);
|
||||
|
Loading…
Reference in New Issue
Block a user