Lines Matching +full:has +full:- +full:transaction +full:- +full:translator
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
46 #error "maximum number of high-speed isochronous frames is higher than supported!"
50 #error "maximum number of full-speed isochronous frames is higher than supported!"
122 * Split Transaction Isochronous Transfer Descriptor. This descriptor is used
202 #define EHCI_QTD_PAYLOAD_MAX ((EHCI_QTD_NBUFFERS-1)*EHCI_PAGE_SIZE)
341 #define EHCI_SCFLG_BIGEDESC 0x0008 /* big-endian byte order descriptors */
342 #define EHCI_SCFLG_TT 0x0020 /* transaction translator present */
346 #define EHCI_SCFLG_DONEINIT 0x1000 /* ehci_init() has been called. */
364 #define EREAD1(sc, a) bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
365 #define EREAD2(sc, a) bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
366 #define EREAD4(sc, a) bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (a))
368 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
370 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
372 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (a), (x))
374 bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
376 bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
378 bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a))
380 bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a), (x))
382 bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a), (x))
384 bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (sc)->sc_offs+(a), (x))
389 * Typically the latter is little-endian but some controllers require
390 * big-endian in which case we may need to manually swap.
395 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? htobe32(v) : htole32(v); in htohc32()
401 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? htobe16(v) : htole16(v); in htohc16()
407 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? be32toh(v) : le32toh(v); in hc32toh()
413 return sc->sc_flags & EHCI_SCFLG_BIGEDESC ? be16toh(v) : le16toh(v); in hc16toh()
417 * Normal little-endian only conversion routines.