Home | History | Annotate | Line # | Download | only in include
      1  1.4   tsutsui /* $NetBSD: z8530var.h,v 1.4 2008/03/29 19:15:34 tsutsui Exp $ */
      2  1.1  drochner 
      3  1.1  drochner #include <dev/ic/z8530sc.h>
      4  1.1  drochner 
      5  1.1  drochner struct zsc_softc {
      6  1.4   tsutsui 	device_t zsc_dev;		/* required first: base device */
      7  1.1  drochner 	struct	zs_chanstate *zsc_cs[2];	/* channel A and B soft state */
      8  1.1  drochner 	/* Machine-dependent part follows... */
      9  1.2   tsutsui 	void	*zsc_softintr_cookie;
     10  1.1  drochner };
     11  1.1  drochner 
     12  1.4   tsutsui uint8_t zs_read_reg(struct zs_chanstate *cs, uint8_t reg);
     13  1.4   tsutsui uint8_t zs_read_csr(struct zs_chanstate *cs);
     14  1.4   tsutsui uint8_t zs_read_data(struct zs_chanstate *cs);
     15  1.4   tsutsui 
     16  1.4   tsutsui void  zs_write_reg(struct zs_chanstate *cs, uint8_t reg, uint8_t val);
     17  1.4   tsutsui void  zs_write_csr(struct zs_chanstate *cs, uint8_t val);
     18  1.4   tsutsui void  zs_write_data(struct zs_chanstate *cs, uint8_t val);
     19  1.1  drochner 
     20  1.1  drochner /* Interrupt priority for the SCC chip; needs to match ZSHARD_PRI. */
     21  1.1  drochner #define splzs()		spl4()
     22  1.3        ad #define	IPL_ZS		IPL_HIGH
     23  1.3        ad 
     24