#!/bin/sh -
#
-# $OpenBSD: MAKEDEV,v 1.77 2000/03/29 21:46:07 aaron Exp $
+# $OpenBSD: MAKEDEV,v 1.78 2000/04/09 21:08:26 matthieu Exp $
# $NetBSD: MAKEDEV,v 1.40 1996/03/31 00:50:47 perry Exp $
#
# Copyright (c) 1990 The Regents of the University of California.
ulpt*)
rm -f ulpt$unit
- mknod ulpt$unit c 63 $unit
+ mknod ulpt$unit c 64 $unit
chown root.wheel ulpt$unit
chmod 600 ulpt$unit
;;
-/* $OpenBSD: conf.c,v 1.58 2000/02/21 08:15:32 mjacob Exp $ */
+/* $OpenBSD: conf.c,v 1.59 2000/04/09 21:07:46 matthieu Exp $ */
/* $NetBSD: conf.c,v 1.75 1996/05/03 19:40:20 christos Exp $ */
/*
cdev_decl(uhid);
#include "ugen.h"
cdev_decl(ugen);
+#include "ulpt.h"
+cdev_decl(ulpt);
#ifdef IPFILTER
#define NIPF 1
cdev_usb_init(NUSB,usb), /* 61: USB controller */
cdev_usbdev_init(NUHID,uhid), /* 62: USB generic HID */
cdev_ugen_init(NUGEN,ugen), /* 63: USB generic driver */
+ cdev_ulpt_init(NULPT,ulpt), /* 64: USB printers */
};
int nchrdev = sizeof(cdevsw) / sizeof(cdevsw[0]);
-/* $OpenBSD: conf.h,v 1.35 2000/02/21 08:14:13 mjacob Exp $ */
+/* $OpenBSD: conf.h,v 1.36 2000/04/09 21:07:46 matthieu Exp $ */
/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */
/*-
(dev_type_stop((*))) enodev, 0, dev_init(c,n,select), \
(dev_type_mmap((*))) enodev }
+/* open, close, write, ioctl */
+#define cdev_ulpt_init(c,n) { \
+ dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \
+ dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \
+ 0, (dev_type_select((*))) enodev, (dev_type_mmap((*))) enodev }
+
#define cdev_usbdev_init(c,n) cdev_random_init(c,n)
#define cdev_ugen_init(c,n) cdev_random_init(c,n)