summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/include/conf.h
diff options
context:
space:
mode:
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);