From: jsg Date: Mon, 26 Apr 2021 06:00:12 +0000 (+0000) Subject: remove unused cdev defines X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=133505ef72212cd8f8f083a43183bc8a1ccba88e;p=openbsd remove unused cdev defines --- 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"