Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/cavium/dev Remove USB controller register defi...
details: https://anonhg.NetBSD.org/src/rev/871022b0365e
branches: trunk
changeset: 935042:871022b0365e
user: simonb <simonb%NetBSD.org@localhost>
date: Tue Jun 23 03:08:11 2020 +0000
description:
Remove USB controller register definitions, these match dwc2 core and
weren't used anyway.
diffstat:
sys/arch/mips/cavium/dev/octeon_usbcreg.h | 664 +-----------------------------
1 files changed, 1 insertions(+), 663 deletions(-)
diffs (truncated from 681 to 300 lines):
diff -r a2425b0621f4 -r 871022b0365e sys/arch/mips/cavium/dev/octeon_usbcreg.h
--- a/sys/arch/mips/cavium/dev/octeon_usbcreg.h Tue Jun 23 03:07:47 2020 +0000
+++ b/sys/arch/mips/cavium/dev/octeon_usbcreg.h Tue Jun 23 03:08:11 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: octeon_usbcreg.h,v 1.3 2020/06/22 12:26:11 simonb Exp $ */
+/* $NetBSD: octeon_usbcreg.h,v 1.4 2020/06/23 03:08:11 simonb Exp $ */
/*
* Copyright (c) 2007 Internet Initiative Japan, Inc.
@@ -33,671 +33,9 @@
#ifndef _OCTEON_USBCREG_H_
#define _OCTEON_USBCREG_H_
-/* ---- register addresses */
-
-#define USBC_GOTGCTL 0x00016F0010000000ULL
-#define USBC_GOTGINT 0x00016F0010000004ULL
-#define USBC_GAHBCFG 0x00016F0010000008ULL
-#define USBC_GUSBCFG 0x00016F001000000CULL
-#define USBC_GRSTCTL 0x00016F0010000010ULL
-#define USBC_GINTSTS 0x00016F0010000014ULL
-#define USBC_GINTMSK 0x00016F0010000018ULL
-#define USBC_GRXSTSRH 0x00016F001000001CULL
-#define USBC_GRXSTSPH 0x00016F0010000020ULL
-#define USBC_GRXFSIZ 0x00016F0010000024ULL
-#define USBC_GNPTXFSIZ 0x00016F0010000028ULL
-#define USBC_GNPTXSTS 0x00016F001000002CULL
-#define USBC_GSNPSID 0x00016F0010000040ULL
-#define USBC_GHWCFG1 0x00016F0010000044ULL
-#define USBC_GHWCFG2 0x00016F0010000048ULL
-#define USBC_GHWCFG3 0x00016F001000004CULL
-#define USBC_GHWCFG4 0x00016F0010000050ULL
-#define USBC_HPTXFSIZ 0x00016F0010000100ULL
-#define USBC_DPTXFSIZ1 0x00016F0010000104ULL
-#define USBC_DPTXFSIZ2 0x00016F0010000108ULL
-#define USBC_DPTXFSIZ3 0x00016F001000010CULL
-#define USBC_DPTXFSIZ4 0x00016F0010000110ULL
-#define USBC_HCFG 0x00016F0010000400ULL
-#define USBC_HFIR 0x00016F0010000404ULL
-#define USBC_HFNUM 0x00016F0010000408ULL
-#define USBC_HPTXSTS 0x00016F0010000410ULL
-#define USBC_HAINT 0x00016F0010000414ULL
-#define USBC_HAINTMSK 0x00016F0010000418ULL
-#define USBC_HPRT 0x00016F0010000440ULL
-#define USBC_HCCHAR0 0x00016F0010000500ULL
-#define USBC_HCCHAR1 0x00016F0010000520ULL
-#define USBC_HCCHAR2 0x00016F0010000540ULL
-#define USBC_HCCHAR3 0x00016F0010000560ULL
-#define USBC_HCCHAR4 0x00016F0010000580ULL
-#define USBC_HCCHAR5 0x00016F00100005A0ULL
-#define USBC_HCCHAR6 0x00016F00100005C0ULL
-#define USBC_HCCHAR7 0x00016F00100005E0ULL
-#define USBC_HCSPLT0 0x00016F0010000504ULL
-#define USBC_HCSPLT1 0x00016F0010000524ULL
-#define USBC_HCSPLT2 0x00016F0010000544ULL
-#define USBC_HCSPLT3 0x00016F0010000564ULL
-#define USBC_HCSPLT4 0x00016F0010000584ULL
-#define USBC_HCSPLT5 0x00016F00100005A4ULL
-#define USBC_HCSPLT6 0x00016F00100005C4ULL
-#define USBC_HCSPLT7 0x00016F00100005E4ULL
-#define USBC_HCINT0 0x00016F0010000508ULL
-#define USBC_HCINT1 0x00016F0010000528ULL
-#define USBC_HCINT2 0x00016F0010000548ULL
-#define USBC_HCINT3 0x00016F0010000568ULL
-#define USBC_HCINT4 0x00016F0010000588ULL
-#define USBC_HCINT5 0x00016F00100005A8ULL
-#define USBC_HCINT6 0x00016F00100005C8ULL
-#define USBC_HCINT7 0x00016F00100005E8ULL
-#define USBC_HCINTMSK0 0x00016F001000050CULL
-#define USBC_HCINTMSK1 0x00016F001000052CULL
-#define USBC_HCINTMSK2 0x00016F001000054CULL
-#define USBC_HCINTMSK3 0x00016F001000056CULL
-#define USBC_HCINTMSK4 0x00016F001000058CULL
-#define USBC_HCINTMSK5 0x00016F00100005ACULL
-#define USBC_HCINTMSK6 0x00016F00100005CCULL
-#define USBC_HCINTMSK7 0x00016F00100005ECULL
-#define USBC_HCTSIZ0 0x00016F0010000510ULL
-#define USBC_HCTSIZ1 0x00016F0010000530ULL
-#define USBC_HCTSIZ2 0x00016F0010000550ULL
-#define USBC_HCTSIZ3 0x00016F0010000570ULL
-#define USBC_HCTSIZ4 0x00016F0010000590ULL
-#define USBC_HCTSIZ5 0x00016F00100005B0ULL
-#define USBC_HCTSIZ6 0x00016F00100005D0ULL
-#define USBC_HCTSIZ7 0x00016F00100005F0ULL
-#define USBC_DCFG 0x00016F0010000800ULL
-#define USBC_DCTL 0x00016F0010000804ULL
-#define USBC_DSTS 0x00016F0010000808ULL
-#define USBC_DIEPMSK 0x00016F0010000810ULL
-#define USBC_DOEPMSK 0x00016F0010000814ULL
-#define USBC_DAINT 0x00016F0010000818ULL
-#define USBC_DAINTMSK 0x00016F001000081CULL
-#define USBC_DTKNQR1 0x00016F0010000820ULL
-#define USBC_DTKNQR2 0x00016F0010000824ULL
-#define USBC_DTKNQR3 0x00016F0010000830ULL
-#define USBC_DTKNQR4 0x00016F0010000834ULL
-#define USBC_DIEPCTL0 0x00016F0010000900ULL
-#define USBC_DIEPCTL1 0x00016F0010000920ULL
-#define USBC_DIEPCTL2 0x00016F0010000940ULL
-#define USBC_DIEPCTL3 0x00016F0010000960ULL
-#define USBC_DIEPCTL4 0x00016F0010000980ULL
-#define USBC_DIEPINT0 0x00016F0010000908ULL
-#define USBC_DIEPINT1 0x00016F0010000928ULL
-#define USBC_DIEPINT2 0x00016F0010000948ULL
-#define USBC_DIEPINT3 0x00016F0010000968ULL
-#define USBC_DIEPINT4 0x00016F0010000988ULL
-#define USBC_DIEPTSIZ0 0x00016F0010000910ULL
-#define USBC_DIEPTSIZ1 0x00016F0010000930ULL
-#define USBC_DIEPTSIZ2 0x00016F0010000950ULL
-#define USBC_DIEPTSIZ3 0x00016F0010000970ULL
-#define USBC_DIEPTSIZ4 0x00016F0010000990ULL
-#define USBC_OEPCTL0 0x00016F0010000B00ULL
-#define USBC_OEPCTL1 0x00016F0010000B20ULL
-#define USBC_OEPCTL2 0x00016F0010000B40ULL
-#define USBC_OEPCTL3 0x00016F0010000B60ULL
-#define USBC_OEPCTL4 0x00016F0010000B80ULL
-#define USBC_OEPINT0 0x00016F0010000B08ULL
-#define USBC_OEPINT1 0x00016F0010000B28ULL
-#define USBC_OEPINT2 0x00016F0010000B48ULL
-#define USBC_OEPINT3 0x00016F0010000B68ULL
-#define USBC_OEPINT4 0x00016F0010000B88ULL
-#define USBC_OEPTSIZ0 0x00016F0010000B10ULL
-#define USBC_OEPTSIZ1 0x00016F0010000B30ULL
-#define USBC_OEPTSIZ2 0x00016F0010000B50ULL
-#define USBC_OEPTSIZ3 0x00016F0010000B70ULL
-#define USBC_OEPTSIZ4 0x00016F0010000B90ULL
-#define USBC_PCGCCTL 0x00016F0010000E00ULL
-#define USBC_NPTXDFIFO0 0x00016F0010001000ULL
-#define USBC_NPTXDFIFO1 0x00016F0010002000ULL
-#define USBC_NPTXDFIFO2 0x00016F0010003000ULL
-#define USBC_NPTXDFIFO3 0x00016F0010004000ULL
-#define USBC_NPTXDFIFO4 0x00016F0010005000ULL
-#define USBC_NPTXDFIFO5 0x00016F0010006000ULL
-#define USBC_NPTXDFIFO6 0x00016F0010007000ULL
-#define USBC_NPTXDFIFO7 0x00016F0010008000ULL
-#define USBC_GRXSTSRD 0x00016F001004001CULL
-#define USBC_GRXSTSPD 0x00016F0010040020ULL
-
-/* ---- register bits */
-
-#define USBC_GOTGCTL_XXX_31_21 0xffe00000
-#define USBC_GOTGCTL_XXX_20 UINT32_C(0x00100000)
-#define USBC_GOTGCTL_BSESVLD UINT32_C(0x00080000)
-#define USBC_GOTGCTL_ASESVLD UINT32_C(0x00040000)
-#define USBC_GOTGCTL_DBNCTIME UINT32_C(0x00020000)
-#define USBC_GOTGCTL_CONIDSTS UINT32_C(0x00010000)
-#define USBC_GOTGCTL_XXX_15_12 0x0000f000
-#define USBC_GOTGCTL_DEVHNPEN UINT32_C(0x00000800)
-#define USBC_GOTGCTL_HSTSETHNPEN UINT32_C(0x00000400)
-#define USBC_GOTGCTL_HNPREQ UINT32_C(0x00000200)
-#define USBC_GOTGCTL_HSTNEGSCS UINT32_C(0x00000100)
-#define USBC_GOTGCTL_XXX_7_2 0x000000fc
-#define USBC_GOTGCTL_SESREQ UINT32_C(0x00000002)
-#define USBC_GOTGCTL_SESREQSCS UINT32_C(0x00000001)
-
-#define USBC_GOTGINT_XXX_31_20 0xfff00000
-#define USBC_GOTGINT_DBNCEDONE UINT32_C(0x00080000)
-#define USBC_GOTGINT_ADEVTOUTCHG UINT32_C(0x00040000)
-#define USBC_GOTGINT_HSTNEGDET UINT32_C(0x00020000)
-#define USBC_GOTGINT_XXX_16_10 0x0001fc00
-#define USBC_GOTGINT_HSTNEGSUCSTSCHNG UINT32_C(0x00000200)
-#define USBC_GOTGINT_SESREQSUCSTSCHNG UINT32_C(0x00000100)
-#define USBC_GOTGINT_XXX_7_3 0x000000f8
-#define USBC_GOTGINT_SESENDDET UINT32_C(0x00000004)
-#define USBC_GOTGINT_XXX_1 UINT32_C(0x00000002)
-#define USBC_GOTGINT_XXX_0 UINT32_C(0x00000001)
-
-#define USBC_GAHBCFG_XXX_31_9 0xfffffe00
-#define USBC_GAHBCFG_PTXFEMPLVL UINT32_C(0x00000100)
-#define USBC_GAHBCFG_NPTXFEMPLVL UINT32_C(0x00000080)
-#define USBC_GAHBCFG_XXX_6 UINT32_C(0x00000040)
-#define USBC_GAHBCFG_DMAEN UINT32_C(0x00000020)
-#define USBC_GAHBCFG_HBSTLEN 0x0000001e
-#define USBC_GAHBCFG_HBSTLEN_OFFSET 1
-#define USBC_GAHBCFG_GLBLINTRMSK UINT32_C(0x00000001)
-
-#define USBC_GUSBCFG_XXX_31_17 0xfffe0000
-#define USBC_GUSBCFG_OTGI2CSEL UINT32_C(0x00010000)
-#define USBC_GUSBCFG_PHYLPWRCLKSEL UINT32_C(0x00008000)
-#define USBC_GUSBCFG_XXX_14 UINT32_C(0x00004000)
-#define USBC_GUSBCFG_USBTRDTIM 0x00003c00
-#define USBC_GUSBCFG_USBTRDTIM_OFFSET 10
-#define USBC_GUSBCFG_HNPCAP UINT32_C(0x00000200)
-#define USBC_GUSBCFG_SRPCAP UINT32_C(0x00000100)
-#define USBC_GUSBCFG_DDRSEL UINT32_C(0x00000080)
-#define USBC_GUSBCFG_PHYSEL UINT32_C(0x00000040)
-#define USBC_GUSBCFG_FSINTF UINT32_C(0x00000020)
-#define USBC_GUSBCFG_ULPI_UTMI_SEL UINT32_C(0x00000010)
-#define USBC_GUSBCFG_PHYIF UINT32_C(0x00000008)
-#define USBC_GUSBCFG_TOUTCAL 0x00000007
-#define USBC_GUSBCFG_TOUTCAL_OFFSET 0
-
-#define USBC_GRSTCTL_AHBIDLE UINT32_C(0x80000000)
-#define USBC_GRSTCTL_DMAREQ UINT32_C(0x40000000)
-#define USBC_GRSTCTL_XXX_29_11 0x3ffff800
-#define USBC_GRSTCTL_TXFNUM 0x000007c0
-#define USBC_GRSTCTL_TXFNUM_OFFSET 6
-#define USBC_GRSTCTL_TXFFLSH UINT32_C(0x00000020)
-#define USBC_GRSTCTL_RXFFLSH UINT32_C(0x00000010)
-#define USBC_GRSTCTL_INTKNQFLSH UINT32_C(0x00000008)
-#define USBC_GRSTCTL_FRMCNTRRST UINT32_C(0x00000004)
-#define USBC_GRSTCTL_HSFTRST UINT32_C(0x00000002)
-#define USBC_GRSTCTL_CSFTRST UINT32_C(0x00000001)
-
-#define USBC_GINTSTS_WKUPINT UINT32_C(0x80000000)
-#define USBC_GINTSTS_SESSREQINT UINT32_C(0x40000000)
-#define USBC_GINTSTS_DISCONNINT UINT32_C(0x20000000)
-#define USBC_GINTSTS_CONIDSTSCHNG UINT32_C(0x10000000)
-#define USBC_GINTSTS_XXX_27 UINT32_C(0x08000000)
-#define USBC_GINTSTS_PTXFEMP UINT32_C(0x04000000)
-#define USBC_GINTSTS_HCHINT UINT32_C(0x02000000)
-#define USBC_GINTSTS_PRTINT UINT32_C(0x01000000)
-#define USBC_GINTSTS_XXX_23 UINT32_C(0x00800000)
-#define USBC_GINTSTS_FETSUSP UINT32_C(0x00400000)
-#define USBC_GINTSTS_INCOMPLP UINT32_C(0x00200000)
-#define USBC_GINTSTS_INCOMPISOIN UINT32_C(0x00100000)
-#define USBC_GINTSTS_OEPINT UINT32_C(0x00080000)
-#define USBC_GINTSTS_IEPINT UINT32_C(0x00040000)
-#define USBC_GINTSTS_EPMIS UINT32_C(0x00020000)
-#define USBC_GINTSTS_XXX_16 UINT32_C(0x00010000)
-#define USBC_GINTSTS_EOPF UINT32_C(0x00008000)
-#define USBC_GINTSTS_ISOOUTDROP UINT32_C(0x00004000)
-#define USBC_GINTSTS_ENUMDONE UINT32_C(0x00002000)
-#define USBC_GINTSTS_USBRST UINT32_C(0x00001000)
-#define USBC_GINTSTS_USBSUSP UINT32_C(0x00000800)
-#define USBC_GINTSTS_ERLYSUSP UINT32_C(0x00000400)
-#define USBC_GINTSTS_I2CINT UINT32_C(0x00000200)
-#define USBC_GINTSTS_ULPICKINT UINT32_C(0x00000100)
-#define USBC_GINTSTS_GOUTNAKEFF UINT32_C(0x00000080)
-#define USBC_GINTSTS_GINNAKEFF UINT32_C(0x00000040)
-#define USBC_GINTSTS_NPTXFEMP UINT32_C(0x00000020)
-#define USBC_GINTSTS_RXFLVL UINT32_C(0x00000010)
-#define USBC_GINTSTS_SOF UINT32_C(0x00000008)
-#define USBC_GINTSTS_OTGINT UINT32_C(0x00000004)
-#define USBC_GINTSTS_MODEMIS UINT32_C(0x00000002)
-#define USBC_GINTSTS_CURMOD UINT32_C(0x00000001)
-#define USBC_GINTSTS_CURMOD_OFFSET 0
-#define USBC_GINTSTS_CURMOD_DEVICE 0x0
-#define USBC_GINTSTS_CURMOD_HOST 0x1
-
-#define USBC_GINTMSK_WKUPINTMSK UINT32_C(0x80000000)
-#define USBC_GINTMSK_SESSREQINTMSK UINT32_C(0x40000000)
-#define USBC_GINTMSK_DISCONNINTMSK UINT32_C(0x20000000)
-#define USBC_GINTMSK_CONIDSTSTCHNGMSK UINT32_C(0x10000000)
-#define USBC_GINTMSK_XXX_27 UINT32_C(0x08000000)
-#define USBC_GINTMSK_PTXFEMPMSK UINT32_C(0x04000000)
-#define USBC_GINTMSK_HCHINTMSK UINT32_C(0x02000000)
-#define USBC_GINTMSK_PRTINTMSK UINT32_C(0x01000000)
-#define USBC_GINTMSK_XXX_23 UINT32_C(0x00800000)
-#define USBC_GINTMSK_FETSUSPMSK UINT32_C(0x00400000)
-#define USBC_GINTMSK_INCOMPISOOUTMSK UINT32_C(0x00200000)
-#define USBC_GINTMSK_INCOMPISOINMSK UINT32_C(0x00100000)
-#define USBC_GINTMSK_OEPINTMSK UINT32_C(0x00080000)
-#define USBC_GINTMSK_INEPINTMSK UINT32_C(0x00040000)
-#define USBC_GINTMSK_EPMISMSK UINT32_C(0x00020000)
-#define USBC_GINTMSK_XXX_16 UINT32_C(0x00010000)
-#define USBC_GINTMSK_EOPFMSK UINT32_C(0x00008000)
-#define USBC_GINTMSK_ISOOUTDROPMSK UINT32_C(0x00004000)
-#define USBC_GINTMSK_ENUMDONEMSK UINT32_C(0x00002000)
-#define USBC_GINTMSK_USBRSTMSK UINT32_C(0x00001000)
-#define USBC_GINTMSK_USBSUSPMSK UINT32_C(0x00000800)
-#define USBC_GINTMSK_ERLYSUSPMSK UINT32_C(0x00000400)
-#define USBC_GINTMSK_I2CINT UINT32_C(0x00000200)
-#define USBC_GINTMSK_ULPICKINTMSK UINT32_C(0x00000100)
-#define USBC_GINTMSK_GOUTNAKEFFMSK UINT32_C(0x00000080)
-#define USBC_GINTMSK_GINNAKEFFMSK UINT32_C(0x00000040)
-#define USBC_GINTMSK_NPTXFEMPMSK UINT32_C(0x00000020)
-#define USBC_GINTMSK_RXFLVLMSK UINT32_C(0x00000010)
-#define USBC_GINTMSK_SOFMSK UINT32_C(0x00000008)
-#define USBC_GINTMSK_OTGINTMSK UINT32_C(0x00000004)
-#define USBC_GINTMSK_MODEMISMSK UINT32_C(0x00000002)
-#define USBC_GINTMSK_XXX_0 UINT32_C(0x00000001)
-
-#define USBC_GRXSTSRH_XXX_31_21 0xffe00000
-#define USBC_GRXSTSRH_PKTSTS 0x001e0000
-#define USBC_GRXSTSRH_PKTSTS_OFFSET 17
-#define USBC_GRXSTSRH_DPID 0x00018000
-#define USBC_GRXSTSRH_DPID_OFFSET 15
-#define USBC_GRXSTSRH_DPID_DATA0 0x00
-#define USBC_GRXSTSRH_DPID_DATA1 0x10
-#define USBC_GRXSTSRH_DPID_DATA2 0x01
-#define USBC_GRXSTSRH_DPID_MDATA 0x11
-#define USBC_GRXSTSRH_BCNT 0x00007ff0
-#define USBC_GRXSTSRH_BCNT_OFFSET 4
-#define USBC_GRXSTSRH_CHNUM 0x0000000f
-#define USBC_GRXSTSRH_CHNUM_OFFSET 0
-
-#define USBC_GRXSTSPH_XXX_31_21 0xffe00000
-#define USBC_GRXSTSPH_PKTSTS 0x001e0000
-#define USBC_GRXSTSPH_PKTSTS_OFFSET 17
-#define USBC_GRXSTSPH_PKTSTS_IN_DATA_RECV 0x2
-#define USBC_GRXSTSPH_PKTSTS_IN_XFER_COMPL 0x3
-#define USBC_GRXSTSPH_PKTSTS_TGL_ERR 0x5
-#define USBC_GRXSTSPH_PKTSTS_CH_HLTD 0x7
-#define USBC_GRXSTSPH_DPID 0x00018000
-#define USBC_GRXSTSPH_DPID_OFFSET 15
-#define USBC_GRXSTSPH_DPID_DATA0 0x00
-#define USBC_GRXSTSPH_DPID_DATA1 0x10
-#define USBC_GRXSTSPH_DPID_DATA2 0x01
-#define USBC_GRXSTSPH_DPID_MDATA 0x11
-#define USBC_GRXSTSPH_BCNT 0x00007ff0
Home |
Main Index |
Thread Index |
Old Index