Adapt to the new version of dev/ic/z8530*
(Note: now define zsc_softc here.)
This commit is contained in:
parent
60faf5d2ae
commit
55d81fe0c2
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: z8530var.h,v 1.3 1996/10/13 03:30:30 christos Exp $ */
|
||||
/* $NetBSD: z8530var.h,v 1.4 1996/12/17 22:26:07 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
|
@ -47,6 +47,13 @@
|
|||
|
||||
#include <dev/ic/z8530sc.h>
|
||||
|
||||
struct zsc_softc {
|
||||
struct device zsc_dev; /* required first: base device */
|
||||
struct zs_chanstate *zsc_cs[2]; /* channel A and B soft state */
|
||||
/* Machine-dependent part follows... */
|
||||
struct zs_chanstate zsc_cs_store[2];
|
||||
};
|
||||
|
||||
/*
|
||||
* Functions to read and write individual registers in a channel.
|
||||
* The ZS chip requires a 1.6 uSec. recovery time between accesses,
|
||||
|
@ -63,23 +70,6 @@ void zs_write_reg __P((struct zs_chanstate *cs, u_char reg, u_char val));
|
|||
void zs_write_csr __P((struct zs_chanstate *cs, u_char val));
|
||||
void zs_write_data __P((struct zs_chanstate *cs, u_char val));
|
||||
|
||||
|
||||
/*
|
||||
* How to request a "soft" interrupt.
|
||||
* This could be a macro if you like.
|
||||
*/
|
||||
void zsc_req_softint __P((struct zsc_softc *zsc));
|
||||
|
||||
/* Handle user request to enter kernel debugger. */
|
||||
void zs_abort();
|
||||
|
||||
/* Interrupt priority for the SCC chip; needs to match ZSHARD_PRI. */
|
||||
#define splzs() spl4()
|
||||
|
||||
/*
|
||||
* Some warts needed by z8530tty.c -
|
||||
* The default parity REALLY needs to be the same as the PROM uses,
|
||||
* or you can not see messages done with printf during boot-up...
|
||||
*/
|
||||
#define ZSTTY_MAJOR 12 /* XXX */
|
||||
#define ZSTTY_DEF_CFLAG (CREAD | CS8 | HUPCL)
|
||||
|
|
Loading…
Reference in New Issue