Lines Matching defs:so
64 struct sapcic_socket *so;
68 so = &sc->sc_socket[i];
69 sapcic_kthread_create(so);
71 sacc_intr_establish((sacc_chipset_tag_t)so->pcictag_cookie,
73 IST_EDGE_RAISE, IPL_BIO, sapcic_intr, so);
123 sacpcic_read(struct sapcic_socket *so, int reg)
126 struct sacpcic_softc *sc = (struct sacpcic_softc *)so->sc;
132 bit = (so->socket ? SR_S1_CARDDETECT : SR_S0_CARDDETECT) & cr;
139 bit = (so->socket ? SR_S1_VS1 : SR_S0_VS1);
143 bit = (so->socket ? SR_S1_VS2 : SR_S0_VS2);
147 bit = (so->socket ? SR_S1_READY : SR_S0_READY);
156 sacpcic_write(struct sapcic_socket *so, int reg, int arg)
159 struct sacpcic_softc *sc = (struct sacpcic_softc *)so->sc;
166 mask = so->socket ? CR_S1_RST : CR_S0_RST;
172 mask = so->socket ? CR_S1_FLT : CR_S0_FLT;
178 mask = so->socket ? CR_S1_PWAITEN : CR_S0_PWAITEN;
184 mask = so->socket ? CR_S1_PSE : CR_S0_PSE;
214 sacpcic_intr_establish(struct sapcic_socket *so, int level,
219 irq = so->socket ? IRQ_S1_READY : IRQ_S0_READY;
220 return sacc_intr_establish((sacc_chipset_tag_t)so->pcictag_cookie, irq,
225 sacpcic_intr_disestablish(struct sapcic_socket *so, void *ih)
227 sacc_intr_disestablish((sacc_chipset_tag_t)so->pcictag_cookie, ih);