1 /* $NetBSD: z8530var.h,v 1.2 2007/03/05 13:06:44 tsutsui Exp $ */ 2 3 #include <dev/ic/z8530sc.h> 4 5 struct zsc_softc { 6 struct device zsc_dev; /* required first: base device */ 7 struct zs_chanstate *zsc_cs[2]; /* channel A and B soft state */ 8 /* Machine-dependent part follows... */ 9 void *zsc_softintr_cookie; 10 }; 11 12 u_char zs_read_reg __P((struct zs_chanstate *cs, u_char reg)); 13 u_char zs_read_csr __P((struct zs_chanstate *cs)); 14 u_char zs_read_data __P((struct zs_chanstate *cs)); 15 16 void zs_write_reg __P((struct zs_chanstate *cs, u_char reg, u_char val)); 17 void zs_write_csr __P((struct zs_chanstate *cs, u_char val)); 18 void zs_write_data __P((struct zs_chanstate *cs, u_char val)); 19 20 /* Interrupt priority for the SCC chip; needs to match ZSHARD_PRI. */ 21 #define splzs() spl4() 22