diff options
author | Thomas Graichen <graichen@cvs.openbsd.org> | 1996-12-22 15:19:07 +0000 |
---|---|---|
committer | Thomas Graichen <graichen@cvs.openbsd.org> | 1996-12-22 15:19:07 +0000 |
commit | ca1c7fedd990e6b1e7244233df5a6a638f0e4e31 (patch) | |
tree | 20016b11dce3c72001f0e250c8f1a714ed64e546 /sys/arch/pmax/dev/dcvar.h | |
parent | de4c3561677938c64d13b1e5112686a88b0b47fe (diff) |
update the pmax stuff to NetBSD 961107 - this version i got somehow
compiled on my decstation 2100 (PLUTO) - but it will not fully work
out of the box - but i want to bring it into the tree because i get
my own pmax on 961228 - so that i have a good startpoint then :-)
all the OpenBSD changes to the pmax tree will follow in the next commit
Diffstat (limited to 'sys/arch/pmax/dev/dcvar.h')
-rw-r--r-- | sys/arch/pmax/dev/dcvar.h | 35 |
1 files changed, 34 insertions, 1 deletions
diff --git a/sys/arch/pmax/dev/dcvar.h b/sys/arch/pmax/dev/dcvar.h index 1e5c3e9b8f2..d9aad4033a3 100644 --- a/sys/arch/pmax/dev/dcvar.h +++ b/sys/arch/pmax/dev/dcvar.h @@ -1,10 +1,43 @@ -/* $NetBSD: dcvar.h,v 1.2 1996/01/29 22:52:18 jonathan Exp $ */ +/* $NetBSD: dcvar.h,v 1.3 1996/09/25 20:48:57 jonathan Exp $ */ /* * External declarations from DECstation dc serial driver. */ +#ifdef _KERNEL +#ifndef _DCVAR_H +#define _DCVAR_H + +#include <pmax/dev/pdma.h> + +struct dc_softc { + struct device sc_dv; + struct pdma dc_pdma[4]; + struct tty *dc_tty[4]; + /* + * Software copy of brk register since it isn't readable + */ + int dc_brk; + + char dc_19200; /* this unit supports 19200 */ + char dcsoftCAR; /* mask, lines with carrier on (DSR) */ + char dc_rtscts; /* mask, lines with hw flow control */ + char dc_modem; /* mask, lines with DTR wired */ +}; + +int dcattach __P((struct dc_softc *sc, void *addr, + int dtrmask, int rts_ctsmask, + int speed, int consline)); +int dcintr __P((void * xxxunit)); + +/* + * Following declaratios for console code. + * XXX shuould be separated, or redesigned. + */ extern int dcGetc __P ((dev_t dev)); extern int dcparam __P((register struct tty *tp, register struct termios *t)); extern void dcPutc __P((dev_t dev, int c)); +void dc_consinit __P((dev_t dev, dcregs *dcaddr)); +#endif /* _DCVAR_H */ +#endif /* _KERNEL */ |