FreeBSD kernel usb device Code
dwc3.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DWC3_GSBUSCFG0   0xc100
 
#define DWC3_GSBUSCFG1   0xc104
 
#define DWC3_GTXTHRCFG   0xc108
 
#define DWC3_GRXTHRCFG   0xc10C
 
#define DWC3_GCTL   0xc110
 
#define DWC3_GCTL_PRTCAPDIR_MASK   (0x3 << 12)
 
#define DWC3_GCTL_PRTCAPDIR_HOST   (0x1 << 12)
 
#define DWC3_GCTL_PRTCAPDIR_DEVICE   (0x2 << 12)
 
#define DWC3_GCTL_CORESOFTRESET   (1 << 11)
 
#define DWC3_GCTL_DSBLCLKGTNG   (1 << 0)
 
#define DWC3_GPMSTS   0xc114
 
#define DWC3_GSTS   0xc118
 
#define DWC3_GUCTL1   0xc11c
 
#define DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS   (1 << 28)
 
#define DWC3_GSNPSID   0xc120
 
#define DWC3_GGPIO   0xc124
 
#define DWC3_GUID   0xc128
 
#define DWC3_GUCTL   0xc12C
 
#define DWC3_GBUSERRADDRLO   0xc130
 
#define DWC3_GBUSERRADDRHI   0xc134
 
#define DWC3_GPRTBIMAPLO   0xc138
 
#define DWC3_GHWPARAMS0   0xc140
 
#define DWC3_GHWPARAMS1   0xc144
 
#define DWC3_GHWPARAMS2   0xc148
 
#define DWC3_GHWPARAMS3   0xc14C
 
#define DWC3_GHWPARAMS4   0xc150
 
#define DWC3_GHWPARAMS5   0xc154
 
#define DWC3_GHWPARAMS6   0xc158
 
#define DWC3_GHWPARAMS7   0xc15C
 
#define DWC3_GDBGFIFOSPACE   0xc160
 
#define DWC3_GDBGLTSSM   0xc164
 
#define DWC3_GDBGLNMCC   0xc168
 
#define DWC3_GDBGBMU   0xc16C
 
#define DWC3_GDBGLSPMUX   0xc170
 
#define DWC3_GDBGLSP   0xc174
 
#define DWC3_GDBGEPINFO0   0xc178
 
#define DWC3_GDBGEPINFO1   0xc17C
 
#define DWC3_GPRTBIMAP_HSLO   0xc180
 
#define DWC3_GPRTBIMAP_FSLO   0xc188
 
#define DWC3_GUSB2PHYCFG0   0xc200
 
#define DWC3_GUSB2PHYCFG0_PHYSOFTRST   (1 << 31)
 
#define DWC3_GUSB2PHYCFG0_U2_FREECLK_EXISTS   (1 << 30)
 
#define DWC3_GUSB2PHYCFG0_USBTRDTIM(n)   ((n) << 10)
 
#define DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS   9
 
#define DWC3_GUSB2PHYCFG0_USBTRDTIM_16BITS   5
 
#define DWC3_GUSB2PHYCFG0_ENBLSLPM   (1 << 8)
 
#define DWC3_GUSB2PHYCFG0_PHYSEL(x)   ((x >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */
 
#define DWC3_GUSB2PHYCFG0_SUSPENDUSB20   (1 << 6)
 
#define DWC3_GUSB2PHYCFG0_ULPI_UTMI_SEL   (1 << 4)
 
#define DWC3_GUSB2PHYCFG0_PHYIF   (1 << 3)
 
#define DWC3_GUSB3PIPECTL0   0xc2c0
 
#define DWC3_GUSB3PIPECTL0_PHYSOFTRST   (1 << 31)
 
#define DWC3_GUSB3PIPECTL0_DISRXDETINP3   (1 << 28)
 
#define DWC3_GUSB3PIPECTL0_DELAYP1TRANS   (1 << 18)
 
#define DWC3_GTXFIFOSIZ(x)   (0xc300 + 0x4 * (x))
 
#define DWC3_GRXFIFOSIZ(x)   (0xc380 + 0x4 * (x))
 
#define DWC3_GEVNTADRLO0   0xc400
 
#define DWC3_GEVNTADRHI0   0xc404
 
#define DWC3_GEVNTSIZ0   0xc408
 
#define DWC3_GEVNTCOUNT0   0xc40C
 
#define DWC3_GHWPARAMS8   0xc600
 
#define DWC3_GTXFIFOPRIDEV   0xc610
 
#define DWC3_GTXFIFOPRIHST   0xc618
 
#define DWC3_GRXFIFOPRIHST   0xc61c
 
#define DWC3_GFIFOPRIDBC   0xc620
 
#define DWC3_GDMAHLRATIO   0xc624
 
#define DWC3_GFLADJ   0xc630
 
#define DWC3_DCFG   0xc700
 
#define DWC3_DCTL   0xc704
 
#define DWC3_DEVTEN   0xc708
 
#define DWC3_DSTS   0xc70C
 
#define DWC3_DGCMDPAR   0xc710
 
#define DWC3_DGCMD   0xc714
 
#define DWC3_DALEPENA   0xc720
 

Macro Definition Documentation

◆ DWC3_DALEPENA

#define DWC3_DALEPENA   0xc720

Definition at line 115 of file dwc3.h.

◆ DWC3_DCFG

#define DWC3_DCFG   0xc700

Definition at line 109 of file dwc3.h.

◆ DWC3_DCTL

#define DWC3_DCTL   0xc704

Definition at line 110 of file dwc3.h.

◆ DWC3_DEVTEN

#define DWC3_DEVTEN   0xc708

Definition at line 111 of file dwc3.h.

◆ DWC3_DGCMD

#define DWC3_DGCMD   0xc714

Definition at line 114 of file dwc3.h.

◆ DWC3_DGCMDPAR

#define DWC3_DGCMDPAR   0xc710

Definition at line 113 of file dwc3.h.

◆ DWC3_DSTS

#define DWC3_DSTS   0xc70C

Definition at line 112 of file dwc3.h.

◆ DWC3_GBUSERRADDRHI

#define DWC3_GBUSERRADDRHI   0xc134

Definition at line 58 of file dwc3.h.

◆ DWC3_GBUSERRADDRLO

#define DWC3_GBUSERRADDRLO   0xc130

Definition at line 57 of file dwc3.h.

◆ DWC3_GCTL

#define DWC3_GCTL   0xc110

Definition at line 40 of file dwc3.h.

◆ DWC3_GCTL_CORESOFTRESET

#define DWC3_GCTL_CORESOFTRESET   (1 << 11)

Definition at line 44 of file dwc3.h.

◆ DWC3_GCTL_DSBLCLKGTNG

#define DWC3_GCTL_DSBLCLKGTNG   (1 << 0)

Definition at line 45 of file dwc3.h.

◆ DWC3_GCTL_PRTCAPDIR_DEVICE

#define DWC3_GCTL_PRTCAPDIR_DEVICE   (0x2 << 12)

Definition at line 43 of file dwc3.h.

◆ DWC3_GCTL_PRTCAPDIR_HOST

#define DWC3_GCTL_PRTCAPDIR_HOST   (0x1 << 12)

Definition at line 42 of file dwc3.h.

◆ DWC3_GCTL_PRTCAPDIR_MASK

#define DWC3_GCTL_PRTCAPDIR_MASK   (0x3 << 12)

Definition at line 41 of file dwc3.h.

◆ DWC3_GDBGBMU

#define DWC3_GDBGBMU   0xc16C

Definition at line 71 of file dwc3.h.

◆ DWC3_GDBGEPINFO0

#define DWC3_GDBGEPINFO0   0xc178

Definition at line 74 of file dwc3.h.

◆ DWC3_GDBGEPINFO1

#define DWC3_GDBGEPINFO1   0xc17C

Definition at line 75 of file dwc3.h.

◆ DWC3_GDBGFIFOSPACE

#define DWC3_GDBGFIFOSPACE   0xc160

Definition at line 68 of file dwc3.h.

◆ DWC3_GDBGLNMCC

#define DWC3_GDBGLNMCC   0xc168

Definition at line 70 of file dwc3.h.

◆ DWC3_GDBGLSP

#define DWC3_GDBGLSP   0xc174

Definition at line 73 of file dwc3.h.

◆ DWC3_GDBGLSPMUX

#define DWC3_GDBGLSPMUX   0xc170

Definition at line 72 of file dwc3.h.

◆ DWC3_GDBGLTSSM

#define DWC3_GDBGLTSSM   0xc164

Definition at line 69 of file dwc3.h.

◆ DWC3_GDMAHLRATIO

#define DWC3_GDMAHLRATIO   0xc624

Definition at line 107 of file dwc3.h.

◆ DWC3_GEVNTADRHI0

#define DWC3_GEVNTADRHI0   0xc404

Definition at line 99 of file dwc3.h.

◆ DWC3_GEVNTADRLO0

#define DWC3_GEVNTADRLO0   0xc400

Definition at line 98 of file dwc3.h.

◆ DWC3_GEVNTCOUNT0

#define DWC3_GEVNTCOUNT0   0xc40C

Definition at line 101 of file dwc3.h.

◆ DWC3_GEVNTSIZ0

#define DWC3_GEVNTSIZ0   0xc408

Definition at line 100 of file dwc3.h.

◆ DWC3_GFIFOPRIDBC

#define DWC3_GFIFOPRIDBC   0xc620

Definition at line 106 of file dwc3.h.

◆ DWC3_GFLADJ

#define DWC3_GFLADJ   0xc630

Definition at line 108 of file dwc3.h.

◆ DWC3_GGPIO

#define DWC3_GGPIO   0xc124

Definition at line 54 of file dwc3.h.

◆ DWC3_GHWPARAMS0

#define DWC3_GHWPARAMS0   0xc140

Definition at line 60 of file dwc3.h.

◆ DWC3_GHWPARAMS1

#define DWC3_GHWPARAMS1   0xc144

Definition at line 61 of file dwc3.h.

◆ DWC3_GHWPARAMS2

#define DWC3_GHWPARAMS2   0xc148

Definition at line 62 of file dwc3.h.

◆ DWC3_GHWPARAMS3

#define DWC3_GHWPARAMS3   0xc14C

Definition at line 63 of file dwc3.h.

◆ DWC3_GHWPARAMS4

#define DWC3_GHWPARAMS4   0xc150

Definition at line 64 of file dwc3.h.

◆ DWC3_GHWPARAMS5

#define DWC3_GHWPARAMS5   0xc154

Definition at line 65 of file dwc3.h.

◆ DWC3_GHWPARAMS6

#define DWC3_GHWPARAMS6   0xc158

Definition at line 66 of file dwc3.h.

◆ DWC3_GHWPARAMS7

#define DWC3_GHWPARAMS7   0xc15C

Definition at line 67 of file dwc3.h.

◆ DWC3_GHWPARAMS8

#define DWC3_GHWPARAMS8   0xc600

Definition at line 102 of file dwc3.h.

◆ DWC3_GPMSTS

#define DWC3_GPMSTS   0xc114

Definition at line 47 of file dwc3.h.

◆ DWC3_GPRTBIMAP_FSLO

#define DWC3_GPRTBIMAP_FSLO   0xc188

Definition at line 77 of file dwc3.h.

◆ DWC3_GPRTBIMAP_HSLO

#define DWC3_GPRTBIMAP_HSLO   0xc180

Definition at line 76 of file dwc3.h.

◆ DWC3_GPRTBIMAPLO

#define DWC3_GPRTBIMAPLO   0xc138

Definition at line 59 of file dwc3.h.

◆ DWC3_GRXFIFOPRIHST

#define DWC3_GRXFIFOPRIHST   0xc61c

Definition at line 105 of file dwc3.h.

◆ DWC3_GRXFIFOSIZ

#define DWC3_GRXFIFOSIZ (   x)    (0xc380 + 0x4 * (x))

Definition at line 97 of file dwc3.h.

◆ DWC3_GRXTHRCFG

#define DWC3_GRXTHRCFG   0xc10C

Definition at line 37 of file dwc3.h.

◆ DWC3_GSBUSCFG0

#define DWC3_GSBUSCFG0   0xc100

Definition at line 34 of file dwc3.h.

◆ DWC3_GSBUSCFG1

#define DWC3_GSBUSCFG1   0xc104

Definition at line 35 of file dwc3.h.

◆ DWC3_GSNPSID

#define DWC3_GSNPSID   0xc120

Definition at line 53 of file dwc3.h.

◆ DWC3_GSTS

#define DWC3_GSTS   0xc118

Definition at line 48 of file dwc3.h.

◆ DWC3_GTXFIFOPRIDEV

#define DWC3_GTXFIFOPRIDEV   0xc610

Definition at line 103 of file dwc3.h.

◆ DWC3_GTXFIFOPRIHST

#define DWC3_GTXFIFOPRIHST   0xc618

Definition at line 104 of file dwc3.h.

◆ DWC3_GTXFIFOSIZ

#define DWC3_GTXFIFOSIZ (   x)    (0xc300 + 0x4 * (x))

Definition at line 96 of file dwc3.h.

◆ DWC3_GTXTHRCFG

#define DWC3_GTXTHRCFG   0xc108

Definition at line 36 of file dwc3.h.

◆ DWC3_GUCTL

#define DWC3_GUCTL   0xc12C

Definition at line 56 of file dwc3.h.

◆ DWC3_GUCTL1

#define DWC3_GUCTL1   0xc11c

Definition at line 50 of file dwc3.h.

◆ DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS

#define DWC3_GUCTL1_TX_IPGAP_LINECHECK_DIS   (1 << 28)

Definition at line 51 of file dwc3.h.

◆ DWC3_GUID

#define DWC3_GUID   0xc128

Definition at line 55 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0

#define DWC3_GUSB2PHYCFG0   0xc200

Definition at line 79 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_ENBLSLPM

#define DWC3_GUSB2PHYCFG0_ENBLSLPM   (1 << 8)

Definition at line 85 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_PHYIF

#define DWC3_GUSB2PHYCFG0_PHYIF   (1 << 3)

Definition at line 89 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_PHYSEL

#define DWC3_GUSB2PHYCFG0_PHYSEL (   x)    ((x >> 7) & 0x1) /* 0 = USB2.0, 1 = USB1.1 */

Definition at line 86 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_PHYSOFTRST

#define DWC3_GUSB2PHYCFG0_PHYSOFTRST   (1 << 31)

Definition at line 80 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_SUSPENDUSB20

#define DWC3_GUSB2PHYCFG0_SUSPENDUSB20   (1 << 6)

Definition at line 87 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_U2_FREECLK_EXISTS

#define DWC3_GUSB2PHYCFG0_U2_FREECLK_EXISTS   (1 << 30)

Definition at line 81 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_ULPI_UTMI_SEL

#define DWC3_GUSB2PHYCFG0_ULPI_UTMI_SEL   (1 << 4)

Definition at line 88 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_USBTRDTIM

#define DWC3_GUSB2PHYCFG0_USBTRDTIM (   n)    ((n) << 10)

Definition at line 82 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_USBTRDTIM_16BITS

#define DWC3_GUSB2PHYCFG0_USBTRDTIM_16BITS   5

Definition at line 84 of file dwc3.h.

◆ DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS

#define DWC3_GUSB2PHYCFG0_USBTRDTIM_8BITS   9

Definition at line 83 of file dwc3.h.

◆ DWC3_GUSB3PIPECTL0

#define DWC3_GUSB3PIPECTL0   0xc2c0

Definition at line 91 of file dwc3.h.

◆ DWC3_GUSB3PIPECTL0_DELAYP1TRANS

#define DWC3_GUSB3PIPECTL0_DELAYP1TRANS   (1 << 18)

Definition at line 94 of file dwc3.h.

◆ DWC3_GUSB3PIPECTL0_DISRXDETINP3

#define DWC3_GUSB3PIPECTL0_DISRXDETINP3   (1 << 28)

Definition at line 93 of file dwc3.h.

◆ DWC3_GUSB3PIPECTL0_PHYSOFTRST

#define DWC3_GUSB3PIPECTL0_PHYSOFTRST   (1 << 31)

Definition at line 92 of file dwc3.h.