Lines Matching refs:sc

362 	void	(*sc_vendor_post_reset)(struct ehci_softc *sc);
363 uint16_t (*sc_vendor_get_port_speed)(struct ehci_softc *sc,
368 #define EREAD1(sc, a) bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
369 #define EREAD2(sc, a) bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
370 #define EREAD4(sc, a) bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
371 #define EWRITE1(sc, a, x) \
372 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
373 #define EWRITE2(sc, a, x) \
374 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
375 #define EWRITE4(sc, a, x) \
376 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
377 #define EOREAD1(sc, a) \
378 bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
379 #define EOREAD2(sc, a) \
380 bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
381 #define EOREAD4(sc, a) \
382 bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
383 #define EOWRITE1(sc, a, x) \
384 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a), (x))
385 #define EOWRITE2(sc, a, x) \
386 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a), (x))
387 #define EOWRITE4(sc, a, x) \
388 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a), (x))
397 htohc32(const struct ehci_softc *sc, const uint32_t v)
399 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? htobe32(v) : htole32(v);
403 htohc16(const struct ehci_softc *sc, const uint16_t v)
405 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? htobe16(v) : htole16(v);
409 hc32toh(const struct ehci_softc *sc, const uint32_t v)
411 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? be32toh(v) : le32toh(v);
415 hc16toh(const struct ehci_softc *sc, const uint16_t v)
417 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? be16toh(v) : le16toh(v);
424 htohc32(const struct ehci_softc *sc, const uint32_t v)
430 htohc16(const struct ehci_softc *sc, const uint16_t v)
436 hc32toh(const struct ehci_softc *sc, const uint32_t v)
442 hc16toh(const struct ehci_softc *sc, const uint16_t v)
450 usb_error_t ehci_reset(ehci_softc_t *sc);
451 usb_error_t ehci_init(ehci_softc_t *sc);
452 void ehci_detach(struct ehci_softc *sc);
453 void ehci_interrupt(unsigned int irq, ehci_softc_t *sc);
454 uint16_t ehci_get_port_speed_portsc(struct ehci_softc *sc, uint16_t index);
455 uint16_t ehci_get_port_speed_hostc(struct ehci_softc *sc, uint16_t index);