diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-06 11:31:10 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-05-06 11:31:10 +0000 |
commit | 83f4ec29a3b5bdc9682c253bebaf495d74bbc47e (patch) | |
tree | c08e311af01ec9d8e36e1a7ecf4b47797c72e474 | |
parent | 92def389f2ca39de06c4061970cce3d945a377e5 (diff) |
defn cdev_scanner_init()
-rw-r--r-- | sys/sys/conf.h | 10 |
1 files changed, 8 insertions, 2 deletions
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), \ |