diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 1998-04-01 20:14:17 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 1998-04-01 20:14:17 +0000 |
commit | 0f3702f046579d375453edd9b18edd32e9e31176 (patch) | |
tree | b049c786e72808da332c00be304ce32a294b88ab | |
parent | 832ddc3b47473001279caece5fe187fe7d24bfff (diff) |
add read/write mouse driver
-rw-r--r-- | sys/sys/conf.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/sys/conf.h b/sys/sys/conf.h index d3f6bca2eba..b7549a27e34 100644 --- a/sys/sys/conf.h +++ b/sys/sys/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.23 1997/11/23 05:17:58 mickey Exp $ */ +/* $OpenBSD: conf.h,v 1.24 1998/04/01 20:14:16 matthieu Exp $ */ /* $NetBSD: conf.h,v 1.33 1996/05/03 20:03:32 christos Exp $ */ /*- @@ -207,6 +207,13 @@ extern struct cdevsw cdevsw[]; (dev_type_stop((*))) enodev, 0, dev_init(c,n,select), \ (dev_type_mmap((*))) enodev } +/* open, close, read, write, ioctl, select */ +#define cdev_mousewr_init(c,n) { \ + dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \ + dev_init(c,n,write), dev_init(c,n,ioctl), \ + (dev_type_stop((*))) enodev, 0, dev_init(c,n,select), \ + (dev_type_mmap((*))) enodev } + #define cdev_lkm_dummy() { \ (dev_type_open((*))) lkmenodev, (dev_type_close((*))) enodev, \ (dev_type_read((*))) enodev, (dev_type_write((*))) enodev, \ |