diff options
author | nyan <nyan@FreeBSD.org> | 2000-03-16 12:06:29 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2000-03-16 12:06:29 +0000 |
commit | 61b636eac410d742bfc3a1602f8e1fe1181ce5a3 (patch) | |
tree | 825ea9e9997696e13215fc1abe5df85fbb6a2a73 /sys/pc98/cbus/olpt.c | |
parent | f8c8fda8fa34c05b47164808439cd9c114787035 (diff) | |
download | FreeBSD-src-61b636eac410d742bfc3a1602f8e1fe1181ce5a3.zip FreeBSD-src-61b636eac410d742bfc3a1602f8e1fe1181ce5a3.tar.gz |
Fixed to support old parallel interface.
Submitted by: chi@bd.mbn.or.jp (Chiharu Shibata)
Diffstat (limited to 'sys/pc98/cbus/olpt.c')
-rw-r--r-- | sys/pc98/cbus/olpt.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/pc98/cbus/olpt.c b/sys/pc98/cbus/olpt.c index 43ce718..542b733 100644 --- a/sys/pc98/cbus/olpt.c +++ b/sys/pc98/cbus/olpt.c @@ -105,6 +105,7 @@ #include "opt_inet.h" #ifdef PC98 #undef INET /* PLIP is not supported for old PC-98 */ +#define LPT_DRVINIT_AT_ATTACH /* avoid conflicting with lpt on ppbus */ #endif #include <sys/param.h> @@ -255,6 +256,7 @@ static timeout_t lptout; static int lptprobe (struct isa_device *dvp); static int lptattach (struct isa_device *isdp); static ointhand2_t lptintr; +static void lpt_drvinit(void *unused); #ifdef INET @@ -487,6 +489,10 @@ lptattach(struct isa_device *isdp) make_dev(&lpt_cdevsw, unit, UID_ROOT, GID_WHEEL, 0600, "lpt%d", unit); make_dev(&lpt_cdevsw, unit | LP_BYPASS, UID_ROOT, GID_WHEEL, 0600, "lpctl%d", unit); + +#ifdef LPT_DRVINIT_AT_ATTACH + lpt_drvinit(NULL); +#endif return (1); } @@ -1433,6 +1439,6 @@ static void lpt_drvinit(void *unused) lpt_devsw_installed = 1; } } - +#ifndef LPT_DRVINIT_AT_ATTACH SYSINIT(lptdev,SI_SUB_DRIVERS,SI_ORDER_MIDDLE+CDEV_MAJOR,lpt_drvinit,NULL) - +#endif |