summaryrefslogtreecommitdiff
path: root/sys/dev/ic/z8530sc.h
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-01-15 00:41:56 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-01-15 00:41:56 +0000
commit5097270ace8c9defe0626d516c52f9f6d0c8c0d5 (patch)
treed57712aae21f72b575e38a3067dec2ebabf7f0c5 /sys/dev/ic/z8530sc.h
parenteeec52ffee304ad6eff0b98115518cd329aa5934 (diff)
added prototypes
Diffstat (limited to 'sys/dev/ic/z8530sc.h')
-rw-r--r--sys/dev/ic/z8530sc.h36
1 files changed, 22 insertions, 14 deletions
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 $ */
/*
@@ -48,19 +48,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.
*/
struct zs_chanstate {
@@ -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 *));