summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2021-04-26 06:00:13 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2021-04-26 06:00:13 +0000
commitfe9a23277fe2e477572c0fadee733536d71fa7c1 (patch)
tree4b497f7bfe28b999e0981e3a450b53970aad691c /sys
parentb1b5ff2d32b02f8ad535a958bf5a17670c2f64ad (diff)
remove unused cdev defines
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/riscv64/riscv64/conf.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/sys/arch/riscv64/riscv64/conf.c b/sys/arch/riscv64/riscv64/conf.c
index f566940f348..07e279a4f34 100644
--- a/sys/arch/riscv64/riscv64/conf.c
+++ b/sys/arch/riscv64/riscv64/conf.c
@@ -68,34 +68,6 @@ struct bdevsw bdevsw[] =
};
int nblkdev = nitems(bdevsw);
-/* open, close, read, write, ioctl, tty, mmap */
-#define cdev_pc_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_init(c,n,stop), \
- dev_init(c,n,tty), ttselect, dev_init(c,n,mmap), D_TTY }
-
-/* open, close, read, ioctl */
-#define cdev_joy_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((*))) enodev, 0, seltrue, \
- (dev_type_mmap((*))) enodev }
-
-/* open, close, ioctl, select -- XXX should be a generic device */
-#define cdev_ocis_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_init(c,n,poll), \
- (dev_type_mmap((*))) enodev, 0 }
-
-/* open, close, read */
-#define cdev_nvram_init(c,n) { \
- dev_init(c,n,open), dev_init(c,n,close), dev_init(c,n,read), \
- (dev_type_write((*))) enodev, (dev_type_ioctl((*))) enodev, \
- (dev_type_stop((*))) enodev, 0, seltrue, \
- (dev_type_mmap((*))) enodev, 0 }
-
-
#define mmread mmrw
#define mmwrite mmrw
cdev_decl(mm);
@@ -107,7 +79,6 @@ cdev_decl(com);
cdev_decl(lpt);
#include "ch.h"
#include "bpfilter.h"
-cdev_decl(spkr);
#include "tun.h"
#include "audio.h"
#include "video.h"