From 5097270ace8c9defe0626d516c52f9f6d0c8c0d5 Mon Sep 17 00:00:00 2001 From: kstailey Date: Wed, 15 Jan 1997 00:41:56 +0000 Subject: added prototypes --- sys/dev/ic/z8530sc.h | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) (limited to 'sys/dev/ic/z8530sc.h') diff --git a/sys/dev/ic/z8530sc.h b/sys/dev/ic/z8530sc.h index f63a43b0e6a..eacb529346d 100644 --- a/sys/dev/ic/z8530sc.h +++ b/sys/dev/ic/z8530sc.h @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530sc.h,v 1.5 1996/11/28 23:27:56 niklas Exp $ */ +/* $OpenBSD: z8530sc.h,v 1.6 1997/01/15 00:41:55 kstailey Exp $ */ /* $NetBSD: z8530sc.h,v 1.4 1996/10/16 20:34:54 gwr Exp $ */ /* @@ -47,19 +47,6 @@ */ -/* - * Function vector - per channel - */ -struct zsops { - void (*zsop_rxint)(); /* receive char available */ - void (*zsop_stint)(); /* external/status */ - void (*zsop_txint)(); /* xmit buffer empty */ - void (*zsop_softint)(); /* process software interrupt */ -}; - -extern struct zsops zsops_null; - - /* * Software state, per zs channel. */ @@ -100,6 +87,25 @@ struct zs_chanstate { char cs_softreq; /* need soft interrupt call */ }; +/* + * Function vector - per channel + */ +struct zsops { + /* receive char available */ + void (*zsop_rxint)__P((register struct zs_chanstate *)); + + /* external/status */ + void (*zsop_stint)__P((register struct zs_chanstate *)); + + /* xmit buffer empty */ + void (*zsop_txint)__P((register struct zs_chanstate *)); + + /* process software interrupt */ + void (*zsop_softint)__P((struct zs_chanstate *)); +}; + +extern struct zsops zsops_null; + struct zsc_softc { struct device zsc_dev; /* required first: base device */ struct zs_chanstate zsc_cs[2]; /* channel A and B soft state */ @@ -111,3 +117,5 @@ struct zsc_attach_args { }; #define ZS_HWFLAG_CONSOLE 1 +int zsc_intr_hard __P((void *)); +int zsc_intr_soft __P((void *)); -- cgit v1.2.3