Lines Matching +full:generic +full:- +full:xhci
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * core.h - DesignWare USB3 DRD Core Header
5 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com
20 #include <linux/dma-mapping.h>
37 * DWC3 Multiport controllers support up to 15 High-Speed PHYs
197 /* Global SoC Bus Configuration Register: AHB-prot/AXI-cache/OCP-ReqInfo */
537 /* Device Generic Command Register */
557 /* Device Generic Command Parameter Register */
684 * struct dwc3_event_buffer - Software event buffer representation
718 * struct dwc3_ep - device side endpoint representation
732 * @number: endpoint number (1 - 15)
737 * @name: a human readable name e.g. ep1out-bulk
782 * anything larger than 256 - I can't see why people would want to do
783 * this though - then this type needs to be changed.
879 * struct dwc3_trb - transfer request block (hw format)
880 * @bpl: DW0-3
881 * @bph: DW4-7
882 * @size: DW8-B
883 * @ctrl: DWC-F
893 * struct dwc3_hwparams - copy of HWPARAMS registers
928 #define DWC3_NUM_EPS(p) (((p)->hwparams3 & \
930 #define DWC3_NUM_IN_EPS(p) (((p)->hwparams3 & \
940 #define DWC3_MST_CAPABLE(p) (!!((p)->hwparams9 & \
944 * struct dwc3_request - representation of a transfer request
957 * @mapped: true when request has been dma-mapped
975 #define DWC3_REQUEST_STATUS_UNKNOWN -1
988 * struct dwc3_scratchpad_array - hibernation scratchpad array
996 * struct dwc3 - representation of our controller
1008 * @sysdev: pointer to the DMA-capable device
1009 * @xhci: pointer to our xHCI child
1010 * @xhci_resources: struct resources for our @xhci child
1040 * @current_dr_role: current role of operation when in dual-role mode
1041 * @desired_dr_role: desired role of operation when in dual-role mode
1045 * - USBPHY_INTERFACE_MODE_UTMI
1046 * - USBPHY_INTERFACE_MODE_UTMIW
1096 * 0 - utmi_sleep_n
1097 * 1 - utmi_l1_suspend_n
1105 * not needed for DWC_usb31 version 1.70a-ea06 and below
1128 * provide a free-running PHY clock.
1143 * @tx_de_emphasis_quirk: set if we enable Tx de-emphasis quirk
1144 * @tx_de_emphasis: Tx de-emphasis value
1145 * 0 - -6dB de-emphasis
1146 * 1 - -3.5dB de-emphasis
1147 * 2 - No de-emphasis
1148 * 3 - Reserved
1187 struct platform_device *xhci; member
1404 /* -------------------------------------------------------------------------- */
1420 * struct dwc3_event_depevt - Device Endpoint Events
1424 * 0x00 - Reserved
1425 * 0x01 - XferComplete
1426 * 0x02 - XferInProgress
1427 * 0x03 - XferNotReady
1428 * 0x04 - RxTxFifoEvt (IN->Underrun, OUT->Overrun)
1429 * 0x05 - Reserved
1430 * 0x06 - StreamEvt
1431 * 0x07 - EPCmdCmplt
1463 /* Control-only Status */
1479 * struct dwc3_event_devt - Device Events
1480 * @one_bit: indicates this is a non-endpoint event (not used)
1483 * 0 - DisconnEvt
1484 * 1 - USBRst
1485 * 2 - ConnectDone
1486 * 3 - ULStChng
1487 * 4 - WkUpEvt
1488 * 5 - Reserved
1489 * 6 - Suspend (EOPF on revisions 2.10a and prior)
1490 * 7 - SOF
1491 * 8 - Reserved
1492 * 9 - ErrticErr
1493 * 10 - CmdCmplt
1494 * 11 - EvntOverflow
1495 * 12 - VndrDevTstRcved
1510 * struct dwc3_event_gevt - Other Core Events
1511 * @one_bit: indicates this is a non-endpoint event (not used)
1513 * @phy_port_number: self-explanatory
1524 * union dwc3_event - representation of Event Buffer contents
1525 * @raw: raw 32-bit event
1540 * struct dwc3_gadget_ep_cmd_params - representation of endpoint command
1566 (dwc->ip == _ip##_IP)
1569 (DWC3_IP_IS(_ip) && dwc->revision == _ip##_REVISION_##_ver)
1572 (DWC3_IP_IS(_ip) && dwc->revision < _ip##_REVISION_##_ver)
1576 dwc->revision >= _ip##_REVISION_##_from && \
1578 dwc->revision <= _ip##_REVISION_##_to))
1582 dwc->version_type >= _ip##_VERSIONTYPE_##_from && \
1584 dwc->version_type <= _ip##_VERSIONTYPE_##_to))
1587 * dwc3_mdwidth - get MDWIDTH value in bits
1596 mdwidth = DWC3_GHWPARAMS0_MDWIDTH(dwc->hwparams.hwparams0); in dwc3_mdwidth()
1598 mdwidth += DWC3_GHWPARAMS6_MDWIDTH(dwc->hwparams.hwparams6); in dwc3_mdwidth()