Lines Matching +full:big +full:- +full:endian +full:- +full:desc
1 /* SPDX-License-Identifier: GPL-2.0 */
5 #include <linux/usb/ehci-dbgp.h>
14 * To facilitate the strongest possible byte-order checking from "sparse"
33 /* fotg210_hcd->lock guards shared data against other CPUs:
59 * ehci-timer.c) in parallel with this list.
152 /* which ports have the change-suspend feature turned on */
161 /* per-HC memory pools (could be per-bus, but ...) */
195 return (struct fotg210_hcd *)(hcd->hcd_priv); in hcd_to_fotg210()
202 /*-------------------------------------------------------------------------*/
210 * some hosts treat caplength and hciversion as parts of a 32-bit
212 * affects the memory map for big endian controllers.
219 u32 hcs_params; /* HCSPARAMS - offset 0x4 */
222 u32 hcc_params; /* HCCPARAMS - offset 0x8 */
225 u8 portroute[8]; /* nibbles for routing - offset 0xC */
308 /*-------------------------------------------------------------------------*/
315 * See Fig 3-6 "Queue Element Transfer Descriptor Block Diagram".
346 /* the rest is HCD-private */
353 /* mask NakCnt+T in qh->hw_alt_next */
358 /*-------------------------------------------------------------------------*/
360 /* type tag from {qh,itd,fstn}->hw_next */
367 * can be used on one system with SoC EHCI controller using big-endian
368 * descriptors as well as a normal little-endian PCI EHCI controller.
400 /*-------------------------------------------------------------------------*/
405 * See Fig 3-7 "Queue Head Structure Layout".
427 __hc32 hw_current; /* qtd list - see EHCI 3.6.4 */
439 /* the rest is HCD-private */
471 unsigned clearing_tt:1; /* Clear-TT-Buf in progress */
474 /*-------------------------------------------------------------------------*/
479 u64 bufp; /* itd->hw_bufp{,_hi}[pg] |= */
480 __hc32 transaction; /* itd->hw_transaction[i] |= */
488 * beginning at stream->next_uframe
497 * fotg210_iso_stream - groups all (s)itds for this endpoint.
516 * trusting urb->interval == f(epdesc->bInterval) and
535 /*-------------------------------------------------------------------------*/
539 * Fig 3-4 "Isochronous Transaction Descriptor (iTD)"
550 #define FOTG210_ISOC_XACTERR (1<<28) /* XactErr - transaction error */
559 /* the rest is HCD-private */
570 unsigned index[8]; /* in urb->iso_frame_desc */
573 /*-------------------------------------------------------------------------*/
588 /* the rest is HCD-private */
593 /*-------------------------------------------------------------------------*/
603 /*-------------------------------------------------------------------------*/
607 * root hub. This is a non-standard feature. Each controller will need
615 return (readl(&fotg210->regs->otgcsr) in fotg210_get_speed()
634 /*-------------------------------------------------------------------------*/
640 * little-endian format, a minority (celleb companion chip) implement
641 * them in big endian format.
682 /*-------------------------------------------------------------------------*/
686 return fotg210_readl(fotg210, &fotg210->regs->frame_index); in fotg210_read_frame_index()
689 #define fotg210_itdlen(urb, desc, t) ({ \ argument
690 usb_pipein((urb)->pipe) ? \
691 (desc)->length - FOTG210_ITD_LENGTH(t) : \
694 /*-------------------------------------------------------------------------*/