summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>1995-09-08 03:37:51 +0000
committerjulian <julian@FreeBSD.org>1995-09-08 03:37:51 +0000
commitd6a11774e98f705a2eda86646c632ceeadf8db48 (patch)
tree5f4fa6caed7592ae389f434fd887809ecf6676bd
parentc50186e9d43eb5d9a2a3485d0d58edfdc2a20153 (diff)
downloadFreeBSD-src-d6a11774e98f705a2eda86646c632ceeadf8db48.zip
FreeBSD-src-d6a11774e98f705a2eda86646c632ceeadf8db48.tar.gz
DAng! forgot this as well
cdevsw entry (71) for the asc scanner driver
-rw-r--r--sys/i386/i386/conf.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/sys/i386/i386/conf.c b/sys/i386/i386/conf.c
index 62be8e2..94d03eb 100644
--- a/sys/i386/i386/conf.c
+++ b/sys/i386/i386/conf.c
@@ -42,7 +42,7 @@
* SUCH DAMAGE.
*
* from: @(#)conf.c 5.8 (Berkeley) 5/12/91
- * $Id: conf.c,v 1.94 1995/09/03 19:53:11 jkh Exp $
+ * $Id: conf.c,v 1.95 1995/09/03 23:55:53 jkh Exp $
*/
#include <sys/param.h>
@@ -893,6 +893,21 @@ d_ioctl_t joyioctl;
#define joyioctl nxioctl
#endif
+#include "asc.h"
+#if NASC > 0
+d_open_t ascopen;
+d_close_t ascclose;
+d_rdwr_t ascread;
+d_ioctl_t ascioctl;
+d_select_t ascselect;
+#else
+#define ascopen nxopen
+#define ascclose nxclose
+#define ascread nxread
+#define ascioctl nxioctl
+#define ascselect nxselect
+#endif
+
#include "tun.h"
#if NTUN > 0
d_open_t tunopen;
@@ -1336,7 +1351,11 @@ struct cdevsw cdevsw[] =
seltrue, nommap, wcdstrategy },
{ odopen, odclose, rawread, rawwrite, /*70*/
odioctl, nostop, nullreset, nodevtotty,/* od */
- seltrue, nommap, odstrategy }
+ seltrue, nommap, odstrategy },
+ { ascopen, ascclose, ascread, nowrite, /*71*/
+ ascioctl, nostop, nullreset, nodevtotty, /* asc */
+ ascselect, nommap, NULL }
+
};
int nchrdev = sizeof (cdevsw) / sizeof (cdevsw[0]);
OpenPOWER on IntegriCloud