Enables lnc driver on PC-98 to support NEC SV-98/2-B06 PCI card.

Cascade mode of DMA is disabled when PC98 is defined because PC-98
doesn't support it.
This commit is contained in:
KATO Takenori 1997-04-08 10:33:24 +00:00
parent 8b020006c0
commit 5eba6c71a9
4 changed files with 10 additions and 4 deletions

View File

@ -3,7 +3,7 @@
#
# modified for PC-9801
#
# $Id: files.pc98,v 1.19 1997/03/24 07:20:13 kato Exp $
# $Id: files.pc98,v 1.20 1997/04/03 09:55:26 kato Exp $
#
aic7xxx_asm optional ahc device-driver \
dependency "$S/dev/aic7xxx/*.[chyl]" \
@ -120,7 +120,7 @@ pc98/pc98/if_fe.c optional fe device-driver
#pc98/isa/if_ie.c optional ie device-driver
#pc98/isa/if_ix.c optional ix device-driver
#pc98/isa/if_le.c optional le device-driver
#pc98/isa/if_lnc.c optional lnc device-driver
i386/isa/if_lnc.c optional lnc device-driver
#i386/isa/if_sr.c optional sr device-driver
#pc98/isa/if_ze.c optional ze device-driver
i386/isa/if_zp.c optional zp device-driver

View File

@ -1160,6 +1160,8 @@ lnc_attach(struct isa_device * isa_dev)
int result = lnc_attach_sc (sc, unit);
if (result == 0)
return (0);
#ifndef PC98
/*
* XXX - is it safe to call isa_dmacascade() after if_attach()
* and ether_ifattach() have been called in lnc_attach() ???
@ -1168,6 +1170,7 @@ lnc_attach(struct isa_device * isa_dev)
(sc->nic.ic != PCnet_32) &&
(sc->nic.ic != PCnet_PCI))
isa_dmacascade(isa_dev->id_drq);
#endif
return result;
}

View File

@ -1160,6 +1160,8 @@ lnc_attach(struct isa_device * isa_dev)
int result = lnc_attach_sc (sc, unit);
if (result == 0)
return (0);
#ifndef PC98
/*
* XXX - is it safe to call isa_dmacascade() after if_attach()
* and ether_ifattach() have been called in lnc_attach() ???
@ -1168,6 +1170,7 @@ lnc_attach(struct isa_device * isa_dev)
(sc->nic.ic != PCnet_32) &&
(sc->nic.ic != PCnet_PCI))
isa_dmacascade(isa_dev->id_drq);
#endif
return result;
}

View File

@ -3,7 +3,7 @@
#
# modified for PC-9801
#
# $Id: files.pc98,v 1.19 1997/03/24 07:20:13 kato Exp $
# $Id: files.pc98,v 1.20 1997/04/03 09:55:26 kato Exp $
#
aic7xxx_asm optional ahc device-driver \
dependency "$S/dev/aic7xxx/*.[chyl]" \
@ -120,7 +120,7 @@ pc98/pc98/if_fe.c optional fe device-driver
#pc98/isa/if_ie.c optional ie device-driver
#pc98/isa/if_ix.c optional ix device-driver
#pc98/isa/if_le.c optional le device-driver
#pc98/isa/if_lnc.c optional lnc device-driver
i386/isa/if_lnc.c optional lnc device-driver
#i386/isa/if_sr.c optional sr device-driver
#pc98/isa/if_ze.c optional ze device-driver
i386/isa/if_zp.c optional zp device-driver