Home | History | Annotate | Download | only in dev

Lines Matching defs:opm0

60 struct opm_softc	*opm0;	/* XXX */
112 opm0 = sc; /* XXX */
131 while (bus_space_read_1(opm0->sc_bst, opm0->sc_bht, OPM_DATA) & 0x80);
132 bus_space_write_1(opm0->sc_bst, opm0->sc_bht, OPM_REG, reg);
133 while (bus_space_read_1(opm0->sc_bst, opm0->sc_bht, OPM_DATA) & 0x80);
134 bus_space_write_1(opm0->sc_bst, opm0->sc_bht, OPM_DATA, dat);
135 opm0->sc_regs[reg] = dat;
141 return opm0->sc_regs[reg];
168 writeopm(0x08, opm0->sc_vdata[channel].sm << 3 | channel);
180 memcpy(&opm0->sc_vdata[channel], voice, sizeof(struct opm_voice));
217 switch (opm0->sc_vdata[channel].con) {
219 value = opm0->sc_vdata[channel].m1.tl + volume;
223 value = opm0->sc_vdata[channel].m2.tl + volume;
226 value = opm0->sc_vdata[channel].c1.tl + volume;
232 value = opm0->sc_vdata[channel].c2.tl + volume;