diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2001-09-20 20:50:04 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2001-09-20 20:50:04 +0000 |
commit | bca0bac323557ad790813fb7c2d4e2539df9193d (patch) | |
tree | edb3fc8faf9cf86897187495b048bfd6d31fb16d /sys/arch/sparc64 | |
parent | 6b31829509e9d353148ca903e475b92f3eefa6b5 (diff) |
openfirmware device (and move ksyms decl to conf.h)
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/include/conf.h | 11 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/conf.c | 7 |
2 files changed, 11 insertions, 7 deletions
diff --git a/sys/arch/sparc64/include/conf.h b/sys/arch/sparc64/include/conf.h index aa6201098d9..fe1c467d7c0 100644 --- a/sys/arch/sparc64/include/conf.h +++ b/sys/arch/sparc64/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.2 2001/08/20 20:23:52 jason Exp $ */ +/* $OpenBSD: conf.h,v 1.3 2001/09/20 20:50:03 jason Exp $ */ /* $NetBSD: conf.h,v 1.9 2001/03/26 12:33:26 lukem Exp $ */ /*- @@ -41,8 +41,17 @@ #define mmwrite mmrw cdev_decl(mm); +cdev_decl(ksyms); + cdev_decl(openprom); +/* open, close, ioctl */ +#define cdev_openprom_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, (dev_type_select((*))) enodev, \ + (dev_type_mmap((*))) enodev } + cdev_decl(cn); cdev_decl(zs); diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c index 1ef6c9d60d6..7ee8fd53ecd 100644 --- a/sys/arch/sparc64/sparc64/conf.c +++ b/sys/arch/sparc64/sparc64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.8 2001/09/19 23:41:55 jason Exp $ */ +/* $OpenBSD: conf.c,v 1.9 2001/09/20 20:50:03 jason Exp $ */ /* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */ /* @@ -127,7 +127,6 @@ cdev_decl(xfs_dev); #endif #include "ksyms.h" -cdev_decl(ksyms); struct bdevsw bdevsw[] = { @@ -236,11 +235,7 @@ struct cdevsw cdevsw[] = cdev_fb_init(NCGSIX,cgsix), /* 67: /dev/cgsix */ cdev_notdef(), /* 68 */ cdev_audio_init(NAUDIO,audio), /* 69: /dev/audio */ -#ifdef notyet cdev_openprom_init(1,openprom), /* 70: /dev/openprom */ -#else - cdev_notdef(), -#endif cdev_notdef(), /* 71 */ cdev_notdef(), /* 72 */ cdev_pf_init(NPF,pf), /* 73: packet filter */ |