1997-05-28 18:21:39 +04:00
|
|
|
/* $NetBSD: dcvar.h,v 1.4 1997/05/28 14:21:39 jonathan Exp $ */
|
1995-08-04 04:22:02 +04:00
|
|
|
|
|
|
|
/*
|
1996-01-30 01:52:15 +03:00
|
|
|
* External declarations from DECstation dc serial driver.
|
1995-08-04 04:22:02 +04:00
|
|
|
*/
|
|
|
|
|
1996-09-26 00:48:51 +04:00
|
|
|
#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.
|
|
|
|
*/
|
1995-08-04 04:22:02 +04:00
|
|
|
extern int dcGetc __P ((dev_t dev));
|
|
|
|
extern int dcparam __P((register struct tty *tp, register struct termios *t));
|
1996-01-30 01:52:15 +03:00
|
|
|
extern void dcPutc __P((dev_t dev, int c));
|
1997-05-28 18:21:39 +04:00
|
|
|
|
|
|
|
struct dc7085regs;
|
|
|
|
void dc_consinit __P((dev_t dev, volatile struct dc7085regs *dcaddr));
|
|
|
|
|
|
|
|
/* QVSS-compatible in-kernel X input event parser, pointer tracker */
|
|
|
|
void (*dcDivertXInput) __P((int cc)); /* X windows keyboard input routine */
|
|
|
|
void (*dcMouseEvent) __P((int)); /* X windows mouse motion event routine */
|
|
|
|
void (*dcMouseButtons) __P((int)); /* X windows mouse buttons event routine */
|
1995-08-04 04:22:02 +04:00
|
|
|
|
1996-09-26 00:48:51 +04:00
|
|
|
#endif /* _DCVAR_H */
|
|
|
|
#endif /* _KERNEL */
|