diff options
author | Jason Wright <jason@cvs.openbsd.org> | 2002-01-13 02:06:47 +0000 |
---|---|---|
committer | Jason Wright <jason@cvs.openbsd.org> | 2002-01-13 02:06:47 +0000 |
commit | 81ce5687ba5a7876107ea8029e52cdf543a5ac3d (patch) | |
tree | a03fed8b271c9a55ef09c7c0846e4fe90b964853 /sys/arch | |
parent | ec9c6e9fcaa9decdd1cfe28c4a9575a1690d2bac (diff) |
Port of my spif driver to sparc64 (untested)
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc64/include/conf.h | 4 | ||||
-rw-r--r-- | sys/arch/sparc64/sparc64/conf.c | 7 |
2 files changed, 7 insertions, 4 deletions
diff --git a/sys/arch/sparc64/include/conf.h b/sys/arch/sparc64/include/conf.h index e1c75c7d628..1d0fe08ec71 100644 --- a/sys/arch/sparc64/include/conf.h +++ b/sys/arch/sparc64/include/conf.h @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.h,v 1.8 2002/01/12 20:19:40 jason Exp $ */ +/* $OpenBSD: conf.h,v 1.9 2002/01/13 02:06:45 jason Exp $ */ /* $NetBSD: conf.h,v 1.9 2001/03/26 12:33:26 lukem Exp $ */ /*- @@ -113,3 +113,5 @@ cdev_decl(uscanner); cdev_decl(mtty); cdev_decl(mbpp); +cdev_decl(stty); +cdev_decl(sbpp); diff --git a/sys/arch/sparc64/sparc64/conf.c b/sys/arch/sparc64/sparc64/conf.c index efb3ba01a2c..56c5c515994 100644 --- a/sys/arch/sparc64/sparc64/conf.c +++ b/sys/arch/sparc64/sparc64/conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: conf.c,v 1.20 2002/01/12 20:19:40 jason Exp $ */ +/* $OpenBSD: conf.c,v 1.21 2002/01/13 02:06:45 jason Exp $ */ /* $NetBSD: conf.c,v 1.17 2001/03/26 12:33:26 lukem Exp $ */ /* @@ -93,6 +93,7 @@ #define NBPP 0 #endif #include "magma.h" /* has NMTTY and NMBPP */ +#include "spif.h" /* has NSTTY and NSBPP */ #ifdef notyet #include "fdc.h" /* has NFDC and NFD; see files.sparc */ @@ -278,8 +279,8 @@ struct cdevsw cdevsw[] = #else cdev_notdef(), #endif - cdev_notdef(), /* 108 */ - cdev_notdef(), /* 109 */ + cdev_tty_init(NSTTY,mtty), /* 108: spif serial ports */ + cdev_gen_init(NSBPP,mbpp), /* 109: spif parallel ports */ cdev_disk_init(NVND,vnd), /* 110: vnode disk driver */ cdev_bpftun_init(NTUN,tun), /* 111: network tunnel */ cdev_lkm_init(NLKM,lkm), /* 112: loadable module driver */ |