aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1996-03-29 11:54:56 +0000
committerBruce Evans <bde@FreeBSD.org>1996-03-29 11:54:56 +0000
commite57841c795e218bf40c17967b677d1dbbd06d6a2 (patch)
tree9ef6f00b88e254c569879889aeaaba56c0938e34
parentf85120ac5b657c6a4277eb7dfd2682875db8b27f (diff)
Notes
-rw-r--r--sys/i386/isa/lpt.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/sys/i386/isa/lpt.c b/sys/i386/isa/lpt.c
index 867afec783e74..20437c349541d 100644
--- a/sys/i386/isa/lpt.c
+++ b/sys/i386/isa/lpt.c
@@ -46,7 +46,7 @@
* SUCH DAMAGE.
*
* from: unknown origin, 386BSD 0.1
- * $Id: lpt.c,v 1.50 1996/03/04 15:58:25 phk Exp $
+ * $Id: lpt.c,v 1.51 1996/03/28 14:28:44 scrappy Exp $
*/
/*
@@ -226,9 +226,10 @@ static struct lpt_softc {
struct ifnet sc_if;
u_char *sc_ifbuf;
int sc_iferrs;
-#endif /* ENDIF */
-#ifdef DEVFS
+#endif
+#ifdef DEVFS
void *devfs_token;
+ void *devfs_token_ctl;
#endif
} lpt_sc[NLPT] ;
@@ -477,10 +478,13 @@ lptattach(struct isa_device *isdp)
kdc_lpt[unit].kdc_state = DC_IDLE;
#ifdef DEVFS
-/* XXX */ /* what to do about the flags in the minor number? */
- sc->devfs_token =
- devfs_add_devswf(&lpt_cdevsw, unit, DV_CHR, 0, 0, 0600,
- "lpt%d", unit);
+ /* XXX what to do about the flags in the minor number? */
+ sc->devfs_token = devfs_add_devswf(&lpt_cdevsw,
+ unit, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "lpt%d", unit);
+ sc->devfs_token_ctl = devfs_add_devswf(&lpt_cdevsw,
+ unit | LP_BYPASS, DV_CHR,
+ UID_ROOT, GID_WHEEL, 0600, "lpctl%d", unit);
#endif
return (1);
}
@@ -932,7 +936,6 @@ lpinittables (void)
* Process an ioctl request.
*/
-/* ARGSUSED */
static int
lpioctl (struct ifnet *ifp, int cmd, caddr_t data)
{