diff options
author | mjacob <mjacob@cvs.openbsd.org> | 2000-02-21 08:14:14 +0000 |
---|---|---|
committer | mjacob <mjacob@cvs.openbsd.org> | 2000-02-21 08:14:14 +0000 |
commit | 3228d7f69940908fc28ea39daf20b807477086a6 (patch) | |
tree | fd351b3055c0138a4b3836ae25a37b52ac5aac7f | |
parent | 6ac843d514ed2184f564747410f1cb94644f95af (diff) |
add SES device init/decl macros
-rw-r--r-- | sys/sys/conf.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index 3b6197d8ea2..df18db1c32a 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.34 1999/11/22 23:54:55 deraadt Exp $ */ +/* $OpenBSD: conf.h,v 1.35 2000/02/21 08:14:13 mjacob Exp $ */ /* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */ /*- @@ -300,6 +300,13 @@ extern struct cdevsw cdevsw[]; (dev_type_stop((*))) enodev, 0, (dev_type_select((*))) enodev, \ (dev_type_mmap((*))) enodev } +/* open, close, ioctl */ +#define cdev_ses_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), (dev_type_read((*))) enodev, \ + (dev_type_write((*))) enodev, dev_init(c,n,ioctl), \ + (dev_type_stop((*))) enodev, 0, (dev_type_select((*))) enodev, \ + (dev_type_mmap((*))) enodev } + /* open, close, read, ioctl */ #define cdev_ss_init(c,n) { \ dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ @@ -464,6 +471,8 @@ cdev_decl(ss); bdev_decl(sd); cdev_decl(sd); +cdev_decl(ses); + bdev_decl(st); cdev_decl(st); |