2000-01-09 06:55:28 +03:00
|
|
|
/* $NetBSD: dcvar.h,v 1.8 2000/01/09 03:55:34 simonb 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;
|
|
|
|
|
1999-12-03 16:07:35 +03:00
|
|
|
int dc_flags;
|
|
|
|
|
1996-09-26 00:48:51 +04:00
|
|
|
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 */
|
|
|
|
};
|
|
|
|
|
1999-12-03 16:07:35 +03:00
|
|
|
/* flags */
|
|
|
|
#define DC_KBDMOUSE 0x01 /* keyboard and mouse attached */
|
|
|
|
|
2000-01-09 06:55:28 +03:00
|
|
|
int dcattach __P((struct dc_softc *sc, void *addr,
|
|
|
|
int dtrmask, int rts_ctsmask, int speed, int consline));
|
|
|
|
|
1996-09-26 00:48:51 +04:00
|
|
|
int dcintr __P((void * xxxunit));
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Following declaratios for console code.
|
2000-01-09 06:55:28 +03:00
|
|
|
* XXX should be redesigned to expose less driver internals.
|
1996-09-26 00:48:51 +04:00
|
|
|
*/
|
2000-01-09 06:55:28 +03:00
|
|
|
void dc_consinit __P((dev_t dev, void *dcaddr));
|
|
|
|
int dc_ds_consinit __P((dev_t dev));
|
2000-01-08 04:02:35 +03:00
|
|
|
int dcGetc __P((dev_t dev));
|
|
|
|
void dcPutc __P((dev_t dev, int c));
|
1997-05-28 18:21:39 +04:00
|
|
|
|
|
|
|
/* QVSS-compatible in-kernel X input event parser, pointer tracker */
|
2000-01-09 06:55:28 +03:00
|
|
|
extern void (*dcDivertXInput) __P((int));
|
|
|
|
extern void (*dcMouseEvent) __P((void *));
|
|
|
|
extern void (*dcMouseButtons) __P((void *));
|
1995-08-04 04:22:02 +04:00
|
|
|
|
1996-09-26 00:48:51 +04:00
|
|
|
#endif /* _DCVAR_H */
|
|
|
|
#endif /* _KERNEL */
|