![]() |
usbpsu
Xilinx SDK Drivers API Documentation
|
Macros | |
#define | XUsbPsu_ReadReg(InstancePtr, Offset) Xil_In32((InstancePtr)->ConfigPtr->BaseAddress + (u32)(Offset)) |
Read a register of the USBPS8 device. More... | |
#define | XUsbPsu_WriteReg(InstancePtr, Offset, Data) Xil_Out32((InstancePtr)->ConfigPtr->BaseAddress + (u32)(Offset), (u32)(Data)) |
Write a register of the USBPS8 device. More... | |
#define | XUsbPsu_ReadVendorReg(Offset) Xil_In32(VENDOR_BASE_ADDRESS + (u32)(Offset)) |
Read a vendor register of the USBPS8 device. More... | |
#define | XUsbPsu_WriteVendorReg(Offset, Data) Xil_Out32(VENDOR_BASE_ADDRESS + (u32)(Offset), (u32)(Data)) |
Write a Vendor register of the USBPS8 device. More... | |
#define | XUsbPsu_ReadLpdReg(Offset) Xil_In32(LPD_BASE_ADDRESS + (u32)(Offset)) |
Read a LPD register of the USBPS8 device. More... | |
#define | XUsbPsu_WriteLpdReg(Offset, Data) Xil_Out32(LPD_BASE_ADDRESS + (u32)(Offset), (u32)(Data)) |
Write a LPD register of the USBPS8 device. More... | |
Register offsets | |
The following constants provide access to each of the registers of the USBPSU device. | |
#define | XUSBPSU_PORTSC_30 0x430U |
#define | XUSBPSU_PORTMSC_30 0x434U |
#define | XUSBPSU_GLOBALS_REGS_START 0xC100U |
#define | XUSBPSU_GLOBALS_REGS_END 0xC6FFU |
#define | XUSBPSU_DEVICE_REGS_START 0xC700U |
#define | XUSBPSU_DEVICE_REGS_END 0xCBFFU |
#define | XUSBPSU_OTG_REGS_START 0xCC00U |
#define | XUSBPSU_OTG_REGS_END 0xCCFFU |
#define | XUSBPSU_GSBUSCFG0 0xC100U |
#define | XUSBPSU_GSBUSCFG1 0xC104U |
#define | XUSBPSU_GTXTHRCFG 0xC108U |
#define | XUSBPSU_GRXTHRCFG 0xC10CU |
#define | XUSBPSU_GCTL 0xC110U |
#define | XUSBPSU_GEVTEN 0xC114U |
#define | XUSBPSU_GSTS 0xC118U |
#define | XUSBPSU_GSNPSID 0xC120U |
#define | XUSBPSU_GGPIO 0xC124U |
#define | XUSBPSU_GUID 0xC128U |
#define | XUSBPSU_GUCTL 0xC12CU |
#define | XUSBPSU_GBUSERRADDR0 0xC130U |
#define | XUSBPSU_GBUSERRADDR1 0xC134U |
#define | XUSBPSU_GPRTBIMAP0 0xC138U |
#define | XUSBPSU_GPRTBIMAP1 0xC13CU |
#define | XUSBPSU_GHWPARAMS0_OFFSET 0xC140U |
#define | XUSBPSU_GHWPARAMS1_OFFSET 0xC144U |
#define | XUSBPSU_GHWPARAMS2_OFFSET 0xC148U |
#define | XUSBPSU_GHWPARAMS3_OFFSET 0xC14CU |
#define | XUSBPSU_GHWPARAMS4_OFFSET 0xC150U |
#define | XUSBPSU_GHWPARAMS5_OFFSET 0xC154U |
#define | XUSBPSU_GHWPARAMS6_OFFSET 0xC158U |
#define | XUSBPSU_GHWPARAMS7_OFFSET 0xC15CU |
#define | XUSBPSU_GDBGFIFOSPACE 0xC160U |
#define | XUSBPSU_GDBGLTSSM 0xC164U |
#define | XUSBPSU_GPRTBIMAP_HS0 0xC180U |
#define | XUSBPSU_GPRTBIMAP_HS1 0xC184U |
#define | XUSBPSU_GPRTBIMAP_FS0 0xC188U |
#define | XUSBPSU_GPRTBIMAP_FS1 0xC18CU |
#define | XUSBPSU_GUSB2PHYCFG(n) ((u32)0xc200 + ((u32)(n) * (u32)0x04)) |
#define | XUSBPSU_GUSB2I2CCTL(n) ((u32)0xc240 + ((u32)(n) * (u32)0x04)) |
#define | XUSBPSU_GUSB2PHYACC(n) ((u32)0xc280 + ((u32)(n) * (u32)0x04)) |
#define | XUSBPSU_GUSB3PIPECTL(n) ((u32)0xc2c0 + ((u32)(n) * (u32)0x04)) |
#define | XUSBPSU_GTXFIFOSIZ(n) ((u32)0xc300 + ((u32)(n) * (u32)0x04)) |
#define | XUSBPSU_GRXFIFOSIZ(n) ((u32)0xc380 + ((u32)(n) * (u32)0x04)) |
#define | XUSBPSU_GEVNTADRLO(n) ((u32)0xc400 + ((u32)(n) * (u32)0x10)) |
#define | XUSBPSU_GEVNTADRHI(n) ((u32)0xc404 + ((u32)(n) * (u32)0x10)) |
#define | XUSBPSU_GEVNTSIZ(n) ((u32)0xc408 + ((u32)(n) * (u32)0x10)) |
#define | XUSBPSU_GEVNTCOUNT(n) ((u32)0xc40c + ((u32)(n) * (u32)0x10)) |
#define | XUSBPSU_GHWPARAMS8 0x0000c600U |
#define | XUSBPSU_DCFG 0x0000c700U |
#define | XUSBPSU_DCTL 0x0000c704U |
#define | XUSBPSU_DEVTEN 0x0000c708U |
#define | XUSBPSU_DSTS 0x0000c70cU |
#define | XUSBPSU_DGCMDPAR 0x0000c710U |
#define | XUSBPSU_DGCMD 0x0000c714U |
#define | XUSBPSU_DALEPENA 0x0000c720U |
#define | XUSBPSU_DEPCMDPAR2(n) ((u32)0xc800 + ((u32)n * (u32)0x10U)) |
#define | XUSBPSU_DEPCMDPAR1(n) ((u32)0xc804 + ((u32)n * (u32)0x10U)) |
#define | XUSBPSU_DEPCMDPAR0(n) ((u32)0xc808 + ((u32)n * (u32)0x10U)) |
#define | XUSBPSU_DEPCMD(n) ((u32)0xc80c + ((u32)n * (u32)0x10U)) |
#define | XUSBPSU_OCFG 0x0000cc00U |
#define | XUSBPSU_OCTL 0x0000cc04U |
#define | XUSBPSU_OEVT 0xcc08U |
#define | XUSBPSU_OEVTEN 0xcc0CU |
#define | XUSBPSU_OSTS 0xcc10U |
#define | XUSBPSU_GCTL_PWRDNSCALE(n) ((n) << 19U) |
#define | XUSBPSU_GCTL_U2RSTECN (1U << 16U) |
#define | XUSBPSU_GCTL_RAMCLKSEL(x) (((x) & XUSBPSU_GCTL_CLK_MASK) << 6U) |
#define | XUSBPSU_GCTL_CLK_BUS (0U) |
#define | XUSBPSU_GCTL_CLK_PIPE (1U) |
#define | XUSBPSU_GCTL_CLK_PIPEHALF (2U) |
#define | XUSBPSU_GCTL_CLK_MASK (3U) |
#define | XUSBPSU_GCTL_PRTCAP(n) (((n) & (3U << 12U)) >> 12U) |
#define | XUSBPSU_GCTL_PRTCAPDIR(n) ((n) << 12U) |
#define | XUSBPSU_GCTL_PRTCAP_HOST 1U |
#define | XUSBPSU_GCTL_PRTCAP_DEVICE 2U |
#define | XUSBPSU_GCTL_PRTCAP_OTG 3U |
#define | XUSBPSU_GCTL_CORESOFTRESET (0x00000001U << 11U) |
#define | XUSBPSU_GCTL_SOFITPSYNC (0x00000001U << 10U) |
#define | XUSBPSU_GCTL_SCALEDOWN(n) ((u32)(n) << 4U) |
#define | XUSBPSU_GCTL_SCALEDOWN_MASK XUSBPSU_GCTL_SCALEDOWN(3U) |
#define | XUSBPSU_GCTL_DISSCRAMBLE (0x00000001U << 3U) |
#define | XUSBPSU_GCTL_U2EXIT_LFPS (0x00000001U << 2U) |
#define | XUSBPSU_GCTL_GBLHIBERNATIONEN (0x00000001U << 1U) |
#define | XUSBPSU_GCTL_DSBLCLKGTNG (0x00000001U << 0U) |
#define | XUSBPSU_GSTS_DEVICE_IP_MASK 0x00000040U |
#define | XUSBPSU_GSTS_CUR_MODE (0x00000001U << 0U) |
#define | XUSBPSU_GUSB2PHYCFG_PHYSOFTRST (0x00000001U << 31U) |
#define | XUSBPSU_GUSB2PHYCFG_SUSPHY (0x00000001U << 6U) |
#define | XUSBPSU_GUSB3PIPECTL_PHYSOFTRST (0x00000001U << 31U) |
#define | XUSBPSU_GUSB3PIPECTL_SUSPHY (0x00000001U << 17U) |
#define | XUSBPSU_GTXFIFOSIZ_TXFDEF(n) ((u32)(n) & (u32)0xffffU) |
#define | XUSBPSU_GTXFIFOSIZ_TXFSTADDR(n) ((u32)(n) & 0xffff0000U) |
#define | XUSBPSU_GEVNTSIZ_INTMASK ((u32)0x00000001U << 31U) |
#define | XUSBPSU_GEVNTSIZ_SIZE(n) ((u32)(n) & (u32)0xffffU) |
#define | XUSBPSU_GHWPARAMS1_EN_PWROPT(n) (((u32)(n) & ((u32)3 << 24U)) >> 24U) |
#define | XUSBPSU_GHWPARAMS1_EN_PWROPT_NO 0U |
#define | XUSBPSU_GHWPARAMS1_EN_PWROPT_CLK 1U |
#define | XUSBPSU_GHWPARAMS1_EN_PWROPT_HIB 2U |
#define | XUSBPSU_GHWPARAMS1_PWROPT(n) ((u32)(n) << 24U) |
#define | XUSBPSU_GHWPARAMS1_PWROPT_MASK XUSBPSU_GHWPARAMS1_PWROPT(3U) |
#define | XUSBPSU_GHWPARAMS4_HIBER_SCRATCHBUFS(n) (((u32)(n) & ((u32)0x0F << 13U)) >> 13U) |
#define | XUSBPSU_MAX_HIBER_SCRATCHBUFS 15U |
#define | XUSBPSU_DCFG_DEVADDR(addr) ((u32)(addr) << 3U) |
#define | XUSBPSU_DCFG_DEVADDR_MASK XUSBPSU_DCFG_DEVADDR(0x7FU) |
#define | XUSBPSU_DCFG_SPEED_MASK 7U |
#define | XUSBPSU_DCFG_SUPERSPEED 4U |
#define | XUSBPSU_DCFG_HIGHSPEED 0U |
#define | XUSBPSU_DCFG_FULLSPEED2 1U |
#define | XUSBPSU_DCFG_LOWSPEED 2U |
#define | XUSBPSU_DCFG_FULLSPEED1 3U |
#define | XUSBPSU_DCFG_LPM_CAP (0x00000001U << 22U) |
#define | XUSBPSU_DCTL_RUN_STOP (0x00000001U << 31U) |
#define | XUSBPSU_DCTL_CSFTRST ((u32)0x00000001U << 30U) |
#define | XUSBPSU_DCTL_LSFTRST (0x00000001U << 29U) |
#define | XUSBPSU_DCTL_HIRD_THRES_MASK (0x0000001fU << 24U) |
#define | XUSBPSU_DCTL_HIRD_THRES(n) ((u32)(n) << 24U) |
#define | XUSBPSU_DCTL_APPL1RES (0x00000001U << 23U) |
#define | XUSBPSU_DCTL_TRGTULST_MASK (0x0000000FU << 17U) |
#define | XUSBPSU_DCTL_TRGTULST(n) ((u32)(n) << 17U) |
#define | XUSBPSU_DCTL_TRGTULST_U2 (XUSBPSU_DCTL_TRGTULST(2U)) |
#define | XUSBPSU_DCTL_TRGTULST_U3 (XUSBPSU_DCTL_TRGTULST(3U)) |
#define | XUSBPSU_DCTL_TRGTULST_SS_DIS (XUSBPSU_DCTL_TRGTULST(4U)) |
#define | XUSBPSU_DCTL_TRGTULST_RX_DET (XUSBPSU_DCTL_TRGTULST(5U)) |
#define | XUSBPSU_DCTL_TRGTULST_SS_INACT (XUSBPSU_DCTL_TRGTULST(6U)) |
#define | XUSBPSU_DCTL_KEEP_CONNECT (0x00000001U << 19U) |
#define | XUSBPSU_DCTL_L1_HIBER_EN (0x00000001U << 18U) |
#define | XUSBPSU_DCTL_CRS (0x00000001U << 17U) |
#define | XUSBPSU_DCTL_CSS (0x00000001U << 16U) |
#define | XUSBPSU_DCTL_INITU2ENA (0x00000001U << 12U) |
#define | XUSBPSU_DCTL_ACCEPTU2ENA (0x00000001U << 11U) |
#define | XUSBPSU_DCTL_INITU1ENA (0x00000001U << 10U) |
#define | XUSBPSU_DCTL_ACCEPTU1ENA (0x00000001U << 9U) |
#define | XUSBPSU_DCTL_TSTCTRL_MASK (0x0000000fU << 1U) |
#define | XUSBPSU_DCTL_ULSTCHNGREQ_MASK (0x0000000FU << 5U) |
#define | XUSBPSU_DCTL_ULSTCHNGREQ(n) (((u32)(n) << 5U) & XUSBPSU_DCTL_ULSTCHNGREQ_MASK) |
#define | XUSBPSU_DCTL_ULSTCHNG_NO_ACTION (XUSBPSU_DCTL_ULSTCHNGREQ(0U)) |
#define | XUSBPSU_DCTL_ULSTCHNG_SS_DISABLED (XUSBPSU_DCTL_ULSTCHNGREQ(4U)) |
#define | XUSBPSU_DCTL_ULSTCHNG_RX_DETECT (XUSBPSU_DCTL_ULSTCHNGREQ(5U)) |
#define | XUSBPSU_DCTL_ULSTCHNG_SS_INACTIVE (XUSBPSU_DCTL_ULSTCHNGREQ(6U)) |
#define | XUSBPSU_DCTL_ULSTCHNG_RECOVERY (XUSBPSU_DCTL_ULSTCHNGREQ(8U)) |
#define | XUSBPSU_DCTL_ULSTCHNG_COMPLIANCE (XUSBPSU_DCTL_ULSTCHNGREQ(10U)) |
#define | XUSBPSU_DCTL_ULSTCHNG_LOOPBACK (XUSBPSU_DCTL_ULSTCHNGREQ(11U)) |
#define | XUSBPSU_DEVTEN_VNDRDEVTSTRCVEDEN ((u32)0x00000001U << 12U) |
#define | XUSBPSU_DEVTEN_EVNTOVERFLOWEN ((u32)0x00000001U << 11U) |
#define | XUSBPSU_DEVTEN_CMDCMPLTEN ((u32)0x00000001U << 10U) |
#define | XUSBPSU_DEVTEN_ERRTICERREN ((u32)0x00000001U << 9U) |
#define | XUSBPSU_DEVTEN_SOFEN ((u32)0x00000001U << 7U) |
#define | XUSBPSU_DEVTEN_EOPFEN ((u32)0x00000001U << 6U) |
#define | XUSBPSU_DEVTEN_HIBERNATIONREQEVTEN ((u32)0x00000001U << 5U) |
#define | XUSBPSU_DEVTEN_WKUPEVTEN ((u32)0x00000001U << 4U) |
#define | XUSBPSU_DEVTEN_ULSTCNGEN ((u32)0x00000001U << 3U) |
#define | XUSBPSU_DEVTEN_CONNECTDONEEN ((u32)0x00000001U << 2U) |
#define | XUSBPSU_DEVTEN_USBRSTEN ((u32)0x00000001U << 1U) |
#define | XUSBPSU_DEVTEN_DISCONNEVTEN ((u32)0x00000001U << 0U) |
#define | XUSBPSU_DSTS_DCNRD (0x00000001U << 29U) |
#define | XUSBPSU_DSTS_PWRUPREQ (0x00000001U << 24U) |
#define | XUSBPSU_DSTS_RSS (0x00000001U << 25U) |
#define | XUSBPSU_DSTS_SSS (0x00000001U << 24U) |
#define | XUSBPSU_DSTS_COREIDLE (0x00000001U << 23U) |
#define | XUSBPSU_DSTS_DEVCTRLHLT (0x00000001U << 22U) |
#define | XUSBPSU_DSTS_USBLNKST_MASK (0x0000000FU << 18U) |
#define | XUSBPSU_DSTS_USBLNKST(n) (((u32)(n) & XUSBPSU_DSTS_USBLNKST_MASK) >> 18U) |
#define | XUSBPSU_DSTS_RXFIFOEMPTY (0x00000001U << 17U) |
#define | XUSBPSU_DSTS_SOFFN_MASK (0x00003FFFU << 3U) |
#define | XUSBPSU_DSTS_SOFFN(n) (((u32)(n) & XUSBPSU_DSTS_SOFFN_MASK) >> 3U) |
#define | XUSBPSU_DSTS_CONNECTSPD (0x00000007U << 0U) |
#define | XUSBPSU_DSTS_SUPERSPEED (4U << 0U) |
#define | XUSBPSU_DSTS_HIGHSPEED (0U << 0U) |
#define | XUSBPSU_DSTS_FULLSPEED2 (1U << 0U) |
#define | XUSBPSU_DSTS_LOWSPEED (2U << 0U) |
#define | XUSBPSU_DSTS_FULLSPEED1 (3U << 0U) |
#define | XUSBPSU_GSBUSCFG0_BITMASK 0xFFFF0000U |
#define | XUSBPSU_PORTMSC_30_FLA_MASK (1U << 16U) |
#define | XUSBPSU_PORTMSC_30_U2_TIMEOUT_MASK (0xFFU << 8U) |
#define | XUSBPSU_PORTMSC_30_U2_TIMEOUT_SHIFT (8U) |
#define | XUSBPSU_PORTMSC_30_U1_TIMEOUT_MASK (0xFFU << 0U) |
#define | XUSBPSU_PORTMSC_30_U1_TIMEOUT_SHIFT (0U) |
#define | RST_LPD_TOP 0x23CU |
#define | USB0_CORE_RST (1U << 6U) |
#define | USB1_CORE_RST (1U << 7U) |
#define | XIL_CUR_PWR_STATE 0x00U |
#define | XIL_PME_ENABLE 0x34U |
#define | XIL_REQ_PWR_STATE 0x3CU |
#define | XIL_PWR_CONFIG_USB3 0x48U |
#define | XIL_REQ_PWR_STATE_D0 0U |
#define | XIL_REQ_PWR_STATE_D3 3U |
#define | XIL_PME_ENABLE_SIG_GEN 1U |
#define | XIL_CUR_PWR_STATE_D0 0U |
#define | XIL_CUR_PWR_STATE_D3 3U |
#define | XIL_CUR_PWR_STATE_BITMASK 0x03U |
#define | VENDOR_BASE_ADDRESS 0xFF9D0000U |
#define | LPD_BASE_ADDRESS 0xFF5E0000U |