Lines Matching defs:sc_dsh
65 struct ds_handle sc_dsh;
95 sc->sc_dsh.ds_read_bit = draco_ds_read_bit;
96 sc->sc_dsh.ds_write_bit = draco_ds_write_bit;
97 sc->sc_dsh.ds_reset = draco_ds_reset;
98 sc->sc_dsh.ds_hw_handle = (void *)(DRCCADDR + DRIOCTLPG*PAGE_SIZE);
100 sc->sc_dsh.ds_reset(sc->sc_dsh.ds_hw_handle);
102 ds_write_byte(&sc->sc_dsh, DS_ROM_READ);
104 rombuf[i] = ds_read_byte(&sc->sc_dsh);
168 sc->sc_dsh.ds_reset(sc->sc_dsh.ds_hw_handle);
170 ds_write_byte(&sc->sc_dsh, DS_ROM_SKIP);
172 ds_write_byte(&sc->sc_dsh, DS_MEM_READ_MEMORY);
174 ds_write_byte(&sc->sc_dsh, 0x02);
175 ds_write_byte(&sc->sc_dsh, 0x02);
177 usecs = (ds_read_byte(&sc->sc_dsh) * 1000000) / 256;
178 clkbuf = ds_read_byte(&sc->sc_dsh)
179 + (ds_read_byte(&sc->sc_dsh)<<8)
180 + (ds_read_byte(&sc->sc_dsh)<<16)
181 + (ds_read_byte(&sc->sc_dsh)<<24);