From: deraadt Date: Mon, 6 May 1996 11:31:09 +0000 (+0000) Subject: defn cdev_scanner_init() X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9bea2e228ef3358e00b1ce2600dd1effa042f515;p=openbsd defn cdev_scanner_init() --- diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 21ba2eba41f..98ad0446a45 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -1,5 +1,5 @@ -/* $OpenBSD: conf.h,v 1.8 1996/05/04 18:51:02 mickey Exp $ */ -/* $NetBSD: conf.h,v 1.32 1996/03/30 21:52:04 christos Exp $ */ +/* $OpenBSD: conf.h,v 1.9 1996/05/06 11:31:09 deraadt Exp $ */ +/* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -188,6 +188,12 @@ extern struct cdevsw cdevsw[]; dev_init(c,n,write), dev_init(c,n,ioctl), (dev_type_stop((*))) enodev, \ 0, seltrue, (dev_type_mmap((*))) enodev, D_TAPE } +#define cdev_scanner_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) nullop, \ + 0, seltrue, (dev_type_mmap((*))) enodev, 0 } + /* open, close, read, write, ioctl, stop, tty */ #define cdev_tty_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \