-/* $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 $ */
/*
*/
-/*
- * 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.
*/
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 */
};
#define ZS_HWFLAG_CONSOLE 1
+int zsc_intr_hard __P((void *));
+int zsc_intr_soft __P((void *));