23 unsigned int ctl :4; /* xcdplayer needs this */
24 unsigned char start_msf[3];
28 struct ioc_play_msf last_play;
31 struct bio_queue_head head; /* head of bio queue */
37 struct cdev *scd_dev_t;
40 struct resource * port;
43 bus_space_tag_t port_bst;
44 bus_space_handle_t port_bsh;
48 struct callout_handle ch;
50 struct scd_mbx * ch_mbxsave;
55 #define SCD_LOCK(_sc) splx(&(_sc)->mtx
56 #define SCD_UNLOCK(_sc) splx(&(_sc)->mtx
58 #define SCD_READ(_sc, _reg) \
59 bus_space_read_1(_sc->port_bst, _sc->port_bsh, _reg)
60 #define SCD_READ_MULTI(_sc, _reg, _addr, _count) \
61 bus_space_read_multi_1(_sc->port_bst, _sc->port_bsh, _reg, _addr, _count)
62 #define SCD_WRITE(_sc, _reg, _val) \
63 bus_space_write_1(_sc->port_bst, _sc->port_bsh, _reg, _val)
65 int scd_probe (struct scd_softc *);
66 int scd_attach (struct scd_softc *);