summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/conf.h
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>1999-07-23 19:11:29 +0000
committerJason Wright <jason@cvs.openbsd.org>1999-07-23 19:11:29 +0000
commit212dedf9ce2e0a21513256af0a7ba3a55cd34af0 (patch)
tree8e7f0565da8bfc7b6c609b6436770c7f94b58e79 /sys/arch/sparc/include/conf.h
parent59c9a82da9a132f80f7cc45e30892651795fdfe9 (diff)
Drivers for the FORCE CPU-5V:
o fga5000 vme-sbus bridge o system config registers o flash memory and daadio VME board driver
Diffstat (limited to 'sys/arch/sparc/include/conf.h')
-rw-r--r--sys/arch/sparc/include/conf.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/sys/arch/sparc/include/conf.h b/sys/arch/sparc/include/conf.h
index 77039f962ca..1dc3d00790e 100644
--- a/sys/arch/sparc/include/conf.h
+++ b/sys/arch/sparc/include/conf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: conf.h,v 1.9 1999/02/01 00:30:43 jason Exp $ */
+/* $OpenBSD: conf.h,v 1.10 1999/07/23 19:11:27 jason Exp $ */
/* $NetBSD: conf.h,v 1.8 1996/12/31 07:12:43 mrg Exp $ */
/*
@@ -109,4 +109,26 @@ cdev_decl(mbpp);
cdev_decl(stty);
cdev_decl(sbpp);
+/* open, close, ioctl */
+#define cdev_scf_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((*))) nullop, 0, seltrue, \
+ (dev_type_mmap((*))) enodev }
+cdev_decl(scf);
+
+/* open, close, ioctl, read, write */
+#define cdev_flash_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((*))) nullop, 0, seltrue, (dev_type_mmap((*))) enodev }
+cdev_decl(flash);
+
+#define cdev_fga_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((*))) nullop, 0, seltrue, \
+ (dev_type_mmap((*))) enodev }
+cdev_decl(fga);
+
cdev_decl(ksyms);