diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2000-08-19 18:36:20 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2000-08-19 18:36:20 +0000 |
commit | d2eda2479a934922a25a64114aa92a03933b01b1 (patch) | |
tree | 8232258b0b81227c2334852235ca3ec3b500b013 /sys/arch/pmax/dev/dzvar.h | |
parent | 1f39549bbc7140b5cbcebe90ac7d753e9ada677b (diff) |
Late in the release of OpenBSD/pmax 2.7 a conflict between the pmax
dc driver and the generic if_dc driver was found. The fix was to
change the pmax drivers name to dz instead. But this was only done
in a miminal way.
This commit will add a new dz driver to replace the current dc.
-moj
Diffstat (limited to 'sys/arch/pmax/dev/dzvar.h')
-rw-r--r-- | sys/arch/pmax/dev/dzvar.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/sys/arch/pmax/dev/dzvar.h b/sys/arch/pmax/dev/dzvar.h new file mode 100644 index 00000000000..565aa3f424d --- /dev/null +++ b/sys/arch/pmax/dev/dzvar.h @@ -0,0 +1,51 @@ +/* $OpenBSD: dzvar.h,v 1.1 2000/08/19 18:36:19 maja Exp $ */ +/* $NetBSD: dcvar.h,v 1.4 1997/05/28 14:21:39 jonathan Exp $ */ + +/* + * External declarations from DECstation dc serial driver. + */ + +#ifdef _KERNEL +#ifndef _DZVAR_H +#define _DZVAR_H + +#include <pmax/dev/pdma.h> + +struct dz_softc { + struct device sc_dv; + struct pdma dz_pdma[4]; + struct tty *dz_tty[4]; + /* + * Software copy of brk register since it isn't readable + */ + int dz_brk; + + char dz_19200; /* this unit supports 19200 */ + char dzsoftCAR; /* mask, lines with carrier on (DSR) */ + char dz_rtscts; /* mask, lines with hw flow control */ + char dz_modem; /* mask, lines with DTR wired */ +}; + +int dzattach __P((struct dz_softc *sc, void *addr, + int dtrmask, int rts_ctsmask, + int speed, int consline)); +int dzintr __P((void * xxxunit)); + +/* + * Following declaratios for console code. + * XXX shuould be separated, or redesigned. + */ +extern int dzGetc __P ((dev_t dev)); +extern int dzparam __P((register struct tty *tp, register struct termios *t)); +extern void dzPutc __P((dev_t dev, int c)); + +struct dc7085regs; +void dz_consinit __P((dev_t dev, volatile struct dc7085regs *dcaddr)); + +/* QVSS-compatible in-kernel X input event parser, pointer tracker */ +void (*dzDivertXInput) __P((int cc)); /* X windows keyboard input routine */ +void (*dzMouseEvent) __P((int)); /* X windows mouse motion event routine */ +void (*dzMouseButtons) __P((int)); /* X windows mouse buttons event routine */ + +#endif /* _DZVAR_H */ +#endif /* _KERNEL */ |