-/* $OpenBSD: z8530sc.c,v 1.3 1996/05/26 00:27:06 deraadt Exp $ */
+/* $OpenBSD: z8530sc.c,v 1.4 1997/01/15 05:35:46 kstailey Exp $ */
/* $NetBSD: z8530sc.c,v 1.4 1996/05/17 19:30:34 gwr Exp $ */
/*
#include <dev/ic/z8530reg.h>
#include <machine/z8530var.h>
-int
+static void zsnull_intr __P((struct zs_chanstate *));
+static void zsnull_softint __P((struct zs_chanstate *));
+
+void
zs_break(cs, set)
struct zs_chanstate *cs;
int set;
struct zs_chanstate *cs;
{
u_char *reg;
- int i;
/* Copy "pending" regs to "current" */
bcopy((caddr_t)cs->cs_preg, (caddr_t)cs->cs_creg, 16);
-/* $OpenBSD: z8530sc.h,v 1.6 1997/01/15 00:41:55 kstailey Exp $ */
+/* $OpenBSD: z8530sc.h,v 1.7 1997/01/15 05:35:47 kstailey Exp $ */
/* $NetBSD: z8530sc.h,v 1.4 1996/10/16 20:34:54 gwr Exp $ */
/*
};
#define ZS_HWFLAG_CONSOLE 1
-int zsc_intr_hard __P((void *));
-int zsc_intr_soft __P((void *));
+int zsc_intr_hard __P((void *));
+int zsc_intr_soft __P((void *));
+void zs_break __P((struct zs_chanstate *, int));
+int zs_getspeed __P((struct zs_chanstate *));
+void zs_iflush __P((struct zs_chanstate *));
+void zs_loadchannelregs __P((struct zs_chanstate *));
-/* $OpenBSD: z8530tty.c,v 1.9 1996/12/16 00:11:58 kstailey Exp $ */
+/* $OpenBSD: z8530tty.c,v 1.10 1997/01/15 05:35:47 kstailey Exp $ */
/* $NetBSD: z8530tty.c,v 1.13 1996/10/16 20:42:14 gwr Exp $ */
/*
/* Routines called from other code. */
cdev_decl(zs); /* open, close, read, write, ioctl, stop, ... */
-static void zsstart(struct tty *);
-static int zsparam(struct tty *, struct termios *);
-static void zs_modem(struct zstty_softc *zst, int onoff);
-static int zshwiflow(struct tty *, int);
-static void zs_hwiflow(struct zstty_softc *, int);
-
+static void zsstart __P((struct tty *));
+static int zsparam __P((struct tty *, struct termios *));
+static void zs_modem __P((struct zstty_softc *zst, int onoff));
+static int zshwiflow __P((struct tty *, int));
+static void zs_hwiflow __P((struct zstty_softc *, int));
+static void zstty_rxint __P((register struct zs_chanstate *));
+static void zstty_txint __P((register struct zs_chanstate *));
+static void zstty_stint __P((register struct zs_chanstate *));
+static void zstty_softint __P((struct zs_chanstate *));
+static void zsoverrun __P((struct zstty_softc *, long *, char *));
/*
* zstty_match: how is this zs channel configured?
*/
struct zstty_softc *zst;
register struct zs_chanstate *cs;
register struct tty *tp;
- struct zsinfo *zi;
- int hup, s;
+ int hup;
zst = zstty_cd.cd_devs[minor(dev)];
cs = zst->zst_cs;
register struct zstty_softc *zst;
register struct zs_chanstate *cs;
register int s, bps, cflag, tconst;
- u_char tmp3, tmp4, tmp5, reset;
+ u_char tmp3, tmp4, tmp5;
zst = zstty_cd.cd_devs[minor(tp->t_dev)];
cs = zst->zst_cs;
register int get, c, s;
int ringmask, overrun;
register u_short ring_data;
- register u_char rr0, rr1, delta;
+ register u_char rr0, delta;
zst = cs->cs_private;
tp = zst->zst_tty;