rockbox/firmware/target/arm/imx233/regs/stmp3700/usbctrl.h
Amaury Pouly eac1ca22bd imx233: generate register headers using headergen_v2 and update code for it
NOTE: this commit does not introduce any change, ideally even the binary should
be almost the same. I checked the disassembly by hand and there are only a few
differences here and there, mostly the compiler decides to compile very close
expressions slightly differently. I tried to run the new code on several targets
to make sure and saw no difference.

The major syntax changes of the new headers are as follows:
- BF_{WR,SET,CLR} are now superpowerful and allows to set several fileds at once:
  BF_WR(reg, field1(value1), field2(value2), ...)
- BF_CS (use like BF_WR) does a write to reg_CLR and then reg_SET instead of RMW
- there is no more need for macros like BF_{WR_,SET,CLR}_V, since one can simply
  BF_WR with field_V(name)
- the old BF_SETV macro has no trivial equivalent and is replaced with its
  its equivalent for BF_WR(reg_SET, ...)

I also rename the register headers: "regs/regs-x.h" -> "regs/x.h" to avoid the
redundant "regs".

Final note: the registers were generated using the following command:
./headergen_v2 -g imx -o ../../firmware/target/arm/imx233/regs/ desc/regs-stmp3{600,700,780}.xml

Change-Id: I7485e8b4315a0929a8edb63e7fa1edcaa54b1edc
2016-05-28 16:49:22 +02:00

1375 lines
82 KiB
C

/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
* \/ \/ \/ \/ \/
* This file was automatically generated by headergen, DO NOT EDIT it.
* headergen version: 3.0.0
* stmp3700 version: 2.4.0
* stmp3700 authors: Amaury Pouly
*
* Copyright (C) 2015 by the authors
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
****************************************************************************/
#ifndef __HEADERGEN_STMP3700_USBCTRL_H__
#define __HEADERGEN_STMP3700_USBCTRL_H__
#define HW_USBCTRL_ID HW(USBCTRL_ID)
#define HWA_USBCTRL_ID (0x80080000 + 0x0)
#define HWT_USBCTRL_ID HWIO_32_RW
#define HWN_USBCTRL_ID USBCTRL_ID
#define HWI_USBCTRL_ID
#define BP_USBCTRL_ID_REV 16
#define BM_USBCTRL_ID_REV 0xff0000
#define BF_USBCTRL_ID_REV(v) (((v) & 0xff) << 16)
#define BFM_USBCTRL_ID_REV(v) BM_USBCTRL_ID_REV
#define BF_USBCTRL_ID_REV_V(e) BF_USBCTRL_ID_REV(BV_USBCTRL_ID_REV__##e)
#define BFM_USBCTRL_ID_REV_V(v) BM_USBCTRL_ID_REV
#define BP_USBCTRL_ID_ID_N 8
#define BM_USBCTRL_ID_ID_N 0xff00
#define BF_USBCTRL_ID_ID_N(v) (((v) & 0xff) << 8)
#define BFM_USBCTRL_ID_ID_N(v) BM_USBCTRL_ID_ID_N
#define BF_USBCTRL_ID_ID_N_V(e) BF_USBCTRL_ID_ID_N(BV_USBCTRL_ID_ID_N__##e)
#define BFM_USBCTRL_ID_ID_N_V(v) BM_USBCTRL_ID_ID_N
#define BP_USBCTRL_ID_ID 0
#define BM_USBCTRL_ID_ID 0xff
#define BF_USBCTRL_ID_ID(v) (((v) & 0xff) << 0)
#define BFM_USBCTRL_ID_ID(v) BM_USBCTRL_ID_ID
#define BF_USBCTRL_ID_ID_V(e) BF_USBCTRL_ID_ID(BV_USBCTRL_ID_ID__##e)
#define BFM_USBCTRL_ID_ID_V(v) BM_USBCTRL_ID_ID
#define HW_USBCTRL_GENERAL HW(USBCTRL_GENERAL)
#define HWA_USBCTRL_GENERAL (0x80080000 + 0x4)
#define HWT_USBCTRL_GENERAL HWIO_32_RW
#define HWN_USBCTRL_GENERAL USBCTRL_GENERAL
#define HWI_USBCTRL_GENERAL
#define BP_USBCTRL_GENERAL_SM 9
#define BM_USBCTRL_GENERAL_SM 0x200
#define BF_USBCTRL_GENERAL_SM(v) (((v) & 0x1) << 9)
#define BFM_USBCTRL_GENERAL_SM(v) BM_USBCTRL_GENERAL_SM
#define BF_USBCTRL_GENERAL_SM_V(e) BF_USBCTRL_GENERAL_SM(BV_USBCTRL_GENERAL_SM__##e)
#define BFM_USBCTRL_GENERAL_SM_V(v) BM_USBCTRL_GENERAL_SM
#define BP_USBCTRL_GENERAL_PHYM 6
#define BM_USBCTRL_GENERAL_PHYM 0x1c0
#define BF_USBCTRL_GENERAL_PHYM(v) (((v) & 0x7) << 6)
#define BFM_USBCTRL_GENERAL_PHYM(v) BM_USBCTRL_GENERAL_PHYM
#define BF_USBCTRL_GENERAL_PHYM_V(e) BF_USBCTRL_GENERAL_PHYM(BV_USBCTRL_GENERAL_PHYM__##e)
#define BFM_USBCTRL_GENERAL_PHYM_V(v) BM_USBCTRL_GENERAL_PHYM
#define BP_USBCTRL_GENERAL_PHYW 4
#define BM_USBCTRL_GENERAL_PHYW 0x30
#define BF_USBCTRL_GENERAL_PHYW(v) (((v) & 0x3) << 4)
#define BFM_USBCTRL_GENERAL_PHYW(v) BM_USBCTRL_GENERAL_PHYW
#define BF_USBCTRL_GENERAL_PHYW_V(e) BF_USBCTRL_GENERAL_PHYW(BV_USBCTRL_GENERAL_PHYW__##e)
#define BFM_USBCTRL_GENERAL_PHYW_V(v) BM_USBCTRL_GENERAL_PHYW
#define BP_USBCTRL_GENERAL_BWT 3
#define BM_USBCTRL_GENERAL_BWT 0x8
#define BF_USBCTRL_GENERAL_BWT(v) (((v) & 0x1) << 3)
#define BFM_USBCTRL_GENERAL_BWT(v) BM_USBCTRL_GENERAL_BWT
#define BF_USBCTRL_GENERAL_BWT_V(e) BF_USBCTRL_GENERAL_BWT(BV_USBCTRL_GENERAL_BWT__##e)
#define BFM_USBCTRL_GENERAL_BWT_V(v) BM_USBCTRL_GENERAL_BWT
#define BP_USBCTRL_GENERAL_CLKC 1
#define BM_USBCTRL_GENERAL_CLKC 0x6
#define BF_USBCTRL_GENERAL_CLKC(v) (((v) & 0x3) << 1)
#define BFM_USBCTRL_GENERAL_CLKC(v) BM_USBCTRL_GENERAL_CLKC
#define BF_USBCTRL_GENERAL_CLKC_V(e) BF_USBCTRL_GENERAL_CLKC(BV_USBCTRL_GENERAL_CLKC__##e)
#define BFM_USBCTRL_GENERAL_CLKC_V(v) BM_USBCTRL_GENERAL_CLKC
#define BP_USBCTRL_GENERAL_RT 0
#define BM_USBCTRL_GENERAL_RT 0x1
#define BF_USBCTRL_GENERAL_RT(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_GENERAL_RT(v) BM_USBCTRL_GENERAL_RT
#define BF_USBCTRL_GENERAL_RT_V(e) BF_USBCTRL_GENERAL_RT(BV_USBCTRL_GENERAL_RT__##e)
#define BFM_USBCTRL_GENERAL_RT_V(v) BM_USBCTRL_GENERAL_RT
#define HW_USBCTRL_HOST HW(USBCTRL_HOST)
#define HWA_USBCTRL_HOST (0x80080000 + 0x8)
#define HWT_USBCTRL_HOST HWIO_32_RW
#define HWN_USBCTRL_HOST USBCTRL_HOST
#define HWI_USBCTRL_HOST
#define BP_USBCTRL_HOST_TTPER 24
#define BM_USBCTRL_HOST_TTPER 0xff000000
#define BF_USBCTRL_HOST_TTPER(v) (((v) & 0xff) << 24)
#define BFM_USBCTRL_HOST_TTPER(v) BM_USBCTRL_HOST_TTPER
#define BF_USBCTRL_HOST_TTPER_V(e) BF_USBCTRL_HOST_TTPER(BV_USBCTRL_HOST_TTPER__##e)
#define BFM_USBCTRL_HOST_TTPER_V(v) BM_USBCTRL_HOST_TTPER
#define BP_USBCTRL_HOST_TTASY 16
#define BM_USBCTRL_HOST_TTASY 0xff0000
#define BF_USBCTRL_HOST_TTASY(v) (((v) & 0xff) << 16)
#define BFM_USBCTRL_HOST_TTASY(v) BM_USBCTRL_HOST_TTASY
#define BF_USBCTRL_HOST_TTASY_V(e) BF_USBCTRL_HOST_TTASY(BV_USBCTRL_HOST_TTASY__##e)
#define BFM_USBCTRL_HOST_TTASY_V(v) BM_USBCTRL_HOST_TTASY
#define BP_USBCTRL_HOST_NPORT 1
#define BM_USBCTRL_HOST_NPORT 0xe
#define BF_USBCTRL_HOST_NPORT(v) (((v) & 0x7) << 1)
#define BFM_USBCTRL_HOST_NPORT(v) BM_USBCTRL_HOST_NPORT
#define BF_USBCTRL_HOST_NPORT_V(e) BF_USBCTRL_HOST_NPORT(BV_USBCTRL_HOST_NPORT__##e)
#define BFM_USBCTRL_HOST_NPORT_V(v) BM_USBCTRL_HOST_NPORT
#define BP_USBCTRL_HOST_HC 0
#define BM_USBCTRL_HOST_HC 0x1
#define BF_USBCTRL_HOST_HC(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_HOST_HC(v) BM_USBCTRL_HOST_HC
#define BF_USBCTRL_HOST_HC_V(e) BF_USBCTRL_HOST_HC(BV_USBCTRL_HOST_HC__##e)
#define BFM_USBCTRL_HOST_HC_V(v) BM_USBCTRL_HOST_HC
#define HW_USBCTRL_DEVICE HW(USBCTRL_DEVICE)
#define HWA_USBCTRL_DEVICE (0x80080000 + 0xc)
#define HWT_USBCTRL_DEVICE HWIO_32_RW
#define HWN_USBCTRL_DEVICE USBCTRL_DEVICE
#define HWI_USBCTRL_DEVICE
#define BP_USBCTRL_DEVICE_DEVEP 1
#define BM_USBCTRL_DEVICE_DEVEP 0x3e
#define BF_USBCTRL_DEVICE_DEVEP(v) (((v) & 0x1f) << 1)
#define BFM_USBCTRL_DEVICE_DEVEP(v) BM_USBCTRL_DEVICE_DEVEP
#define BF_USBCTRL_DEVICE_DEVEP_V(e) BF_USBCTRL_DEVICE_DEVEP(BV_USBCTRL_DEVICE_DEVEP__##e)
#define BFM_USBCTRL_DEVICE_DEVEP_V(v) BM_USBCTRL_DEVICE_DEVEP
#define BP_USBCTRL_DEVICE_DC 0
#define BM_USBCTRL_DEVICE_DC 0x1
#define BF_USBCTRL_DEVICE_DC(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_DEVICE_DC(v) BM_USBCTRL_DEVICE_DC
#define BF_USBCTRL_DEVICE_DC_V(e) BF_USBCTRL_DEVICE_DC(BV_USBCTRL_DEVICE_DC__##e)
#define BFM_USBCTRL_DEVICE_DC_V(v) BM_USBCTRL_DEVICE_DC
#define HW_USBCTRL_TXBUF HW(USBCTRL_TXBUF)
#define HWA_USBCTRL_TXBUF (0x80080000 + 0x10)
#define HWT_USBCTRL_TXBUF HWIO_32_RW
#define HWN_USBCTRL_TXBUF USBCTRL_TXBUF
#define HWI_USBCTRL_TXBUF
#define BP_USBCTRL_TXBUF_TXLCR 31
#define BM_USBCTRL_TXBUF_TXLCR 0x80000000
#define BF_USBCTRL_TXBUF_TXLCR(v) (((v) & 0x1) << 31)
#define BFM_USBCTRL_TXBUF_TXLCR(v) BM_USBCTRL_TXBUF_TXLCR
#define BF_USBCTRL_TXBUF_TXLCR_V(e) BF_USBCTRL_TXBUF_TXLCR(BV_USBCTRL_TXBUF_TXLCR__##e)
#define BFM_USBCTRL_TXBUF_TXLCR_V(v) BM_USBCTRL_TXBUF_TXLCR
#define BP_USBCTRL_TXBUF_TXCHANADD 16
#define BM_USBCTRL_TXBUF_TXCHANADD 0xff0000
#define BF_USBCTRL_TXBUF_TXCHANADD(v) (((v) & 0xff) << 16)
#define BFM_USBCTRL_TXBUF_TXCHANADD(v) BM_USBCTRL_TXBUF_TXCHANADD
#define BF_USBCTRL_TXBUF_TXCHANADD_V(e) BF_USBCTRL_TXBUF_TXCHANADD(BV_USBCTRL_TXBUF_TXCHANADD__##e)
#define BFM_USBCTRL_TXBUF_TXCHANADD_V(v) BM_USBCTRL_TXBUF_TXCHANADD
#define BP_USBCTRL_TXBUF_TXADD 8
#define BM_USBCTRL_TXBUF_TXADD 0xff00
#define BF_USBCTRL_TXBUF_TXADD(v) (((v) & 0xff) << 8)
#define BFM_USBCTRL_TXBUF_TXADD(v) BM_USBCTRL_TXBUF_TXADD
#define BF_USBCTRL_TXBUF_TXADD_V(e) BF_USBCTRL_TXBUF_TXADD(BV_USBCTRL_TXBUF_TXADD__##e)
#define BFM_USBCTRL_TXBUF_TXADD_V(v) BM_USBCTRL_TXBUF_TXADD
#define BP_USBCTRL_TXBUF_TXBURST 0
#define BM_USBCTRL_TXBUF_TXBURST 0xff
#define BF_USBCTRL_TXBUF_TXBURST(v) (((v) & 0xff) << 0)
#define BFM_USBCTRL_TXBUF_TXBURST(v) BM_USBCTRL_TXBUF_TXBURST
#define BF_USBCTRL_TXBUF_TXBURST_V(e) BF_USBCTRL_TXBUF_TXBURST(BV_USBCTRL_TXBUF_TXBURST__##e)
#define BFM_USBCTRL_TXBUF_TXBURST_V(v) BM_USBCTRL_TXBUF_TXBURST
#define HW_USBCTRL_RXBUF HW(USBCTRL_RXBUF)
#define HWA_USBCTRL_RXBUF (0x80080000 + 0x14)
#define HWT_USBCTRL_RXBUF HWIO_32_RW
#define HWN_USBCTRL_RXBUF USBCTRL_RXBUF
#define HWI_USBCTRL_RXBUF
#define BP_USBCTRL_RXBUF_RXADD 8
#define BM_USBCTRL_RXBUF_RXADD 0xff00
#define BF_USBCTRL_RXBUF_RXADD(v) (((v) & 0xff) << 8)
#define BFM_USBCTRL_RXBUF_RXADD(v) BM_USBCTRL_RXBUF_RXADD
#define BF_USBCTRL_RXBUF_RXADD_V(e) BF_USBCTRL_RXBUF_RXADD(BV_USBCTRL_RXBUF_RXADD__##e)
#define BFM_USBCTRL_RXBUF_RXADD_V(v) BM_USBCTRL_RXBUF_RXADD
#define BP_USBCTRL_RXBUF_RXBURST 0
#define BM_USBCTRL_RXBUF_RXBURST 0xff
#define BF_USBCTRL_RXBUF_RXBURST(v) (((v) & 0xff) << 0)
#define BFM_USBCTRL_RXBUF_RXBURST(v) BM_USBCTRL_RXBUF_RXBURST
#define BF_USBCTRL_RXBUF_RXBURST_V(e) BF_USBCTRL_RXBUF_RXBURST(BV_USBCTRL_RXBUF_RXBURST__##e)
#define BFM_USBCTRL_RXBUF_RXBURST_V(v) BM_USBCTRL_RXBUF_RXBURST
#define HW_USBCTRL_TTTXBUF HW(USBCTRL_TTTXBUF)
#define HWA_USBCTRL_TTTXBUF (0x80080000 + 0x18)
#define HWT_USBCTRL_TTTXBUF HWIO_32_RW
#define HWN_USBCTRL_TTTXBUF USBCTRL_TTTXBUF
#define HWI_USBCTRL_TTTXBUF
#define BP_USBCTRL_TTTXBUF_TTTXBUF 0
#define BM_USBCTRL_TTTXBUF_TTTXBUF 0xffffffff
#define BF_USBCTRL_TTTXBUF_TTTXBUF(v) (((v) & 0xffffffff) << 0)
#define BFM_USBCTRL_TTTXBUF_TTTXBUF(v) BM_USBCTRL_TTTXBUF_TTTXBUF
#define BF_USBCTRL_TTTXBUF_TTTXBUF_V(e) BF_USBCTRL_TTTXBUF_TTTXBUF(BV_USBCTRL_TTTXBUF_TTTXBUF__##e)
#define BFM_USBCTRL_TTTXBUF_TTTXBUF_V(v) BM_USBCTRL_TTTXBUF_TTTXBUF
#define HW_USBCTRL_TTRXBUF HW(USBCTRL_TTRXBUF)
#define HWA_USBCTRL_TTRXBUF (0x80080000 + 0x1c)
#define HWT_USBCTRL_TTRXBUF HWIO_32_RW
#define HWN_USBCTRL_TTRXBUF USBCTRL_TTRXBUF
#define HWI_USBCTRL_TTRXBUF
#define BP_USBCTRL_TTRXBUF_TTRXBUF 0
#define BM_USBCTRL_TTRXBUF_TTRXBUF 0xffffffff
#define BF_USBCTRL_TTRXBUF_TTRXBUF(v) (((v) & 0xffffffff) << 0)
#define BFM_USBCTRL_TTRXBUF_TTRXBUF(v) BM_USBCTRL_TTRXBUF_TTRXBUF
#define BF_USBCTRL_TTRXBUF_TTRXBUF_V(e) BF_USBCTRL_TTRXBUF_TTRXBUF(BV_USBCTRL_TTRXBUF_TTRXBUF__##e)
#define BFM_USBCTRL_TTRXBUF_TTRXBUF_V(v) BM_USBCTRL_TTRXBUF_TTRXBUF
#define HW_USBCTRL_CAPLENGTH HW(USBCTRL_CAPLENGTH)
#define HWA_USBCTRL_CAPLENGTH (0x80080000 + 0x100)
#define HWT_USBCTRL_CAPLENGTH HWIO_32_RW
#define HWN_USBCTRL_CAPLENGTH USBCTRL_CAPLENGTH
#define HWI_USBCTRL_CAPLENGTH
#define BP_USBCTRL_CAPLENGTH_HCIVER 16
#define BM_USBCTRL_CAPLENGTH_HCIVER 0xffff0000
#define BF_USBCTRL_CAPLENGTH_HCIVER(v) (((v) & 0xffff) << 16)
#define BFM_USBCTRL_CAPLENGTH_HCIVER(v) BM_USBCTRL_CAPLENGTH_HCIVER
#define BF_USBCTRL_CAPLENGTH_HCIVER_V(e) BF_USBCTRL_CAPLENGTH_HCIVER(BV_USBCTRL_CAPLENGTH_HCIVER__##e)
#define BFM_USBCTRL_CAPLENGTH_HCIVER_V(v) BM_USBCTRL_CAPLENGTH_HCIVER
#define BP_USBCTRL_CAPLENGTH_LENGTH 0
#define BM_USBCTRL_CAPLENGTH_LENGTH 0xff
#define BF_USBCTRL_CAPLENGTH_LENGTH(v) (((v) & 0xff) << 0)
#define BFM_USBCTRL_CAPLENGTH_LENGTH(v) BM_USBCTRL_CAPLENGTH_LENGTH
#define BF_USBCTRL_CAPLENGTH_LENGTH_V(e) BF_USBCTRL_CAPLENGTH_LENGTH(BV_USBCTRL_CAPLENGTH_LENGTH__##e)
#define BFM_USBCTRL_CAPLENGTH_LENGTH_V(v) BM_USBCTRL_CAPLENGTH_LENGTH
#define HW_USBCTRL_HCSPARAMS HW(USBCTRL_HCSPARAMS)
#define HWA_USBCTRL_HCSPARAMS (0x80080000 + 0x104)
#define HWT_USBCTRL_HCSPARAMS HWIO_32_RW
#define HWN_USBCTRL_HCSPARAMS USBCTRL_HCSPARAMS
#define HWI_USBCTRL_HCSPARAMS
#define BP_USBCTRL_HCSPARAMS_NPORTS 0
#define BM_USBCTRL_HCSPARAMS_NPORTS 0xf
#define BF_USBCTRL_HCSPARAMS_NPORTS(v) (((v) & 0xf) << 0)
#define BFM_USBCTRL_HCSPARAMS_NPORTS(v) BM_USBCTRL_HCSPARAMS_NPORTS
#define BF_USBCTRL_HCSPARAMS_NPORTS_V(e) BF_USBCTRL_HCSPARAMS_NPORTS(BV_USBCTRL_HCSPARAMS_NPORTS__##e)
#define BFM_USBCTRL_HCSPARAMS_NPORTS_V(v) BM_USBCTRL_HCSPARAMS_NPORTS
#define BP_USBCTRL_HCSPARAMS_PPC 4
#define BM_USBCTRL_HCSPARAMS_PPC 0x10
#define BF_USBCTRL_HCSPARAMS_PPC(v) (((v) & 0x1) << 4)
#define BFM_USBCTRL_HCSPARAMS_PPC(v) BM_USBCTRL_HCSPARAMS_PPC
#define BF_USBCTRL_HCSPARAMS_PPC_V(e) BF_USBCTRL_HCSPARAMS_PPC(BV_USBCTRL_HCSPARAMS_PPC__##e)
#define BFM_USBCTRL_HCSPARAMS_PPC_V(v) BM_USBCTRL_HCSPARAMS_PPC
#define BP_USBCTRL_HCSPARAMS_NPCC 8
#define BM_USBCTRL_HCSPARAMS_NPCC 0xf00
#define BF_USBCTRL_HCSPARAMS_NPCC(v) (((v) & 0xf) << 8)
#define BFM_USBCTRL_HCSPARAMS_NPCC(v) BM_USBCTRL_HCSPARAMS_NPCC
#define BF_USBCTRL_HCSPARAMS_NPCC_V(e) BF_USBCTRL_HCSPARAMS_NPCC(BV_USBCTRL_HCSPARAMS_NPCC__##e)
#define BFM_USBCTRL_HCSPARAMS_NPCC_V(v) BM_USBCTRL_HCSPARAMS_NPCC
#define BP_USBCTRL_HCSPARAMS_NCC 12
#define BM_USBCTRL_HCSPARAMS_NCC 0xf000
#define BF_USBCTRL_HCSPARAMS_NCC(v) (((v) & 0xf) << 12)
#define BFM_USBCTRL_HCSPARAMS_NCC(v) BM_USBCTRL_HCSPARAMS_NCC
#define BF_USBCTRL_HCSPARAMS_NCC_V(e) BF_USBCTRL_HCSPARAMS_NCC(BV_USBCTRL_HCSPARAMS_NCC__##e)
#define BFM_USBCTRL_HCSPARAMS_NCC_V(v) BM_USBCTRL_HCSPARAMS_NCC
#define BP_USBCTRL_HCSPARAMS_PI 16
#define BM_USBCTRL_HCSPARAMS_PI 0x10000
#define BF_USBCTRL_HCSPARAMS_PI(v) (((v) & 0x1) << 16)
#define BFM_USBCTRL_HCSPARAMS_PI(v) BM_USBCTRL_HCSPARAMS_PI
#define BF_USBCTRL_HCSPARAMS_PI_V(e) BF_USBCTRL_HCSPARAMS_PI(BV_USBCTRL_HCSPARAMS_PI__##e)
#define BFM_USBCTRL_HCSPARAMS_PI_V(v) BM_USBCTRL_HCSPARAMS_PI
#define BP_USBCTRL_HCSPARAMS_NPTT 20
#define BM_USBCTRL_HCSPARAMS_NPTT 0xf00000
#define BF_USBCTRL_HCSPARAMS_NPTT(v) (((v) & 0xf) << 20)
#define BFM_USBCTRL_HCSPARAMS_NPTT(v) BM_USBCTRL_HCSPARAMS_NPTT
#define BF_USBCTRL_HCSPARAMS_NPTT_V(e) BF_USBCTRL_HCSPARAMS_NPTT(BV_USBCTRL_HCSPARAMS_NPTT__##e)
#define BFM_USBCTRL_HCSPARAMS_NPTT_V(v) BM_USBCTRL_HCSPARAMS_NPTT
#define BP_USBCTRL_HCSPARAMS_NTT 24
#define BM_USBCTRL_HCSPARAMS_NTT 0xf000000
#define BF_USBCTRL_HCSPARAMS_NTT(v) (((v) & 0xf) << 24)
#define BFM_USBCTRL_HCSPARAMS_NTT(v) BM_USBCTRL_HCSPARAMS_NTT
#define BF_USBCTRL_HCSPARAMS_NTT_V(e) BF_USBCTRL_HCSPARAMS_NTT(BV_USBCTRL_HCSPARAMS_NTT__##e)
#define BFM_USBCTRL_HCSPARAMS_NTT_V(v) BM_USBCTRL_HCSPARAMS_NTT
#define HW_USBCTRL_HCCPARAMS HW(USBCTRL_HCCPARAMS)
#define HWA_USBCTRL_HCCPARAMS (0x80080000 + 0x108)
#define HWT_USBCTRL_HCCPARAMS HWIO_32_RW
#define HWN_USBCTRL_HCCPARAMS USBCTRL_HCCPARAMS
#define HWI_USBCTRL_HCCPARAMS
#define BP_USBCTRL_HCCPARAMS_ADDR64BITCAP 0
#define BM_USBCTRL_HCCPARAMS_ADDR64BITCAP 0x1
#define BF_USBCTRL_HCCPARAMS_ADDR64BITCAP(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_HCCPARAMS_ADDR64BITCAP(v) BM_USBCTRL_HCCPARAMS_ADDR64BITCAP
#define BF_USBCTRL_HCCPARAMS_ADDR64BITCAP_V(e) BF_USBCTRL_HCCPARAMS_ADDR64BITCAP(BV_USBCTRL_HCCPARAMS_ADDR64BITCAP__##e)
#define BFM_USBCTRL_HCCPARAMS_ADDR64BITCAP_V(v) BM_USBCTRL_HCCPARAMS_ADDR64BITCAP
#define BP_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG 1
#define BM_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG 0x2
#define BF_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG(v) (((v) & 0x1) << 1)
#define BFM_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG(v) BM_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG
#define BF_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG_V(e) BF_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG(BV_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG__##e)
#define BFM_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG_V(v) BM_USBCTRL_HCCPARAMS_PGM_FRM_LIST_FLAG
#define BP_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP 2
#define BM_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP 0x4
#define BF_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP(v) (((v) & 0x1) << 2)
#define BFM_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP(v) BM_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP
#define BF_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP_V(e) BF_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP(BV_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP__##e)
#define BFM_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP_V(v) BM_USBCTRL_HCCPARAMS_ASYNC_PARK_CAP
#define BP_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD 8
#define BM_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD 0xff00
#define BF_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD(v) (((v) & 0xff) << 8)
#define BFM_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD(v) BM_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD
#define BF_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD_V(e) BF_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD(BV_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD__##e)
#define BFM_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD_V(v) BM_USBCTRL_HCCPARAMS_ISO_SCH_THRESHOLD
#define HW_USBCTRL_DCIVERSION HW(USBCTRL_DCIVERSION)
#define HWA_USBCTRL_DCIVERSION (0x80080000 + 0x120)
#define HWT_USBCTRL_DCIVERSION HWIO_32_RW
#define HWN_USBCTRL_DCIVERSION USBCTRL_DCIVERSION
#define HWI_USBCTRL_DCIVERSION
#define BP_USBCTRL_DCIVERSION_DCIVER 0
#define BM_USBCTRL_DCIVERSION_DCIVER 0xffff
#define BF_USBCTRL_DCIVERSION_DCIVER(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_DCIVERSION_DCIVER(v) BM_USBCTRL_DCIVERSION_DCIVER
#define BF_USBCTRL_DCIVERSION_DCIVER_V(e) BF_USBCTRL_DCIVERSION_DCIVER(BV_USBCTRL_DCIVERSION_DCIVER__##e)
#define BFM_USBCTRL_DCIVERSION_DCIVER_V(v) BM_USBCTRL_DCIVERSION_DCIVER
#define HW_USBCTRL_DCCPARAMS HW(USBCTRL_DCCPARAMS)
#define HWA_USBCTRL_DCCPARAMS (0x80080000 + 0x124)
#define HWT_USBCTRL_DCCPARAMS HWIO_32_RW
#define HWN_USBCTRL_DCCPARAMS USBCTRL_DCCPARAMS
#define HWI_USBCTRL_DCCPARAMS
#define BP_USBCTRL_DCCPARAMS_HC 8
#define BM_USBCTRL_DCCPARAMS_HC 0x100
#define BF_USBCTRL_DCCPARAMS_HC(v) (((v) & 0x1) << 8)
#define BFM_USBCTRL_DCCPARAMS_HC(v) BM_USBCTRL_DCCPARAMS_HC
#define BF_USBCTRL_DCCPARAMS_HC_V(e) BF_USBCTRL_DCCPARAMS_HC(BV_USBCTRL_DCCPARAMS_HC__##e)
#define BFM_USBCTRL_DCCPARAMS_HC_V(v) BM_USBCTRL_DCCPARAMS_HC
#define BP_USBCTRL_DCCPARAMS_DC 7
#define BM_USBCTRL_DCCPARAMS_DC 0x80
#define BF_USBCTRL_DCCPARAMS_DC(v) (((v) & 0x1) << 7)
#define BFM_USBCTRL_DCCPARAMS_DC(v) BM_USBCTRL_DCCPARAMS_DC
#define BF_USBCTRL_DCCPARAMS_DC_V(e) BF_USBCTRL_DCCPARAMS_DC(BV_USBCTRL_DCCPARAMS_DC__##e)
#define BFM_USBCTRL_DCCPARAMS_DC_V(v) BM_USBCTRL_DCCPARAMS_DC
#define BP_USBCTRL_DCCPARAMS_DEN 0
#define BM_USBCTRL_DCCPARAMS_DEN 0x1f
#define BF_USBCTRL_DCCPARAMS_DEN(v) (((v) & 0x1f) << 0)
#define BFM_USBCTRL_DCCPARAMS_DEN(v) BM_USBCTRL_DCCPARAMS_DEN
#define BF_USBCTRL_DCCPARAMS_DEN_V(e) BF_USBCTRL_DCCPARAMS_DEN(BV_USBCTRL_DCCPARAMS_DEN__##e)
#define BFM_USBCTRL_DCCPARAMS_DEN_V(v) BM_USBCTRL_DCCPARAMS_DEN
#define HW_USBCTRL_USBCMD HW(USBCTRL_USBCMD)
#define HWA_USBCTRL_USBCMD (0x80080000 + 0x140)
#define HWT_USBCTRL_USBCMD HWIO_32_RW
#define HWN_USBCTRL_USBCMD USBCTRL_USBCMD
#define HWI_USBCTRL_USBCMD
#define BP_USBCTRL_USBCMD_RS 0
#define BM_USBCTRL_USBCMD_RS 0x1
#define BF_USBCTRL_USBCMD_RS(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_USBCMD_RS(v) BM_USBCTRL_USBCMD_RS
#define BF_USBCTRL_USBCMD_RS_V(e) BF_USBCTRL_USBCMD_RS(BV_USBCTRL_USBCMD_RS__##e)
#define BFM_USBCTRL_USBCMD_RS_V(v) BM_USBCTRL_USBCMD_RS
#define BP_USBCTRL_USBCMD_RST 1
#define BM_USBCTRL_USBCMD_RST 0x2
#define BF_USBCTRL_USBCMD_RST(v) (((v) & 0x1) << 1)
#define BFM_USBCTRL_USBCMD_RST(v) BM_USBCTRL_USBCMD_RST
#define BF_USBCTRL_USBCMD_RST_V(e) BF_USBCTRL_USBCMD_RST(BV_USBCTRL_USBCMD_RST__##e)
#define BFM_USBCTRL_USBCMD_RST_V(v) BM_USBCTRL_USBCMD_RST
#define BP_USBCTRL_USBCMD_FS0 2
#define BM_USBCTRL_USBCMD_FS0 0x4
#define BF_USBCTRL_USBCMD_FS0(v) (((v) & 0x1) << 2)
#define BFM_USBCTRL_USBCMD_FS0(v) BM_USBCTRL_USBCMD_FS0
#define BF_USBCTRL_USBCMD_FS0_V(e) BF_USBCTRL_USBCMD_FS0(BV_USBCTRL_USBCMD_FS0__##e)
#define BFM_USBCTRL_USBCMD_FS0_V(v) BM_USBCTRL_USBCMD_FS0
#define BP_USBCTRL_USBCMD_FS1 3
#define BM_USBCTRL_USBCMD_FS1 0x8
#define BF_USBCTRL_USBCMD_FS1(v) (((v) & 0x1) << 3)
#define BFM_USBCTRL_USBCMD_FS1(v) BM_USBCTRL_USBCMD_FS1
#define BF_USBCTRL_USBCMD_FS1_V(e) BF_USBCTRL_USBCMD_FS1(BV_USBCTRL_USBCMD_FS1__##e)
#define BFM_USBCTRL_USBCMD_FS1_V(v) BM_USBCTRL_USBCMD_FS1
#define BP_USBCTRL_USBCMD_PSE 4
#define BM_USBCTRL_USBCMD_PSE 0x10
#define BF_USBCTRL_USBCMD_PSE(v) (((v) & 0x1) << 4)
#define BFM_USBCTRL_USBCMD_PSE(v) BM_USBCTRL_USBCMD_PSE
#define BF_USBCTRL_USBCMD_PSE_V(e) BF_USBCTRL_USBCMD_PSE(BV_USBCTRL_USBCMD_PSE__##e)
#define BFM_USBCTRL_USBCMD_PSE_V(v) BM_USBCTRL_USBCMD_PSE
#define BP_USBCTRL_USBCMD_ASE 5
#define BM_USBCTRL_USBCMD_ASE 0x20
#define BF_USBCTRL_USBCMD_ASE(v) (((v) & 0x1) << 5)
#define BFM_USBCTRL_USBCMD_ASE(v) BM_USBCTRL_USBCMD_ASE
#define BF_USBCTRL_USBCMD_ASE_V(e) BF_USBCTRL_USBCMD_ASE(BV_USBCTRL_USBCMD_ASE__##e)
#define BFM_USBCTRL_USBCMD_ASE_V(v) BM_USBCTRL_USBCMD_ASE
#define BP_USBCTRL_USBCMD_IAA 6
#define BM_USBCTRL_USBCMD_IAA 0x40
#define BF_USBCTRL_USBCMD_IAA(v) (((v) & 0x1) << 6)
#define BFM_USBCTRL_USBCMD_IAA(v) BM_USBCTRL_USBCMD_IAA
#define BF_USBCTRL_USBCMD_IAA_V(e) BF_USBCTRL_USBCMD_IAA(BV_USBCTRL_USBCMD_IAA__##e)
#define BFM_USBCTRL_USBCMD_IAA_V(v) BM_USBCTRL_USBCMD_IAA
#define BP_USBCTRL_USBCMD_LR 7
#define BM_USBCTRL_USBCMD_LR 0x80
#define BF_USBCTRL_USBCMD_LR(v) (((v) & 0x1) << 7)
#define BFM_USBCTRL_USBCMD_LR(v) BM_USBCTRL_USBCMD_LR
#define BF_USBCTRL_USBCMD_LR_V(e) BF_USBCTRL_USBCMD_LR(BV_USBCTRL_USBCMD_LR__##e)
#define BFM_USBCTRL_USBCMD_LR_V(v) BM_USBCTRL_USBCMD_LR
#define BP_USBCTRL_USBCMD_ASP0 8
#define BM_USBCTRL_USBCMD_ASP0 0x100
#define BF_USBCTRL_USBCMD_ASP0(v) (((v) & 0x1) << 8)
#define BFM_USBCTRL_USBCMD_ASP0(v) BM_USBCTRL_USBCMD_ASP0
#define BF_USBCTRL_USBCMD_ASP0_V(e) BF_USBCTRL_USBCMD_ASP0(BV_USBCTRL_USBCMD_ASP0__##e)
#define BFM_USBCTRL_USBCMD_ASP0_V(v) BM_USBCTRL_USBCMD_ASP0
#define BP_USBCTRL_USBCMD_ASP1 9
#define BM_USBCTRL_USBCMD_ASP1 0x200
#define BF_USBCTRL_USBCMD_ASP1(v) (((v) & 0x1) << 9)
#define BFM_USBCTRL_USBCMD_ASP1(v) BM_USBCTRL_USBCMD_ASP1
#define BF_USBCTRL_USBCMD_ASP1_V(e) BF_USBCTRL_USBCMD_ASP1(BV_USBCTRL_USBCMD_ASP1__##e)
#define BFM_USBCTRL_USBCMD_ASP1_V(v) BM_USBCTRL_USBCMD_ASP1
#define BP_USBCTRL_USBCMD_ASPE 11
#define BM_USBCTRL_USBCMD_ASPE 0x800
#define BF_USBCTRL_USBCMD_ASPE(v) (((v) & 0x1) << 11)
#define BFM_USBCTRL_USBCMD_ASPE(v) BM_USBCTRL_USBCMD_ASPE
#define BF_USBCTRL_USBCMD_ASPE_V(e) BF_USBCTRL_USBCMD_ASPE(BV_USBCTRL_USBCMD_ASPE__##e)
#define BFM_USBCTRL_USBCMD_ASPE_V(v) BM_USBCTRL_USBCMD_ASPE
#define BP_USBCTRL_USBCMD_FS2 15
#define BM_USBCTRL_USBCMD_FS2 0x8000
#define BF_USBCTRL_USBCMD_FS2(v) (((v) & 0x1) << 15)
#define BFM_USBCTRL_USBCMD_FS2(v) BM_USBCTRL_USBCMD_FS2
#define BF_USBCTRL_USBCMD_FS2_V(e) BF_USBCTRL_USBCMD_FS2(BV_USBCTRL_USBCMD_FS2__##e)
#define BFM_USBCTRL_USBCMD_FS2_V(v) BM_USBCTRL_USBCMD_FS2
#define BP_USBCTRL_USBCMD_ITC 16
#define BM_USBCTRL_USBCMD_ITC 0xff0000
#define BF_USBCTRL_USBCMD_ITC(v) (((v) & 0xff) << 16)
#define BFM_USBCTRL_USBCMD_ITC(v) BM_USBCTRL_USBCMD_ITC
#define BF_USBCTRL_USBCMD_ITC_V(e) BF_USBCTRL_USBCMD_ITC(BV_USBCTRL_USBCMD_ITC__##e)
#define BFM_USBCTRL_USBCMD_ITC_V(v) BM_USBCTRL_USBCMD_ITC
#define HW_USBCTRL_USBSTS HW(USBCTRL_USBSTS)
#define HWA_USBCTRL_USBSTS (0x80080000 + 0x144)
#define HWT_USBCTRL_USBSTS HWIO_32_RW
#define HWN_USBCTRL_USBSTS USBCTRL_USBSTS
#define HWI_USBCTRL_USBSTS
#define BP_USBCTRL_USBSTS_UI 0
#define BM_USBCTRL_USBSTS_UI 0x1
#define BF_USBCTRL_USBSTS_UI(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_USBSTS_UI(v) BM_USBCTRL_USBSTS_UI
#define BF_USBCTRL_USBSTS_UI_V(e) BF_USBCTRL_USBSTS_UI(BV_USBCTRL_USBSTS_UI__##e)
#define BFM_USBCTRL_USBSTS_UI_V(v) BM_USBCTRL_USBSTS_UI
#define BP_USBCTRL_USBSTS_UEI 1
#define BM_USBCTRL_USBSTS_UEI 0x2
#define BF_USBCTRL_USBSTS_UEI(v) (((v) & 0x1) << 1)
#define BFM_USBCTRL_USBSTS_UEI(v) BM_USBCTRL_USBSTS_UEI
#define BF_USBCTRL_USBSTS_UEI_V(e) BF_USBCTRL_USBSTS_UEI(BV_USBCTRL_USBSTS_UEI__##e)
#define BFM_USBCTRL_USBSTS_UEI_V(v) BM_USBCTRL_USBSTS_UEI
#define BP_USBCTRL_USBSTS_PCI 2
#define BM_USBCTRL_USBSTS_PCI 0x4
#define BF_USBCTRL_USBSTS_PCI(v) (((v) & 0x1) << 2)
#define BFM_USBCTRL_USBSTS_PCI(v) BM_USBCTRL_USBSTS_PCI
#define BF_USBCTRL_USBSTS_PCI_V(e) BF_USBCTRL_USBSTS_PCI(BV_USBCTRL_USBSTS_PCI__##e)
#define BFM_USBCTRL_USBSTS_PCI_V(v) BM_USBCTRL_USBSTS_PCI
#define BP_USBCTRL_USBSTS_FRI 3
#define BM_USBCTRL_USBSTS_FRI 0x8
#define BF_USBCTRL_USBSTS_FRI(v) (((v) & 0x1) << 3)
#define BFM_USBCTRL_USBSTS_FRI(v) BM_USBCTRL_USBSTS_FRI
#define BF_USBCTRL_USBSTS_FRI_V(e) BF_USBCTRL_USBSTS_FRI(BV_USBCTRL_USBSTS_FRI__##e)
#define BFM_USBCTRL_USBSTS_FRI_V(v) BM_USBCTRL_USBSTS_FRI
#define BP_USBCTRL_USBSTS_SEI 4
#define BM_USBCTRL_USBSTS_SEI 0x10
#define BF_USBCTRL_USBSTS_SEI(v) (((v) & 0x1) << 4)
#define BFM_USBCTRL_USBSTS_SEI(v) BM_USBCTRL_USBSTS_SEI
#define BF_USBCTRL_USBSTS_SEI_V(e) BF_USBCTRL_USBSTS_SEI(BV_USBCTRL_USBSTS_SEI__##e)
#define BFM_USBCTRL_USBSTS_SEI_V(v) BM_USBCTRL_USBSTS_SEI
#define BP_USBCTRL_USBSTS_AAI 5
#define BM_USBCTRL_USBSTS_AAI 0x20
#define BF_USBCTRL_USBSTS_AAI(v) (((v) & 0x1) << 5)
#define BFM_USBCTRL_USBSTS_AAI(v) BM_USBCTRL_USBSTS_AAI
#define BF_USBCTRL_USBSTS_AAI_V(e) BF_USBCTRL_USBSTS_AAI(BV_USBCTRL_USBSTS_AAI__##e)
#define BFM_USBCTRL_USBSTS_AAI_V(v) BM_USBCTRL_USBSTS_AAI
#define BP_USBCTRL_USBSTS_URI 6
#define BM_USBCTRL_USBSTS_URI 0x40
#define BF_USBCTRL_USBSTS_URI(v) (((v) & 0x1) << 6)
#define BFM_USBCTRL_USBSTS_URI(v) BM_USBCTRL_USBSTS_URI
#define BF_USBCTRL_USBSTS_URI_V(e) BF_USBCTRL_USBSTS_URI(BV_USBCTRL_USBSTS_URI__##e)
#define BFM_USBCTRL_USBSTS_URI_V(v) BM_USBCTRL_USBSTS_URI
#define BP_USBCTRL_USBSTS_SRI 7
#define BM_USBCTRL_USBSTS_SRI 0x80
#define BF_USBCTRL_USBSTS_SRI(v) (((v) & 0x1) << 7)
#define BFM_USBCTRL_USBSTS_SRI(v) BM_USBCTRL_USBSTS_SRI
#define BF_USBCTRL_USBSTS_SRI_V(e) BF_USBCTRL_USBSTS_SRI(BV_USBCTRL_USBSTS_SRI__##e)
#define BFM_USBCTRL_USBSTS_SRI_V(v) BM_USBCTRL_USBSTS_SRI
#define BP_USBCTRL_USBSTS_SLI 8
#define BM_USBCTRL_USBSTS_SLI 0x100
#define BF_USBCTRL_USBSTS_SLI(v) (((v) & 0x1) << 8)
#define BFM_USBCTRL_USBSTS_SLI(v) BM_USBCTRL_USBSTS_SLI
#define BF_USBCTRL_USBSTS_SLI_V(e) BF_USBCTRL_USBSTS_SLI(BV_USBCTRL_USBSTS_SLI__##e)
#define BFM_USBCTRL_USBSTS_SLI_V(v) BM_USBCTRL_USBSTS_SLI
#define BP_USBCTRL_USBSTS_ULPII 10
#define BM_USBCTRL_USBSTS_ULPII 0x400
#define BF_USBCTRL_USBSTS_ULPII(v) (((v) & 0x1) << 10)
#define BFM_USBCTRL_USBSTS_ULPII(v) BM_USBCTRL_USBSTS_ULPII
#define BF_USBCTRL_USBSTS_ULPII_V(e) BF_USBCTRL_USBSTS_ULPII(BV_USBCTRL_USBSTS_ULPII__##e)
#define BFM_USBCTRL_USBSTS_ULPII_V(v) BM_USBCTRL_USBSTS_ULPII
#define BP_USBCTRL_USBSTS_HCH 12
#define BM_USBCTRL_USBSTS_HCH 0x1000
#define BF_USBCTRL_USBSTS_HCH(v) (((v) & 0x1) << 12)
#define BFM_USBCTRL_USBSTS_HCH(v) BM_USBCTRL_USBSTS_HCH
#define BF_USBCTRL_USBSTS_HCH_V(e) BF_USBCTRL_USBSTS_HCH(BV_USBCTRL_USBSTS_HCH__##e)
#define BFM_USBCTRL_USBSTS_HCH_V(v) BM_USBCTRL_USBSTS_HCH
#define BP_USBCTRL_USBSTS_RCL 13
#define BM_USBCTRL_USBSTS_RCL 0x2000
#define BF_USBCTRL_USBSTS_RCL(v) (((v) & 0x1) << 13)
#define BFM_USBCTRL_USBSTS_RCL(v) BM_USBCTRL_USBSTS_RCL
#define BF_USBCTRL_USBSTS_RCL_V(e) BF_USBCTRL_USBSTS_RCL(BV_USBCTRL_USBSTS_RCL__##e)
#define BFM_USBCTRL_USBSTS_RCL_V(v) BM_USBCTRL_USBSTS_RCL
#define BP_USBCTRL_USBSTS_PS 14
#define BM_USBCTRL_USBSTS_PS 0x4000
#define BF_USBCTRL_USBSTS_PS(v) (((v) & 0x1) << 14)
#define BFM_USBCTRL_USBSTS_PS(v) BM_USBCTRL_USBSTS_PS
#define BF_USBCTRL_USBSTS_PS_V(e) BF_USBCTRL_USBSTS_PS(BV_USBCTRL_USBSTS_PS__##e)
#define BFM_USBCTRL_USBSTS_PS_V(v) BM_USBCTRL_USBSTS_PS
#define BP_USBCTRL_USBSTS_AS 15
#define BM_USBCTRL_USBSTS_AS 0x8000
#define BF_USBCTRL_USBSTS_AS(v) (((v) & 0x1) << 15)
#define BFM_USBCTRL_USBSTS_AS(v) BM_USBCTRL_USBSTS_AS
#define BF_USBCTRL_USBSTS_AS_V(e) BF_USBCTRL_USBSTS_AS(BV_USBCTRL_USBSTS_AS__##e)
#define BFM_USBCTRL_USBSTS_AS_V(v) BM_USBCTRL_USBSTS_AS
#define BP_USBCTRL_USBSTS_NAKI 16
#define BM_USBCTRL_USBSTS_NAKI 0x10000
#define BF_USBCTRL_USBSTS_NAKI(v) (((v) & 0x1) << 16)
#define BFM_USBCTRL_USBSTS_NAKI(v) BM_USBCTRL_USBSTS_NAKI
#define BF_USBCTRL_USBSTS_NAKI_V(e) BF_USBCTRL_USBSTS_NAKI(BV_USBCTRL_USBSTS_NAKI__##e)
#define BFM_USBCTRL_USBSTS_NAKI_V(v) BM_USBCTRL_USBSTS_NAKI
#define HW_USBCTRL_USBINTR HW(USBCTRL_USBINTR)
#define HWA_USBCTRL_USBINTR (0x80080000 + 0x148)
#define HWT_USBCTRL_USBINTR HWIO_32_RW
#define HWN_USBCTRL_USBINTR USBCTRL_USBINTR
#define HWI_USBCTRL_USBINTR
#define BP_USBCTRL_USBINTR_UE 0
#define BM_USBCTRL_USBINTR_UE 0x1
#define BF_USBCTRL_USBINTR_UE(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_USBINTR_UE(v) BM_USBCTRL_USBINTR_UE
#define BF_USBCTRL_USBINTR_UE_V(e) BF_USBCTRL_USBINTR_UE(BV_USBCTRL_USBINTR_UE__##e)
#define BFM_USBCTRL_USBINTR_UE_V(v) BM_USBCTRL_USBINTR_UE
#define BP_USBCTRL_USBINTR_UEE 1
#define BM_USBCTRL_USBINTR_UEE 0x2
#define BF_USBCTRL_USBINTR_UEE(v) (((v) & 0x1) << 1)
#define BFM_USBCTRL_USBINTR_UEE(v) BM_USBCTRL_USBINTR_UEE
#define BF_USBCTRL_USBINTR_UEE_V(e) BF_USBCTRL_USBINTR_UEE(BV_USBCTRL_USBINTR_UEE__##e)
#define BFM_USBCTRL_USBINTR_UEE_V(v) BM_USBCTRL_USBINTR_UEE
#define BP_USBCTRL_USBINTR_PCE 2
#define BM_USBCTRL_USBINTR_PCE 0x4
#define BF_USBCTRL_USBINTR_PCE(v) (((v) & 0x1) << 2)
#define BFM_USBCTRL_USBINTR_PCE(v) BM_USBCTRL_USBINTR_PCE
#define BF_USBCTRL_USBINTR_PCE_V(e) BF_USBCTRL_USBINTR_PCE(BV_USBCTRL_USBINTR_PCE__##e)
#define BFM_USBCTRL_USBINTR_PCE_V(v) BM_USBCTRL_USBINTR_PCE
#define BP_USBCTRL_USBINTR_FRE 3
#define BM_USBCTRL_USBINTR_FRE 0x8
#define BF_USBCTRL_USBINTR_FRE(v) (((v) & 0x1) << 3)
#define BFM_USBCTRL_USBINTR_FRE(v) BM_USBCTRL_USBINTR_FRE
#define BF_USBCTRL_USBINTR_FRE_V(e) BF_USBCTRL_USBINTR_FRE(BV_USBCTRL_USBINTR_FRE__##e)
#define BFM_USBCTRL_USBINTR_FRE_V(v) BM_USBCTRL_USBINTR_FRE
#define BP_USBCTRL_USBINTR_SEE 4
#define BM_USBCTRL_USBINTR_SEE 0x10
#define BF_USBCTRL_USBINTR_SEE(v) (((v) & 0x1) << 4)
#define BFM_USBCTRL_USBINTR_SEE(v) BM_USBCTRL_USBINTR_SEE
#define BF_USBCTRL_USBINTR_SEE_V(e) BF_USBCTRL_USBINTR_SEE(BV_USBCTRL_USBINTR_SEE__##e)
#define BFM_USBCTRL_USBINTR_SEE_V(v) BM_USBCTRL_USBINTR_SEE
#define BP_USBCTRL_USBINTR_AAE 5
#define BM_USBCTRL_USBINTR_AAE 0x20
#define BF_USBCTRL_USBINTR_AAE(v) (((v) & 0x1) << 5)
#define BFM_USBCTRL_USBINTR_AAE(v) BM_USBCTRL_USBINTR_AAE
#define BF_USBCTRL_USBINTR_AAE_V(e) BF_USBCTRL_USBINTR_AAE(BV_USBCTRL_USBINTR_AAE__##e)
#define BFM_USBCTRL_USBINTR_AAE_V(v) BM_USBCTRL_USBINTR_AAE
#define BP_USBCTRL_USBINTR_URE 6
#define BM_USBCTRL_USBINTR_URE 0x40
#define BF_USBCTRL_USBINTR_URE(v) (((v) & 0x1) << 6)
#define BFM_USBCTRL_USBINTR_URE(v) BM_USBCTRL_USBINTR_URE
#define BF_USBCTRL_USBINTR_URE_V(e) BF_USBCTRL_USBINTR_URE(BV_USBCTRL_USBINTR_URE__##e)
#define BFM_USBCTRL_USBINTR_URE_V(v) BM_USBCTRL_USBINTR_URE
#define BP_USBCTRL_USBINTR_SRE 7
#define BM_USBCTRL_USBINTR_SRE 0x80
#define BF_USBCTRL_USBINTR_SRE(v) (((v) & 0x1) << 7)
#define BFM_USBCTRL_USBINTR_SRE(v) BM_USBCTRL_USBINTR_SRE
#define BF_USBCTRL_USBINTR_SRE_V(e) BF_USBCTRL_USBINTR_SRE(BV_USBCTRL_USBINTR_SRE__##e)
#define BFM_USBCTRL_USBINTR_SRE_V(v) BM_USBCTRL_USBINTR_SRE
#define BP_USBCTRL_USBINTR_SLE 8
#define BM_USBCTRL_USBINTR_SLE 0x100
#define BF_USBCTRL_USBINTR_SLE(v) (((v) & 0x1) << 8)
#define BFM_USBCTRL_USBINTR_SLE(v) BM_USBCTRL_USBINTR_SLE
#define BF_USBCTRL_USBINTR_SLE_V(e) BF_USBCTRL_USBINTR_SLE(BV_USBCTRL_USBINTR_SLE__##e)
#define BFM_USBCTRL_USBINTR_SLE_V(v) BM_USBCTRL_USBINTR_SLE
#define BP_USBCTRL_USBINTR_ULPIE 10
#define BM_USBCTRL_USBINTR_ULPIE 0x400
#define BF_USBCTRL_USBINTR_ULPIE(v) (((v) & 0x1) << 10)
#define BFM_USBCTRL_USBINTR_ULPIE(v) BM_USBCTRL_USBINTR_ULPIE
#define BF_USBCTRL_USBINTR_ULPIE_V(e) BF_USBCTRL_USBINTR_ULPIE(BV_USBCTRL_USBINTR_ULPIE__##e)
#define BFM_USBCTRL_USBINTR_ULPIE_V(v) BM_USBCTRL_USBINTR_ULPIE
#define BP_USBCTRL_USBINTR_NAKE 16
#define BM_USBCTRL_USBINTR_NAKE 0x10000
#define BF_USBCTRL_USBINTR_NAKE(v) (((v) & 0x1) << 16)
#define BFM_USBCTRL_USBINTR_NAKE(v) BM_USBCTRL_USBINTR_NAKE
#define BF_USBCTRL_USBINTR_NAKE_V(e) BF_USBCTRL_USBINTR_NAKE(BV_USBCTRL_USBINTR_NAKE__##e)
#define BFM_USBCTRL_USBINTR_NAKE_V(v) BM_USBCTRL_USBINTR_NAKE
#define HW_USBCTRL_FRINDEX HW(USBCTRL_FRINDEX)
#define HWA_USBCTRL_FRINDEX (0x80080000 + 0x14c)
#define HWT_USBCTRL_FRINDEX HWIO_32_RW
#define HWN_USBCTRL_FRINDEX USBCTRL_FRINDEX
#define HWI_USBCTRL_FRINDEX
#define BP_USBCTRL_FRINDEX_LISTINDEX 3
#define BM_USBCTRL_FRINDEX_LISTINDEX 0x3ff8
#define BF_USBCTRL_FRINDEX_LISTINDEX(v) (((v) & 0x7ff) << 3)
#define BFM_USBCTRL_FRINDEX_LISTINDEX(v) BM_USBCTRL_FRINDEX_LISTINDEX
#define BF_USBCTRL_FRINDEX_LISTINDEX_V(e) BF_USBCTRL_FRINDEX_LISTINDEX(BV_USBCTRL_FRINDEX_LISTINDEX__##e)
#define BFM_USBCTRL_FRINDEX_LISTINDEX_V(v) BM_USBCTRL_FRINDEX_LISTINDEX
#define BP_USBCTRL_FRINDEX_UINDEX 0
#define BM_USBCTRL_FRINDEX_UINDEX 0x7
#define BF_USBCTRL_FRINDEX_UINDEX(v) (((v) & 0x7) << 0)
#define BFM_USBCTRL_FRINDEX_UINDEX(v) BM_USBCTRL_FRINDEX_UINDEX
#define BF_USBCTRL_FRINDEX_UINDEX_V(e) BF_USBCTRL_FRINDEX_UINDEX(BV_USBCTRL_FRINDEX_UINDEX__##e)
#define BFM_USBCTRL_FRINDEX_UINDEX_V(v) BM_USBCTRL_FRINDEX_UINDEX
#define HW_USBCTRL_CTRLDSSEGMENT HW(USBCTRL_CTRLDSSEGMENT)
#define HWA_USBCTRL_CTRLDSSEGMENT (0x80080000 + 0x150)
#define HWT_USBCTRL_CTRLDSSEGMENT HWIO_32_RW
#define HWN_USBCTRL_CTRLDSSEGMENT USBCTRL_CTRLDSSEGMENT
#define HWI_USBCTRL_CTRLDSSEGMENT
#define BP_USBCTRL_CTRLDSSEGMENT_EMPTY 0
#define BM_USBCTRL_CTRLDSSEGMENT_EMPTY 0xffffffff
#define BF_USBCTRL_CTRLDSSEGMENT_EMPTY(v) (((v) & 0xffffffff) << 0)
#define BFM_USBCTRL_CTRLDSSEGMENT_EMPTY(v) BM_USBCTRL_CTRLDSSEGMENT_EMPTY
#define BF_USBCTRL_CTRLDSSEGMENT_EMPTY_V(e) BF_USBCTRL_CTRLDSSEGMENT_EMPTY(BV_USBCTRL_CTRLDSSEGMENT_EMPTY__##e)
#define BFM_USBCTRL_CTRLDSSEGMENT_EMPTY_V(v) BM_USBCTRL_CTRLDSSEGMENT_EMPTY
#define HW_USBCTRL_PERIODICLISTBASE HW(USBCTRL_PERIODICLISTBASE)
#define HWA_USBCTRL_PERIODICLISTBASE (0x80080000 + 0x154)
#define HWT_USBCTRL_PERIODICLISTBASE HWIO_32_RW
#define HWN_USBCTRL_PERIODICLISTBASE USBCTRL_PERIODICLISTBASE
#define HWI_USBCTRL_PERIODICLISTBASE
#define BP_USBCTRL_PERIODICLISTBASE_BASEADDR 12
#define BM_USBCTRL_PERIODICLISTBASE_BASEADDR 0xfffff000
#define BF_USBCTRL_PERIODICLISTBASE_BASEADDR(v) (((v) & 0xfffff) << 12)
#define BFM_USBCTRL_PERIODICLISTBASE_BASEADDR(v) BM_USBCTRL_PERIODICLISTBASE_BASEADDR
#define BF_USBCTRL_PERIODICLISTBASE_BASEADDR_V(e) BF_USBCTRL_PERIODICLISTBASE_BASEADDR(BV_USBCTRL_PERIODICLISTBASE_BASEADDR__##e)
#define BFM_USBCTRL_PERIODICLISTBASE_BASEADDR_V(v) BM_USBCTRL_PERIODICLISTBASE_BASEADDR
#define HW_USBCTRL_ASYNCLISTADDR HW(USBCTRL_ASYNCLISTADDR)
#define HWA_USBCTRL_ASYNCLISTADDR (0x80080000 + 0x158)
#define HWT_USBCTRL_ASYNCLISTADDR HWIO_32_RW
#define HWN_USBCTRL_ASYNCLISTADDR USBCTRL_ASYNCLISTADDR
#define HWI_USBCTRL_ASYNCLISTADDR
#define BP_USBCTRL_ASYNCLISTADDR_ASYBASE 5
#define BM_USBCTRL_ASYNCLISTADDR_ASYBASE 0xffffffe0
#define BF_USBCTRL_ASYNCLISTADDR_ASYBASE(v) (((v) & 0x7ffffff) << 5)
#define BFM_USBCTRL_ASYNCLISTADDR_ASYBASE(v) BM_USBCTRL_ASYNCLISTADDR_ASYBASE
#define BF_USBCTRL_ASYNCLISTADDR_ASYBASE_V(e) BF_USBCTRL_ASYNCLISTADDR_ASYBASE(BV_USBCTRL_ASYNCLISTADDR_ASYBASE__##e)
#define BFM_USBCTRL_ASYNCLISTADDR_ASYBASE_V(v) BM_USBCTRL_ASYNCLISTADDR_ASYBASE
#define HW_USBCTRL_TTCTRL HW(USBCTRL_TTCTRL)
#define HWA_USBCTRL_TTCTRL (0x80080000 + 0x15c)
#define HWT_USBCTRL_TTCTRL HWIO_32_RW
#define HWN_USBCTRL_TTCTRL USBCTRL_TTCTRL
#define HWI_USBCTRL_TTCTRL
#define BP_USBCTRL_TTCTRL_TTHA 24
#define BM_USBCTRL_TTCTRL_TTHA 0x7f000000
#define BF_USBCTRL_TTCTRL_TTHA(v) (((v) & 0x7f) << 24)
#define BFM_USBCTRL_TTCTRL_TTHA(v) BM_USBCTRL_TTCTRL_TTHA
#define BF_USBCTRL_TTCTRL_TTHA_V(e) BF_USBCTRL_TTCTRL_TTHA(BV_USBCTRL_TTCTRL_TTHA__##e)
#define BFM_USBCTRL_TTCTRL_TTHA_V(v) BM_USBCTRL_TTCTRL_TTHA
#define HW_USBCTRL_BURSTSIZE HW(USBCTRL_BURSTSIZE)
#define HWA_USBCTRL_BURSTSIZE (0x80080000 + 0x160)
#define HWT_USBCTRL_BURSTSIZE HWIO_32_RW
#define HWN_USBCTRL_BURSTSIZE USBCTRL_BURSTSIZE
#define HWI_USBCTRL_BURSTSIZE
#define BP_USBCTRL_BURSTSIZE_TX 8
#define BM_USBCTRL_BURSTSIZE_TX 0xff00
#define BF_USBCTRL_BURSTSIZE_TX(v) (((v) & 0xff) << 8)
#define BFM_USBCTRL_BURSTSIZE_TX(v) BM_USBCTRL_BURSTSIZE_TX
#define BF_USBCTRL_BURSTSIZE_TX_V(e) BF_USBCTRL_BURSTSIZE_TX(BV_USBCTRL_BURSTSIZE_TX__##e)
#define BFM_USBCTRL_BURSTSIZE_TX_V(v) BM_USBCTRL_BURSTSIZE_TX
#define BP_USBCTRL_BURSTSIZE_RX 0
#define BM_USBCTRL_BURSTSIZE_RX 0xff
#define BF_USBCTRL_BURSTSIZE_RX(v) (((v) & 0xff) << 0)
#define BFM_USBCTRL_BURSTSIZE_RX(v) BM_USBCTRL_BURSTSIZE_RX
#define BF_USBCTRL_BURSTSIZE_RX_V(e) BF_USBCTRL_BURSTSIZE_RX(BV_USBCTRL_BURSTSIZE_RX__##e)
#define BFM_USBCTRL_BURSTSIZE_RX_V(v) BM_USBCTRL_BURSTSIZE_RX
#define HW_USBCTRL_TXFILLTUNING HW(USBCTRL_TXFILLTUNING)
#define HWA_USBCTRL_TXFILLTUNING (0x80080000 + 0x164)
#define HWT_USBCTRL_TXFILLTUNING HWIO_32_RW
#define HWN_USBCTRL_TXFILLTUNING USBCTRL_TXFILLTUNING
#define HWI_USBCTRL_TXFILLTUNING
#define BP_USBCTRL_TXFILLTUNING_TXFIFOTHRES 16
#define BM_USBCTRL_TXFILLTUNING_TXFIFOTHRES 0x3f0000
#define BF_USBCTRL_TXFILLTUNING_TXFIFOTHRES(v) (((v) & 0x3f) << 16)
#define BFM_USBCTRL_TXFILLTUNING_TXFIFOTHRES(v) BM_USBCTRL_TXFILLTUNING_TXFIFOTHRES
#define BF_USBCTRL_TXFILLTUNING_TXFIFOTHRES_V(e) BF_USBCTRL_TXFILLTUNING_TXFIFOTHRES(BV_USBCTRL_TXFILLTUNING_TXFIFOTHRES__##e)
#define BFM_USBCTRL_TXFILLTUNING_TXFIFOTHRES_V(v) BM_USBCTRL_TXFILLTUNING_TXFIFOTHRES
#define BP_USBCTRL_TXFILLTUNING_TXSCHEALTH 8
#define BM_USBCTRL_TXFILLTUNING_TXSCHEALTH 0x1f00
#define BF_USBCTRL_TXFILLTUNING_TXSCHEALTH(v) (((v) & 0x1f) << 8)
#define BFM_USBCTRL_TXFILLTUNING_TXSCHEALTH(v) BM_USBCTRL_TXFILLTUNING_TXSCHEALTH
#define BF_USBCTRL_TXFILLTUNING_TXSCHEALTH_V(e) BF_USBCTRL_TXFILLTUNING_TXSCHEALTH(BV_USBCTRL_TXFILLTUNING_TXSCHEALTH__##e)
#define BFM_USBCTRL_TXFILLTUNING_TXSCHEALTH_V(v) BM_USBCTRL_TXFILLTUNING_TXSCHEALTH
#define BP_USBCTRL_TXFILLTUNING_TXSCHOH 0
#define BM_USBCTRL_TXFILLTUNING_TXSCHOH 0xff
#define BF_USBCTRL_TXFILLTUNING_TXSCHOH(v) (((v) & 0xff) << 0)
#define BFM_USBCTRL_TXFILLTUNING_TXSCHOH(v) BM_USBCTRL_TXFILLTUNING_TXSCHOH
#define BF_USBCTRL_TXFILLTUNING_TXSCHOH_V(e) BF_USBCTRL_TXFILLTUNING_TXSCHOH(BV_USBCTRL_TXFILLTUNING_TXSCHOH__##e)
#define BFM_USBCTRL_TXFILLTUNING_TXSCHOH_V(v) BM_USBCTRL_TXFILLTUNING_TXSCHOH
#define HW_USBCTRL_TXTTFILLTUNING HW(USBCTRL_TXTTFILLTUNING)
#define HWA_USBCTRL_TXTTFILLTUNING (0x80080000 + 0x168)
#define HWT_USBCTRL_TXTTFILLTUNING HWIO_32_RW
#define HWN_USBCTRL_TXTTFILLTUNING USBCTRL_TXTTFILLTUNING
#define HWI_USBCTRL_TXTTFILLTUNING
#define BP_USBCTRL_TXTTFILLTUNING_EMPTY 0
#define BM_USBCTRL_TXTTFILLTUNING_EMPTY 0xffffffff
#define BF_USBCTRL_TXTTFILLTUNING_EMPTY(v) (((v) & 0xffffffff) << 0)
#define BFM_USBCTRL_TXTTFILLTUNING_EMPTY(v) BM_USBCTRL_TXTTFILLTUNING_EMPTY
#define BF_USBCTRL_TXTTFILLTUNING_EMPTY_V(e) BF_USBCTRL_TXTTFILLTUNING_EMPTY(BV_USBCTRL_TXTTFILLTUNING_EMPTY__##e)
#define BFM_USBCTRL_TXTTFILLTUNING_EMPTY_V(v) BM_USBCTRL_TXTTFILLTUNING_EMPTY
#define HW_USBCTRL_ULPI HW(USBCTRL_ULPI)
#define HWA_USBCTRL_ULPI (0x80080000 + 0x170)
#define HWT_USBCTRL_ULPI HWIO_32_RW
#define HWN_USBCTRL_ULPI USBCTRL_ULPI
#define HWI_USBCTRL_ULPI
#define BP_USBCTRL_ULPI_WAKEUP 31
#define BM_USBCTRL_ULPI_WAKEUP 0x80000000
#define BF_USBCTRL_ULPI_WAKEUP(v) (((v) & 0x1) << 31)
#define BFM_USBCTRL_ULPI_WAKEUP(v) BM_USBCTRL_ULPI_WAKEUP
#define BF_USBCTRL_ULPI_WAKEUP_V(e) BF_USBCTRL_ULPI_WAKEUP(BV_USBCTRL_ULPI_WAKEUP__##e)
#define BFM_USBCTRL_ULPI_WAKEUP_V(v) BM_USBCTRL_ULPI_WAKEUP
#define BP_USBCTRL_ULPI_RUN 30
#define BM_USBCTRL_ULPI_RUN 0x40000000
#define BF_USBCTRL_ULPI_RUN(v) (((v) & 0x1) << 30)
#define BFM_USBCTRL_ULPI_RUN(v) BM_USBCTRL_ULPI_RUN
#define BF_USBCTRL_ULPI_RUN_V(e) BF_USBCTRL_ULPI_RUN(BV_USBCTRL_ULPI_RUN__##e)
#define BFM_USBCTRL_ULPI_RUN_V(v) BM_USBCTRL_ULPI_RUN
#define BP_USBCTRL_ULPI_RDWR 29
#define BM_USBCTRL_ULPI_RDWR 0x20000000
#define BF_USBCTRL_ULPI_RDWR(v) (((v) & 0x1) << 29)
#define BFM_USBCTRL_ULPI_RDWR(v) BM_USBCTRL_ULPI_RDWR
#define BF_USBCTRL_ULPI_RDWR_V(e) BF_USBCTRL_ULPI_RDWR(BV_USBCTRL_ULPI_RDWR__##e)
#define BFM_USBCTRL_ULPI_RDWR_V(v) BM_USBCTRL_ULPI_RDWR
#define BP_USBCTRL_ULPI_ERROR 28
#define BM_USBCTRL_ULPI_ERROR 0x10000000
#define BF_USBCTRL_ULPI_ERROR(v) (((v) & 0x1) << 28)
#define BFM_USBCTRL_ULPI_ERROR(v) BM_USBCTRL_ULPI_ERROR
#define BF_USBCTRL_ULPI_ERROR_V(e) BF_USBCTRL_ULPI_ERROR(BV_USBCTRL_ULPI_ERROR__##e)
#define BFM_USBCTRL_ULPI_ERROR_V(v) BM_USBCTRL_ULPI_ERROR
#define BP_USBCTRL_ULPI_SYNC 27
#define BM_USBCTRL_ULPI_SYNC 0x8000000
#define BF_USBCTRL_ULPI_SYNC(v) (((v) & 0x1) << 27)
#define BFM_USBCTRL_ULPI_SYNC(v) BM_USBCTRL_ULPI_SYNC
#define BF_USBCTRL_ULPI_SYNC_V(e) BF_USBCTRL_ULPI_SYNC(BV_USBCTRL_ULPI_SYNC__##e)
#define BFM_USBCTRL_ULPI_SYNC_V(v) BM_USBCTRL_ULPI_SYNC
#define BP_USBCTRL_ULPI_PORT 24
#define BM_USBCTRL_ULPI_PORT 0x7000000
#define BF_USBCTRL_ULPI_PORT(v) (((v) & 0x7) << 24)
#define BFM_USBCTRL_ULPI_PORT(v) BM_USBCTRL_ULPI_PORT
#define BF_USBCTRL_ULPI_PORT_V(e) BF_USBCTRL_ULPI_PORT(BV_USBCTRL_ULPI_PORT__##e)
#define BFM_USBCTRL_ULPI_PORT_V(v) BM_USBCTRL_ULPI_PORT
#define BP_USBCTRL_ULPI_ADDR 16
#define BM_USBCTRL_ULPI_ADDR 0xff0000
#define BF_USBCTRL_ULPI_ADDR(v) (((v) & 0xff) << 16)
#define BFM_USBCTRL_ULPI_ADDR(v) BM_USBCTRL_ULPI_ADDR
#define BF_USBCTRL_ULPI_ADDR_V(e) BF_USBCTRL_ULPI_ADDR(BV_USBCTRL_ULPI_ADDR__##e)
#define BFM_USBCTRL_ULPI_ADDR_V(v) BM_USBCTRL_ULPI_ADDR
#define BP_USBCTRL_ULPI_DATARD 8
#define BM_USBCTRL_ULPI_DATARD 0xff00
#define BF_USBCTRL_ULPI_DATARD(v) (((v) & 0xff) << 8)
#define BFM_USBCTRL_ULPI_DATARD(v) BM_USBCTRL_ULPI_DATARD
#define BF_USBCTRL_ULPI_DATARD_V(e) BF_USBCTRL_ULPI_DATARD(BV_USBCTRL_ULPI_DATARD__##e)
#define BFM_USBCTRL_ULPI_DATARD_V(v) BM_USBCTRL_ULPI_DATARD
#define BP_USBCTRL_ULPI_DATAWR 0
#define BM_USBCTRL_ULPI_DATAWR 0xff
#define BF_USBCTRL_ULPI_DATAWR(v) (((v) & 0xff) << 0)
#define BFM_USBCTRL_ULPI_DATAWR(v) BM_USBCTRL_ULPI_DATAWR
#define BF_USBCTRL_ULPI_DATAWR_V(e) BF_USBCTRL_ULPI_DATAWR(BV_USBCTRL_ULPI_DATAWR__##e)
#define BFM_USBCTRL_ULPI_DATAWR_V(v) BM_USBCTRL_ULPI_DATAWR
#define HW_USBCTRL_VFRAME HW(USBCTRL_VFRAME)
#define HWA_USBCTRL_VFRAME (0x80080000 + 0x174)
#define HWT_USBCTRL_VFRAME HWIO_32_RW
#define HWN_USBCTRL_VFRAME USBCTRL_VFRAME
#define HWI_USBCTRL_VFRAME
#define BP_USBCTRL_VFRAME_EMPTY 0
#define BM_USBCTRL_VFRAME_EMPTY 0xffffffff
#define BF_USBCTRL_VFRAME_EMPTY(v) (((v) & 0xffffffff) << 0)
#define BFM_USBCTRL_VFRAME_EMPTY(v) BM_USBCTRL_VFRAME_EMPTY
#define BF_USBCTRL_VFRAME_EMPTY_V(e) BF_USBCTRL_VFRAME_EMPTY(BV_USBCTRL_VFRAME_EMPTY__##e)
#define BFM_USBCTRL_VFRAME_EMPTY_V(v) BM_USBCTRL_VFRAME_EMPTY
#define HW_USBCTRL_EPNAK HW(USBCTRL_EPNAK)
#define HWA_USBCTRL_EPNAK (0x80080000 + 0x178)
#define HWT_USBCTRL_EPNAK HWIO_32_RW
#define HWN_USBCTRL_EPNAK USBCTRL_EPNAK
#define HWI_USBCTRL_EPNAK
#define BP_USBCTRL_EPNAK_EPTN 16
#define BM_USBCTRL_EPNAK_EPTN 0xffff0000
#define BF_USBCTRL_EPNAK_EPTN(v) (((v) & 0xffff) << 16)
#define BFM_USBCTRL_EPNAK_EPTN(v) BM_USBCTRL_EPNAK_EPTN
#define BF_USBCTRL_EPNAK_EPTN_V(e) BF_USBCTRL_EPNAK_EPTN(BV_USBCTRL_EPNAK_EPTN__##e)
#define BFM_USBCTRL_EPNAK_EPTN_V(v) BM_USBCTRL_EPNAK_EPTN
#define BP_USBCTRL_EPNAK_EPRN 0
#define BM_USBCTRL_EPNAK_EPRN 0xffff
#define BF_USBCTRL_EPNAK_EPRN(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_EPNAK_EPRN(v) BM_USBCTRL_EPNAK_EPRN
#define BF_USBCTRL_EPNAK_EPRN_V(e) BF_USBCTRL_EPNAK_EPRN(BV_USBCTRL_EPNAK_EPRN__##e)
#define BFM_USBCTRL_EPNAK_EPRN_V(v) BM_USBCTRL_EPNAK_EPRN
#define HW_USBCTRL_EPNAKEN HW(USBCTRL_EPNAKEN)
#define HWA_USBCTRL_EPNAKEN (0x80080000 + 0x17c)
#define HWT_USBCTRL_EPNAKEN HWIO_32_RW
#define HWN_USBCTRL_EPNAKEN USBCTRL_EPNAKEN
#define HWI_USBCTRL_EPNAKEN
#define BP_USBCTRL_EPNAKEN_EPTNE 16
#define BM_USBCTRL_EPNAKEN_EPTNE 0xffff0000
#define BF_USBCTRL_EPNAKEN_EPTNE(v) (((v) & 0xffff) << 16)
#define BFM_USBCTRL_EPNAKEN_EPTNE(v) BM_USBCTRL_EPNAKEN_EPTNE
#define BF_USBCTRL_EPNAKEN_EPTNE_V(e) BF_USBCTRL_EPNAKEN_EPTNE(BV_USBCTRL_EPNAKEN_EPTNE__##e)
#define BFM_USBCTRL_EPNAKEN_EPTNE_V(v) BM_USBCTRL_EPNAKEN_EPTNE
#define BP_USBCTRL_EPNAKEN_EPRNE 0
#define BM_USBCTRL_EPNAKEN_EPRNE 0xffff
#define BF_USBCTRL_EPNAKEN_EPRNE(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_EPNAKEN_EPRNE(v) BM_USBCTRL_EPNAKEN_EPRNE
#define BF_USBCTRL_EPNAKEN_EPRNE_V(e) BF_USBCTRL_EPNAKEN_EPRNE(BV_USBCTRL_EPNAKEN_EPRNE__##e)
#define BFM_USBCTRL_EPNAKEN_EPRNE_V(v) BM_USBCTRL_EPNAKEN_EPRNE
#define HW_USBCTRL_CONFIGFLAG HW(USBCTRL_CONFIGFLAG)
#define HWA_USBCTRL_CONFIGFLAG (0x80080000 + 0x180)
#define HWT_USBCTRL_CONFIGFLAG HWIO_32_RW
#define HWN_USBCTRL_CONFIGFLAG USBCTRL_CONFIGFLAG
#define HWI_USBCTRL_CONFIGFLAG
#define BP_USBCTRL_CONFIGFLAG_FLAG 0
#define BM_USBCTRL_CONFIGFLAG_FLAG 0x1
#define BF_USBCTRL_CONFIGFLAG_FLAG(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_CONFIGFLAG_FLAG(v) BM_USBCTRL_CONFIGFLAG_FLAG
#define BF_USBCTRL_CONFIGFLAG_FLAG_V(e) BF_USBCTRL_CONFIGFLAG_FLAG(BV_USBCTRL_CONFIGFLAG_FLAG__##e)
#define BFM_USBCTRL_CONFIGFLAG_FLAG_V(v) BM_USBCTRL_CONFIGFLAG_FLAG
#define HW_USBCTRL_PORTSC1 HW(USBCTRL_PORTSC1)
#define HWA_USBCTRL_PORTSC1 (0x80080000 + 0x184)
#define HWT_USBCTRL_PORTSC1 HWIO_32_RW
#define HWN_USBCTRL_PORTSC1 USBCTRL_PORTSC1
#define HWI_USBCTRL_PORTSC1
#define BP_USBCTRL_PORTSC1_PTS 30
#define BM_USBCTRL_PORTSC1_PTS 0xc0000000
#define BV_USBCTRL_PORTSC1_PTS__UTMI 0x0
#define BV_USBCTRL_PORTSC1_PTS__PHIL 0x1
#define BV_USBCTRL_PORTSC1_PTS__ULPI 0x2
#define BV_USBCTRL_PORTSC1_PTS__SERIAL 0x3
#define BF_USBCTRL_PORTSC1_PTS(v) (((v) & 0x3) << 30)
#define BFM_USBCTRL_PORTSC1_PTS(v) BM_USBCTRL_PORTSC1_PTS
#define BF_USBCTRL_PORTSC1_PTS_V(e) BF_USBCTRL_PORTSC1_PTS(BV_USBCTRL_PORTSC1_PTS__##e)
#define BFM_USBCTRL_PORTSC1_PTS_V(v) BM_USBCTRL_PORTSC1_PTS
#define BP_USBCTRL_PORTSC1_STS 29
#define BM_USBCTRL_PORTSC1_STS 0x20000000
#define BF_USBCTRL_PORTSC1_STS(v) (((v) & 0x1) << 29)
#define BFM_USBCTRL_PORTSC1_STS(v) BM_USBCTRL_PORTSC1_STS
#define BF_USBCTRL_PORTSC1_STS_V(e) BF_USBCTRL_PORTSC1_STS(BV_USBCTRL_PORTSC1_STS__##e)
#define BFM_USBCTRL_PORTSC1_STS_V(v) BM_USBCTRL_PORTSC1_STS
#define BP_USBCTRL_PORTSC1_PTW 28
#define BM_USBCTRL_PORTSC1_PTW 0x10000000
#define BF_USBCTRL_PORTSC1_PTW(v) (((v) & 0x1) << 28)
#define BFM_USBCTRL_PORTSC1_PTW(v) BM_USBCTRL_PORTSC1_PTW
#define BF_USBCTRL_PORTSC1_PTW_V(e) BF_USBCTRL_PORTSC1_PTW(BV_USBCTRL_PORTSC1_PTW__##e)
#define BFM_USBCTRL_PORTSC1_PTW_V(v) BM_USBCTRL_PORTSC1_PTW
#define BP_USBCTRL_PORTSC1_PSPD 26
#define BM_USBCTRL_PORTSC1_PSPD 0xc000000
#define BV_USBCTRL_PORTSC1_PSPD__FULL 0x0
#define BV_USBCTRL_PORTSC1_PSPD__LO 0x1
#define BV_USBCTRL_PORTSC1_PSPD__HI 0x2
#define BF_USBCTRL_PORTSC1_PSPD(v) (((v) & 0x3) << 26)
#define BFM_USBCTRL_PORTSC1_PSPD(v) BM_USBCTRL_PORTSC1_PSPD
#define BF_USBCTRL_PORTSC1_PSPD_V(e) BF_USBCTRL_PORTSC1_PSPD(BV_USBCTRL_PORTSC1_PSPD__##e)
#define BFM_USBCTRL_PORTSC1_PSPD_V(v) BM_USBCTRL_PORTSC1_PSPD
#define BP_USBCTRL_PORTSC1_PFSC 24
#define BM_USBCTRL_PORTSC1_PFSC 0x1000000
#define BF_USBCTRL_PORTSC1_PFSC(v) (((v) & 0x1) << 24)
#define BFM_USBCTRL_PORTSC1_PFSC(v) BM_USBCTRL_PORTSC1_PFSC
#define BF_USBCTRL_PORTSC1_PFSC_V(e) BF_USBCTRL_PORTSC1_PFSC(BV_USBCTRL_PORTSC1_PFSC__##e)
#define BFM_USBCTRL_PORTSC1_PFSC_V(v) BM_USBCTRL_PORTSC1_PFSC
#define BP_USBCTRL_PORTSC1_PHCD 23
#define BM_USBCTRL_PORTSC1_PHCD 0x800000
#define BF_USBCTRL_PORTSC1_PHCD(v) (((v) & 0x1) << 23)
#define BFM_USBCTRL_PORTSC1_PHCD(v) BM_USBCTRL_PORTSC1_PHCD
#define BF_USBCTRL_PORTSC1_PHCD_V(e) BF_USBCTRL_PORTSC1_PHCD(BV_USBCTRL_PORTSC1_PHCD__##e)
#define BFM_USBCTRL_PORTSC1_PHCD_V(v) BM_USBCTRL_PORTSC1_PHCD
#define BP_USBCTRL_PORTSC1_WKOC 22
#define BM_USBCTRL_PORTSC1_WKOC 0x400000
#define BF_USBCTRL_PORTSC1_WKOC(v) (((v) & 0x1) << 22)
#define BFM_USBCTRL_PORTSC1_WKOC(v) BM_USBCTRL_PORTSC1_WKOC
#define BF_USBCTRL_PORTSC1_WKOC_V(e) BF_USBCTRL_PORTSC1_WKOC(BV_USBCTRL_PORTSC1_WKOC__##e)
#define BFM_USBCTRL_PORTSC1_WKOC_V(v) BM_USBCTRL_PORTSC1_WKOC
#define BP_USBCTRL_PORTSC1_WKDS 21
#define BM_USBCTRL_PORTSC1_WKDS 0x200000
#define BF_USBCTRL_PORTSC1_WKDS(v) (((v) & 0x1) << 21)
#define BFM_USBCTRL_PORTSC1_WKDS(v) BM_USBCTRL_PORTSC1_WKDS
#define BF_USBCTRL_PORTSC1_WKDS_V(e) BF_USBCTRL_PORTSC1_WKDS(BV_USBCTRL_PORTSC1_WKDS__##e)
#define BFM_USBCTRL_PORTSC1_WKDS_V(v) BM_USBCTRL_PORTSC1_WKDS
#define BP_USBCTRL_PORTSC1_WKCN 20
#define BM_USBCTRL_PORTSC1_WKCN 0x100000
#define BF_USBCTRL_PORTSC1_WKCN(v) (((v) & 0x1) << 20)
#define BFM_USBCTRL_PORTSC1_WKCN(v) BM_USBCTRL_PORTSC1_WKCN
#define BF_USBCTRL_PORTSC1_WKCN_V(e) BF_USBCTRL_PORTSC1_WKCN(BV_USBCTRL_PORTSC1_WKCN__##e)
#define BFM_USBCTRL_PORTSC1_WKCN_V(v) BM_USBCTRL_PORTSC1_WKCN
#define BP_USBCTRL_PORTSC1_PTC 16
#define BM_USBCTRL_PORTSC1_PTC 0xf0000
#define BV_USBCTRL_PORTSC1_PTC__DISABLE 0x0
#define BV_USBCTRL_PORTSC1_PTC__J 0x1
#define BV_USBCTRL_PORTSC1_PTC__K 0x2
#define BV_USBCTRL_PORTSC1_PTC__SE0orNAK 0x3
#define BV_USBCTRL_PORTSC1_PTC__Packet 0x4
#define BV_USBCTRL_PORTSC1_PTC__ForceEnableHS 0x5
#define BV_USBCTRL_PORTSC1_PTC__ForceEnableFS 0x6
#define BV_USBCTRL_PORTSC1_PTC__ForceEnableLS 0x7
#define BF_USBCTRL_PORTSC1_PTC(v) (((v) & 0xf) << 16)
#define BFM_USBCTRL_PORTSC1_PTC(v) BM_USBCTRL_PORTSC1_PTC
#define BF_USBCTRL_PORTSC1_PTC_V(e) BF_USBCTRL_PORTSC1_PTC(BV_USBCTRL_PORTSC1_PTC__##e)
#define BFM_USBCTRL_PORTSC1_PTC_V(v) BM_USBCTRL_PORTSC1_PTC
#define BP_USBCTRL_PORTSC1_PIC 14
#define BM_USBCTRL_PORTSC1_PIC 0xc000
#define BV_USBCTRL_PORTSC1_PIC__OFF 0x0
#define BV_USBCTRL_PORTSC1_PIC__AMBER 0x1
#define BV_USBCTRL_PORTSC1_PIC__GREEN 0x2
#define BV_USBCTRL_PORTSC1_PIC__UNDEF 0x3
#define BF_USBCTRL_PORTSC1_PIC(v) (((v) & 0x3) << 14)
#define BFM_USBCTRL_PORTSC1_PIC(v) BM_USBCTRL_PORTSC1_PIC
#define BF_USBCTRL_PORTSC1_PIC_V(e) BF_USBCTRL_PORTSC1_PIC(BV_USBCTRL_PORTSC1_PIC__##e)
#define BFM_USBCTRL_PORTSC1_PIC_V(v) BM_USBCTRL_PORTSC1_PIC
#define BP_USBCTRL_PORTSC1_PO 13
#define BM_USBCTRL_PORTSC1_PO 0x2000
#define BF_USBCTRL_PORTSC1_PO(v) (((v) & 0x1) << 13)
#define BFM_USBCTRL_PORTSC1_PO(v) BM_USBCTRL_PORTSC1_PO
#define BF_USBCTRL_PORTSC1_PO_V(e) BF_USBCTRL_PORTSC1_PO(BV_USBCTRL_PORTSC1_PO__##e)
#define BFM_USBCTRL_PORTSC1_PO_V(v) BM_USBCTRL_PORTSC1_PO
#define BP_USBCTRL_PORTSC1_PP 12
#define BM_USBCTRL_PORTSC1_PP 0x1000
#define BF_USBCTRL_PORTSC1_PP(v) (((v) & 0x1) << 12)
#define BFM_USBCTRL_PORTSC1_PP(v) BM_USBCTRL_PORTSC1_PP
#define BF_USBCTRL_PORTSC1_PP_V(e) BF_USBCTRL_PORTSC1_PP(BV_USBCTRL_PORTSC1_PP__##e)
#define BFM_USBCTRL_PORTSC1_PP_V(v) BM_USBCTRL_PORTSC1_PP
#define BP_USBCTRL_PORTSC1_LS 10
#define BM_USBCTRL_PORTSC1_LS 0xc00
#define BV_USBCTRL_PORTSC1_LS__SE0 0x0
#define BV_USBCTRL_PORTSC1_LS__K 0x1
#define BV_USBCTRL_PORTSC1_LS__J 0x2
#define BF_USBCTRL_PORTSC1_LS(v) (((v) & 0x3) << 10)
#define BFM_USBCTRL_PORTSC1_LS(v) BM_USBCTRL_PORTSC1_LS
#define BF_USBCTRL_PORTSC1_LS_V(e) BF_USBCTRL_PORTSC1_LS(BV_USBCTRL_PORTSC1_LS__##e)
#define BFM_USBCTRL_PORTSC1_LS_V(v) BM_USBCTRL_PORTSC1_LS
#define BP_USBCTRL_PORTSC1_HSP 9
#define BM_USBCTRL_PORTSC1_HSP 0x200
#define BF_USBCTRL_PORTSC1_HSP(v) (((v) & 0x1) << 9)
#define BFM_USBCTRL_PORTSC1_HSP(v) BM_USBCTRL_PORTSC1_HSP
#define BF_USBCTRL_PORTSC1_HSP_V(e) BF_USBCTRL_PORTSC1_HSP(BV_USBCTRL_PORTSC1_HSP__##e)
#define BFM_USBCTRL_PORTSC1_HSP_V(v) BM_USBCTRL_PORTSC1_HSP
#define BP_USBCTRL_PORTSC1_PR 8
#define BM_USBCTRL_PORTSC1_PR 0x100
#define BF_USBCTRL_PORTSC1_PR(v) (((v) & 0x1) << 8)
#define BFM_USBCTRL_PORTSC1_PR(v) BM_USBCTRL_PORTSC1_PR
#define BF_USBCTRL_PORTSC1_PR_V(e) BF_USBCTRL_PORTSC1_PR(BV_USBCTRL_PORTSC1_PR__##e)
#define BFM_USBCTRL_PORTSC1_PR_V(v) BM_USBCTRL_PORTSC1_PR
#define BP_USBCTRL_PORTSC1_SUSP 7
#define BM_USBCTRL_PORTSC1_SUSP 0x80
#define BF_USBCTRL_PORTSC1_SUSP(v) (((v) & 0x1) << 7)
#define BFM_USBCTRL_PORTSC1_SUSP(v) BM_USBCTRL_PORTSC1_SUSP
#define BF_USBCTRL_PORTSC1_SUSP_V(e) BF_USBCTRL_PORTSC1_SUSP(BV_USBCTRL_PORTSC1_SUSP__##e)
#define BFM_USBCTRL_PORTSC1_SUSP_V(v) BM_USBCTRL_PORTSC1_SUSP
#define BP_USBCTRL_PORTSC1_FPR 6
#define BM_USBCTRL_PORTSC1_FPR 0x40
#define BF_USBCTRL_PORTSC1_FPR(v) (((v) & 0x1) << 6)
#define BFM_USBCTRL_PORTSC1_FPR(v) BM_USBCTRL_PORTSC1_FPR
#define BF_USBCTRL_PORTSC1_FPR_V(e) BF_USBCTRL_PORTSC1_FPR(BV_USBCTRL_PORTSC1_FPR__##e)
#define BFM_USBCTRL_PORTSC1_FPR_V(v) BM_USBCTRL_PORTSC1_FPR
#define BP_USBCTRL_PORTSC1_OCC 5
#define BM_USBCTRL_PORTSC1_OCC 0x20
#define BF_USBCTRL_PORTSC1_OCC(v) (((v) & 0x1) << 5)
#define BFM_USBCTRL_PORTSC1_OCC(v) BM_USBCTRL_PORTSC1_OCC
#define BF_USBCTRL_PORTSC1_OCC_V(e) BF_USBCTRL_PORTSC1_OCC(BV_USBCTRL_PORTSC1_OCC__##e)
#define BFM_USBCTRL_PORTSC1_OCC_V(v) BM_USBCTRL_PORTSC1_OCC
#define BP_USBCTRL_PORTSC1_OCA 4
#define BM_USBCTRL_PORTSC1_OCA 0x10
#define BF_USBCTRL_PORTSC1_OCA(v) (((v) & 0x1) << 4)
#define BFM_USBCTRL_PORTSC1_OCA(v) BM_USBCTRL_PORTSC1_OCA
#define BF_USBCTRL_PORTSC1_OCA_V(e) BF_USBCTRL_PORTSC1_OCA(BV_USBCTRL_PORTSC1_OCA__##e)
#define BFM_USBCTRL_PORTSC1_OCA_V(v) BM_USBCTRL_PORTSC1_OCA
#define BP_USBCTRL_PORTSC1_PEC 3
#define BM_USBCTRL_PORTSC1_PEC 0x8
#define BF_USBCTRL_PORTSC1_PEC(v) (((v) & 0x1) << 3)
#define BFM_USBCTRL_PORTSC1_PEC(v) BM_USBCTRL_PORTSC1_PEC
#define BF_USBCTRL_PORTSC1_PEC_V(e) BF_USBCTRL_PORTSC1_PEC(BV_USBCTRL_PORTSC1_PEC__##e)
#define BFM_USBCTRL_PORTSC1_PEC_V(v) BM_USBCTRL_PORTSC1_PEC
#define BP_USBCTRL_PORTSC1_PE 2
#define BM_USBCTRL_PORTSC1_PE 0x4
#define BF_USBCTRL_PORTSC1_PE(v) (((v) & 0x1) << 2)
#define BFM_USBCTRL_PORTSC1_PE(v) BM_USBCTRL_PORTSC1_PE
#define BF_USBCTRL_PORTSC1_PE_V(e) BF_USBCTRL_PORTSC1_PE(BV_USBCTRL_PORTSC1_PE__##e)
#define BFM_USBCTRL_PORTSC1_PE_V(v) BM_USBCTRL_PORTSC1_PE
#define BP_USBCTRL_PORTSC1_CSC 1
#define BM_USBCTRL_PORTSC1_CSC 0x2
#define BF_USBCTRL_PORTSC1_CSC(v) (((v) & 0x1) << 1)
#define BFM_USBCTRL_PORTSC1_CSC(v) BM_USBCTRL_PORTSC1_CSC
#define BF_USBCTRL_PORTSC1_CSC_V(e) BF_USBCTRL_PORTSC1_CSC(BV_USBCTRL_PORTSC1_CSC__##e)
#define BFM_USBCTRL_PORTSC1_CSC_V(v) BM_USBCTRL_PORTSC1_CSC
#define BP_USBCTRL_PORTSC1_CCS 0
#define BM_USBCTRL_PORTSC1_CCS 0x1
#define BF_USBCTRL_PORTSC1_CCS(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_PORTSC1_CCS(v) BM_USBCTRL_PORTSC1_CCS
#define BF_USBCTRL_PORTSC1_CCS_V(e) BF_USBCTRL_PORTSC1_CCS(BV_USBCTRL_PORTSC1_CCS__##e)
#define BFM_USBCTRL_PORTSC1_CCS_V(v) BM_USBCTRL_PORTSC1_CCS
#define HW_USBCTRL_OTGSC HW(USBCTRL_OTGSC)
#define HWA_USBCTRL_OTGSC (0x80080000 + 0x1a4)
#define HWT_USBCTRL_OTGSC HWIO_32_RW
#define HWN_USBCTRL_OTGSC USBCTRL_OTGSC
#define HWI_USBCTRL_OTGSC
#define BP_USBCTRL_OTGSC_DPIE 30
#define BM_USBCTRL_OTGSC_DPIE 0x40000000
#define BF_USBCTRL_OTGSC_DPIE(v) (((v) & 0x1) << 30)
#define BFM_USBCTRL_OTGSC_DPIE(v) BM_USBCTRL_OTGSC_DPIE
#define BF_USBCTRL_OTGSC_DPIE_V(e) BF_USBCTRL_OTGSC_DPIE(BV_USBCTRL_OTGSC_DPIE__##e)
#define BFM_USBCTRL_OTGSC_DPIE_V(v) BM_USBCTRL_OTGSC_DPIE
#define BP_USBCTRL_OTGSC_ONEMSE 29
#define BM_USBCTRL_OTGSC_ONEMSE 0x20000000
#define BF_USBCTRL_OTGSC_ONEMSE(v) (((v) & 0x1) << 29)
#define BFM_USBCTRL_OTGSC_ONEMSE(v) BM_USBCTRL_OTGSC_ONEMSE
#define BF_USBCTRL_OTGSC_ONEMSE_V(e) BF_USBCTRL_OTGSC_ONEMSE(BV_USBCTRL_OTGSC_ONEMSE__##e)
#define BFM_USBCTRL_OTGSC_ONEMSE_V(v) BM_USBCTRL_OTGSC_ONEMSE
#define BP_USBCTRL_OTGSC_BSEIE 28
#define BM_USBCTRL_OTGSC_BSEIE 0x10000000
#define BF_USBCTRL_OTGSC_BSEIE(v) (((v) & 0x1) << 28)
#define BFM_USBCTRL_OTGSC_BSEIE(v) BM_USBCTRL_OTGSC_BSEIE
#define BF_USBCTRL_OTGSC_BSEIE_V(e) BF_USBCTRL_OTGSC_BSEIE(BV_USBCTRL_OTGSC_BSEIE__##e)
#define BFM_USBCTRL_OTGSC_BSEIE_V(v) BM_USBCTRL_OTGSC_BSEIE
#define BP_USBCTRL_OTGSC_BSVIE 27
#define BM_USBCTRL_OTGSC_BSVIE 0x8000000
#define BF_USBCTRL_OTGSC_BSVIE(v) (((v) & 0x1) << 27)
#define BFM_USBCTRL_OTGSC_BSVIE(v) BM_USBCTRL_OTGSC_BSVIE
#define BF_USBCTRL_OTGSC_BSVIE_V(e) BF_USBCTRL_OTGSC_BSVIE(BV_USBCTRL_OTGSC_BSVIE__##e)
#define BFM_USBCTRL_OTGSC_BSVIE_V(v) BM_USBCTRL_OTGSC_BSVIE
#define BP_USBCTRL_OTGSC_ASVIE 26
#define BM_USBCTRL_OTGSC_ASVIE 0x4000000
#define BF_USBCTRL_OTGSC_ASVIE(v) (((v) & 0x1) << 26)
#define BFM_USBCTRL_OTGSC_ASVIE(v) BM_USBCTRL_OTGSC_ASVIE
#define BF_USBCTRL_OTGSC_ASVIE_V(e) BF_USBCTRL_OTGSC_ASVIE(BV_USBCTRL_OTGSC_ASVIE__##e)
#define BFM_USBCTRL_OTGSC_ASVIE_V(v) BM_USBCTRL_OTGSC_ASVIE
#define BP_USBCTRL_OTGSC_AVVIE 25
#define BM_USBCTRL_OTGSC_AVVIE 0x2000000
#define BF_USBCTRL_OTGSC_AVVIE(v) (((v) & 0x1) << 25)
#define BFM_USBCTRL_OTGSC_AVVIE(v) BM_USBCTRL_OTGSC_AVVIE
#define BF_USBCTRL_OTGSC_AVVIE_V(e) BF_USBCTRL_OTGSC_AVVIE(BV_USBCTRL_OTGSC_AVVIE__##e)
#define BFM_USBCTRL_OTGSC_AVVIE_V(v) BM_USBCTRL_OTGSC_AVVIE
#define BP_USBCTRL_OTGSC_IDIE 24
#define BM_USBCTRL_OTGSC_IDIE 0x1000000
#define BF_USBCTRL_OTGSC_IDIE(v) (((v) & 0x1) << 24)
#define BFM_USBCTRL_OTGSC_IDIE(v) BM_USBCTRL_OTGSC_IDIE
#define BF_USBCTRL_OTGSC_IDIE_V(e) BF_USBCTRL_OTGSC_IDIE(BV_USBCTRL_OTGSC_IDIE__##e)
#define BFM_USBCTRL_OTGSC_IDIE_V(v) BM_USBCTRL_OTGSC_IDIE
#define BP_USBCTRL_OTGSC_DPIS 22
#define BM_USBCTRL_OTGSC_DPIS 0x400000
#define BF_USBCTRL_OTGSC_DPIS(v) (((v) & 0x1) << 22)
#define BFM_USBCTRL_OTGSC_DPIS(v) BM_USBCTRL_OTGSC_DPIS
#define BF_USBCTRL_OTGSC_DPIS_V(e) BF_USBCTRL_OTGSC_DPIS(BV_USBCTRL_OTGSC_DPIS__##e)
#define BFM_USBCTRL_OTGSC_DPIS_V(v) BM_USBCTRL_OTGSC_DPIS
#define BP_USBCTRL_OTGSC_ONEMSS 21
#define BM_USBCTRL_OTGSC_ONEMSS 0x200000
#define BF_USBCTRL_OTGSC_ONEMSS(v) (((v) & 0x1) << 21)
#define BFM_USBCTRL_OTGSC_ONEMSS(v) BM_USBCTRL_OTGSC_ONEMSS
#define BF_USBCTRL_OTGSC_ONEMSS_V(e) BF_USBCTRL_OTGSC_ONEMSS(BV_USBCTRL_OTGSC_ONEMSS__##e)
#define BFM_USBCTRL_OTGSC_ONEMSS_V(v) BM_USBCTRL_OTGSC_ONEMSS
#define BP_USBCTRL_OTGSC_BSEIS 20
#define BM_USBCTRL_OTGSC_BSEIS 0x100000
#define BF_USBCTRL_OTGSC_BSEIS(v) (((v) & 0x1) << 20)
#define BFM_USBCTRL_OTGSC_BSEIS(v) BM_USBCTRL_OTGSC_BSEIS
#define BF_USBCTRL_OTGSC_BSEIS_V(e) BF_USBCTRL_OTGSC_BSEIS(BV_USBCTRL_OTGSC_BSEIS__##e)
#define BFM_USBCTRL_OTGSC_BSEIS_V(v) BM_USBCTRL_OTGSC_BSEIS
#define BP_USBCTRL_OTGSC_BSVIS 19
#define BM_USBCTRL_OTGSC_BSVIS 0x80000
#define BF_USBCTRL_OTGSC_BSVIS(v) (((v) & 0x1) << 19)
#define BFM_USBCTRL_OTGSC_BSVIS(v) BM_USBCTRL_OTGSC_BSVIS
#define BF_USBCTRL_OTGSC_BSVIS_V(e) BF_USBCTRL_OTGSC_BSVIS(BV_USBCTRL_OTGSC_BSVIS__##e)
#define BFM_USBCTRL_OTGSC_BSVIS_V(v) BM_USBCTRL_OTGSC_BSVIS
#define BP_USBCTRL_OTGSC_ASVIS 18
#define BM_USBCTRL_OTGSC_ASVIS 0x40000
#define BF_USBCTRL_OTGSC_ASVIS(v) (((v) & 0x1) << 18)
#define BFM_USBCTRL_OTGSC_ASVIS(v) BM_USBCTRL_OTGSC_ASVIS
#define BF_USBCTRL_OTGSC_ASVIS_V(e) BF_USBCTRL_OTGSC_ASVIS(BV_USBCTRL_OTGSC_ASVIS__##e)
#define BFM_USBCTRL_OTGSC_ASVIS_V(v) BM_USBCTRL_OTGSC_ASVIS
#define BP_USBCTRL_OTGSC_AVVIS 17
#define BM_USBCTRL_OTGSC_AVVIS 0x20000
#define BF_USBCTRL_OTGSC_AVVIS(v) (((v) & 0x1) << 17)
#define BFM_USBCTRL_OTGSC_AVVIS(v) BM_USBCTRL_OTGSC_AVVIS
#define BF_USBCTRL_OTGSC_AVVIS_V(e) BF_USBCTRL_OTGSC_AVVIS(BV_USBCTRL_OTGSC_AVVIS__##e)
#define BFM_USBCTRL_OTGSC_AVVIS_V(v) BM_USBCTRL_OTGSC_AVVIS
#define BP_USBCTRL_OTGSC_IDIS 16
#define BM_USBCTRL_OTGSC_IDIS 0x10000
#define BF_USBCTRL_OTGSC_IDIS(v) (((v) & 0x1) << 16)
#define BFM_USBCTRL_OTGSC_IDIS(v) BM_USBCTRL_OTGSC_IDIS
#define BF_USBCTRL_OTGSC_IDIS_V(e) BF_USBCTRL_OTGSC_IDIS(BV_USBCTRL_OTGSC_IDIS__##e)
#define BFM_USBCTRL_OTGSC_IDIS_V(v) BM_USBCTRL_OTGSC_IDIS
#define BP_USBCTRL_OTGSC_DPS 14
#define BM_USBCTRL_OTGSC_DPS 0x4000
#define BF_USBCTRL_OTGSC_DPS(v) (((v) & 0x1) << 14)
#define BFM_USBCTRL_OTGSC_DPS(v) BM_USBCTRL_OTGSC_DPS
#define BF_USBCTRL_OTGSC_DPS_V(e) BF_USBCTRL_OTGSC_DPS(BV_USBCTRL_OTGSC_DPS__##e)
#define BFM_USBCTRL_OTGSC_DPS_V(v) BM_USBCTRL_OTGSC_DPS
#define BP_USBCTRL_OTGSC_ONEMST 13
#define BM_USBCTRL_OTGSC_ONEMST 0x2000
#define BF_USBCTRL_OTGSC_ONEMST(v) (((v) & 0x1) << 13)
#define BFM_USBCTRL_OTGSC_ONEMST(v) BM_USBCTRL_OTGSC_ONEMST
#define BF_USBCTRL_OTGSC_ONEMST_V(e) BF_USBCTRL_OTGSC_ONEMST(BV_USBCTRL_OTGSC_ONEMST__##e)
#define BFM_USBCTRL_OTGSC_ONEMST_V(v) BM_USBCTRL_OTGSC_ONEMST
#define BP_USBCTRL_OTGSC_BSE 12
#define BM_USBCTRL_OTGSC_BSE 0x1000
#define BF_USBCTRL_OTGSC_BSE(v) (((v) & 0x1) << 12)
#define BFM_USBCTRL_OTGSC_BSE(v) BM_USBCTRL_OTGSC_BSE
#define BF_USBCTRL_OTGSC_BSE_V(e) BF_USBCTRL_OTGSC_BSE(BV_USBCTRL_OTGSC_BSE__##e)
#define BFM_USBCTRL_OTGSC_BSE_V(v) BM_USBCTRL_OTGSC_BSE
#define BP_USBCTRL_OTGSC_BSV 11
#define BM_USBCTRL_OTGSC_BSV 0x800
#define BF_USBCTRL_OTGSC_BSV(v) (((v) & 0x1) << 11)
#define BFM_USBCTRL_OTGSC_BSV(v) BM_USBCTRL_OTGSC_BSV
#define BF_USBCTRL_OTGSC_BSV_V(e) BF_USBCTRL_OTGSC_BSV(BV_USBCTRL_OTGSC_BSV__##e)
#define BFM_USBCTRL_OTGSC_BSV_V(v) BM_USBCTRL_OTGSC_BSV
#define BP_USBCTRL_OTGSC_ASV 10
#define BM_USBCTRL_OTGSC_ASV 0x400
#define BF_USBCTRL_OTGSC_ASV(v) (((v) & 0x1) << 10)
#define BFM_USBCTRL_OTGSC_ASV(v) BM_USBCTRL_OTGSC_ASV
#define BF_USBCTRL_OTGSC_ASV_V(e) BF_USBCTRL_OTGSC_ASV(BV_USBCTRL_OTGSC_ASV__##e)
#define BFM_USBCTRL_OTGSC_ASV_V(v) BM_USBCTRL_OTGSC_ASV
#define BP_USBCTRL_OTGSC_AVV 9
#define BM_USBCTRL_OTGSC_AVV 0x200
#define BF_USBCTRL_OTGSC_AVV(v) (((v) & 0x1) << 9)
#define BFM_USBCTRL_OTGSC_AVV(v) BM_USBCTRL_OTGSC_AVV
#define BF_USBCTRL_OTGSC_AVV_V(e) BF_USBCTRL_OTGSC_AVV(BV_USBCTRL_OTGSC_AVV__##e)
#define BFM_USBCTRL_OTGSC_AVV_V(v) BM_USBCTRL_OTGSC_AVV
#define BP_USBCTRL_OTGSC_ID 8
#define BM_USBCTRL_OTGSC_ID 0x100
#define BF_USBCTRL_OTGSC_ID(v) (((v) & 0x1) << 8)
#define BFM_USBCTRL_OTGSC_ID(v) BM_USBCTRL_OTGSC_ID
#define BF_USBCTRL_OTGSC_ID_V(e) BF_USBCTRL_OTGSC_ID(BV_USBCTRL_OTGSC_ID__##e)
#define BFM_USBCTRL_OTGSC_ID_V(v) BM_USBCTRL_OTGSC_ID
#define BP_USBCTRL_OTGSC_HABA 7
#define BM_USBCTRL_OTGSC_HABA 0x80
#define BF_USBCTRL_OTGSC_HABA(v) (((v) & 0x1) << 7)
#define BFM_USBCTRL_OTGSC_HABA(v) BM_USBCTRL_OTGSC_HABA
#define BF_USBCTRL_OTGSC_HABA_V(e) BF_USBCTRL_OTGSC_HABA(BV_USBCTRL_OTGSC_HABA__##e)
#define BFM_USBCTRL_OTGSC_HABA_V(v) BM_USBCTRL_OTGSC_HABA
#define BP_USBCTRL_OTGSC_HADP 6
#define BM_USBCTRL_OTGSC_HADP 0x40
#define BF_USBCTRL_OTGSC_HADP(v) (((v) & 0x1) << 6)
#define BFM_USBCTRL_OTGSC_HADP(v) BM_USBCTRL_OTGSC_HADP
#define BF_USBCTRL_OTGSC_HADP_V(e) BF_USBCTRL_OTGSC_HADP(BV_USBCTRL_OTGSC_HADP__##e)
#define BFM_USBCTRL_OTGSC_HADP_V(v) BM_USBCTRL_OTGSC_HADP
#define BP_USBCTRL_OTGSC_IDPU 5
#define BM_USBCTRL_OTGSC_IDPU 0x20
#define BF_USBCTRL_OTGSC_IDPU(v) (((v) & 0x1) << 5)
#define BFM_USBCTRL_OTGSC_IDPU(v) BM_USBCTRL_OTGSC_IDPU
#define BF_USBCTRL_OTGSC_IDPU_V(e) BF_USBCTRL_OTGSC_IDPU(BV_USBCTRL_OTGSC_IDPU__##e)
#define BFM_USBCTRL_OTGSC_IDPU_V(v) BM_USBCTRL_OTGSC_IDPU
#define BP_USBCTRL_OTGSC_DP 4
#define BM_USBCTRL_OTGSC_DP 0x10
#define BF_USBCTRL_OTGSC_DP(v) (((v) & 0x1) << 4)
#define BFM_USBCTRL_OTGSC_DP(v) BM_USBCTRL_OTGSC_DP
#define BF_USBCTRL_OTGSC_DP_V(e) BF_USBCTRL_OTGSC_DP(BV_USBCTRL_OTGSC_DP__##e)
#define BFM_USBCTRL_OTGSC_DP_V(v) BM_USBCTRL_OTGSC_DP
#define BP_USBCTRL_OTGSC_OT 3
#define BM_USBCTRL_OTGSC_OT 0x8
#define BF_USBCTRL_OTGSC_OT(v) (((v) & 0x1) << 3)
#define BFM_USBCTRL_OTGSC_OT(v) BM_USBCTRL_OTGSC_OT
#define BF_USBCTRL_OTGSC_OT_V(e) BF_USBCTRL_OTGSC_OT(BV_USBCTRL_OTGSC_OT__##e)
#define BFM_USBCTRL_OTGSC_OT_V(v) BM_USBCTRL_OTGSC_OT
#define BP_USBCTRL_OTGSC_HAAR 2
#define BM_USBCTRL_OTGSC_HAAR 0x4
#define BF_USBCTRL_OTGSC_HAAR(v) (((v) & 0x1) << 2)
#define BFM_USBCTRL_OTGSC_HAAR(v) BM_USBCTRL_OTGSC_HAAR
#define BF_USBCTRL_OTGSC_HAAR_V(e) BF_USBCTRL_OTGSC_HAAR(BV_USBCTRL_OTGSC_HAAR__##e)
#define BFM_USBCTRL_OTGSC_HAAR_V(v) BM_USBCTRL_OTGSC_HAAR
#define BP_USBCTRL_OTGSC_VC 1
#define BM_USBCTRL_OTGSC_VC 0x2
#define BF_USBCTRL_OTGSC_VC(v) (((v) & 0x1) << 1)
#define BFM_USBCTRL_OTGSC_VC(v) BM_USBCTRL_OTGSC_VC
#define BF_USBCTRL_OTGSC_VC_V(e) BF_USBCTRL_OTGSC_VC(BV_USBCTRL_OTGSC_VC__##e)
#define BFM_USBCTRL_OTGSC_VC_V(v) BM_USBCTRL_OTGSC_VC
#define BP_USBCTRL_OTGSC_VD 0
#define BM_USBCTRL_OTGSC_VD 0x1
#define BF_USBCTRL_OTGSC_VD(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_OTGSC_VD(v) BM_USBCTRL_OTGSC_VD
#define BF_USBCTRL_OTGSC_VD_V(e) BF_USBCTRL_OTGSC_VD(BV_USBCTRL_OTGSC_VD__##e)
#define BFM_USBCTRL_OTGSC_VD_V(v) BM_USBCTRL_OTGSC_VD
#define HW_USBCTRL_USBMODE HW(USBCTRL_USBMODE)
#define HWA_USBCTRL_USBMODE (0x80080000 + 0x1a8)
#define HWT_USBCTRL_USBMODE HWIO_32_RW
#define HWN_USBCTRL_USBMODE USBCTRL_USBMODE
#define HWI_USBCTRL_USBMODE
#define BP_USBCTRL_USBMODE_SDIS 4
#define BM_USBCTRL_USBMODE_SDIS 0x10
#define BF_USBCTRL_USBMODE_SDIS(v) (((v) & 0x1) << 4)
#define BFM_USBCTRL_USBMODE_SDIS(v) BM_USBCTRL_USBMODE_SDIS
#define BF_USBCTRL_USBMODE_SDIS_V(e) BF_USBCTRL_USBMODE_SDIS(BV_USBCTRL_USBMODE_SDIS__##e)
#define BFM_USBCTRL_USBMODE_SDIS_V(v) BM_USBCTRL_USBMODE_SDIS
#define BP_USBCTRL_USBMODE_SLOM 3
#define BM_USBCTRL_USBMODE_SLOM 0x8
#define BF_USBCTRL_USBMODE_SLOM(v) (((v) & 0x1) << 3)
#define BFM_USBCTRL_USBMODE_SLOM(v) BM_USBCTRL_USBMODE_SLOM
#define BF_USBCTRL_USBMODE_SLOM_V(e) BF_USBCTRL_USBMODE_SLOM(BV_USBCTRL_USBMODE_SLOM__##e)
#define BFM_USBCTRL_USBMODE_SLOM_V(v) BM_USBCTRL_USBMODE_SLOM
#define BP_USBCTRL_USBMODE_ES 2
#define BM_USBCTRL_USBMODE_ES 0x4
#define BF_USBCTRL_USBMODE_ES(v) (((v) & 0x1) << 2)
#define BFM_USBCTRL_USBMODE_ES(v) BM_USBCTRL_USBMODE_ES
#define BF_USBCTRL_USBMODE_ES_V(e) BF_USBCTRL_USBMODE_ES(BV_USBCTRL_USBMODE_ES__##e)
#define BFM_USBCTRL_USBMODE_ES_V(v) BM_USBCTRL_USBMODE_ES
#define BP_USBCTRL_USBMODE_CM 0
#define BM_USBCTRL_USBMODE_CM 0x3
#define BV_USBCTRL_USBMODE_CM__IDLE 0x0
#define BV_USBCTRL_USBMODE_CM__DEVICE 0x2
#define BV_USBCTRL_USBMODE_CM__HOST 0x3
#define BF_USBCTRL_USBMODE_CM(v) (((v) & 0x3) << 0)
#define BFM_USBCTRL_USBMODE_CM(v) BM_USBCTRL_USBMODE_CM
#define BF_USBCTRL_USBMODE_CM_V(e) BF_USBCTRL_USBMODE_CM(BV_USBCTRL_USBMODE_CM__##e)
#define BFM_USBCTRL_USBMODE_CM_V(v) BM_USBCTRL_USBMODE_CM
#define HW_USBCTRL_ENDPTSETUPSTAT HW(USBCTRL_ENDPTSETUPSTAT)
#define HWA_USBCTRL_ENDPTSETUPSTAT (0x80080000 + 0x1ac)
#define HWT_USBCTRL_ENDPTSETUPSTAT HWIO_32_RW
#define HWN_USBCTRL_ENDPTSETUPSTAT USBCTRL_ENDPTSETUPSTAT
#define HWI_USBCTRL_ENDPTSETUPSTAT
#define BP_USBCTRL_ENDPTSETUPSTAT_STS 0
#define BM_USBCTRL_ENDPTSETUPSTAT_STS 0xffff
#define BF_USBCTRL_ENDPTSETUPSTAT_STS(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_ENDPTSETUPSTAT_STS(v) BM_USBCTRL_ENDPTSETUPSTAT_STS
#define BF_USBCTRL_ENDPTSETUPSTAT_STS_V(e) BF_USBCTRL_ENDPTSETUPSTAT_STS(BV_USBCTRL_ENDPTSETUPSTAT_STS__##e)
#define BFM_USBCTRL_ENDPTSETUPSTAT_STS_V(v) BM_USBCTRL_ENDPTSETUPSTAT_STS
#define HW_USBCTRL_ENDPTPRIME HW(USBCTRL_ENDPTPRIME)
#define HWA_USBCTRL_ENDPTPRIME (0x80080000 + 0x1b0)
#define HWT_USBCTRL_ENDPTPRIME HWIO_32_RW
#define HWN_USBCTRL_ENDPTPRIME USBCTRL_ENDPTPRIME
#define HWI_USBCTRL_ENDPTPRIME
#define BP_USBCTRL_ENDPTPRIME_PETB 16
#define BM_USBCTRL_ENDPTPRIME_PETB 0xffff0000
#define BF_USBCTRL_ENDPTPRIME_PETB(v) (((v) & 0xffff) << 16)
#define BFM_USBCTRL_ENDPTPRIME_PETB(v) BM_USBCTRL_ENDPTPRIME_PETB
#define BF_USBCTRL_ENDPTPRIME_PETB_V(e) BF_USBCTRL_ENDPTPRIME_PETB(BV_USBCTRL_ENDPTPRIME_PETB__##e)
#define BFM_USBCTRL_ENDPTPRIME_PETB_V(v) BM_USBCTRL_ENDPTPRIME_PETB
#define BP_USBCTRL_ENDPTPRIME_PERB 0
#define BM_USBCTRL_ENDPTPRIME_PERB 0xffff
#define BF_USBCTRL_ENDPTPRIME_PERB(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_ENDPTPRIME_PERB(v) BM_USBCTRL_ENDPTPRIME_PERB
#define BF_USBCTRL_ENDPTPRIME_PERB_V(e) BF_USBCTRL_ENDPTPRIME_PERB(BV_USBCTRL_ENDPTPRIME_PERB__##e)
#define BFM_USBCTRL_ENDPTPRIME_PERB_V(v) BM_USBCTRL_ENDPTPRIME_PERB
#define HW_USBCTRL_ENDPTFLUSH HW(USBCTRL_ENDPTFLUSH)
#define HWA_USBCTRL_ENDPTFLUSH (0x80080000 + 0x1b4)
#define HWT_USBCTRL_ENDPTFLUSH HWIO_32_RW
#define HWN_USBCTRL_ENDPTFLUSH USBCTRL_ENDPTFLUSH
#define HWI_USBCTRL_ENDPTFLUSH
#define BP_USBCTRL_ENDPTFLUSH_FETB 16
#define BM_USBCTRL_ENDPTFLUSH_FETB 0xffff0000
#define BF_USBCTRL_ENDPTFLUSH_FETB(v) (((v) & 0xffff) << 16)
#define BFM_USBCTRL_ENDPTFLUSH_FETB(v) BM_USBCTRL_ENDPTFLUSH_FETB
#define BF_USBCTRL_ENDPTFLUSH_FETB_V(e) BF_USBCTRL_ENDPTFLUSH_FETB(BV_USBCTRL_ENDPTFLUSH_FETB__##e)
#define BFM_USBCTRL_ENDPTFLUSH_FETB_V(v) BM_USBCTRL_ENDPTFLUSH_FETB
#define BP_USBCTRL_ENDPTFLUSH_FERB 0
#define BM_USBCTRL_ENDPTFLUSH_FERB 0xffff
#define BF_USBCTRL_ENDPTFLUSH_FERB(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_ENDPTFLUSH_FERB(v) BM_USBCTRL_ENDPTFLUSH_FERB
#define BF_USBCTRL_ENDPTFLUSH_FERB_V(e) BF_USBCTRL_ENDPTFLUSH_FERB(BV_USBCTRL_ENDPTFLUSH_FERB__##e)
#define BFM_USBCTRL_ENDPTFLUSH_FERB_V(v) BM_USBCTRL_ENDPTFLUSH_FERB
#define HW_USBCTRL_ENDPTSTATUS HW(USBCTRL_ENDPTSTATUS)
#define HWA_USBCTRL_ENDPTSTATUS (0x80080000 + 0x1b8)
#define HWT_USBCTRL_ENDPTSTATUS HWIO_32_RW
#define HWN_USBCTRL_ENDPTSTATUS USBCTRL_ENDPTSTATUS
#define HWI_USBCTRL_ENDPTSTATUS
#define BP_USBCTRL_ENDPTSTATUS_ETBR 16
#define BM_USBCTRL_ENDPTSTATUS_ETBR 0xffff0000
#define BF_USBCTRL_ENDPTSTATUS_ETBR(v) (((v) & 0xffff) << 16)
#define BFM_USBCTRL_ENDPTSTATUS_ETBR(v) BM_USBCTRL_ENDPTSTATUS_ETBR
#define BF_USBCTRL_ENDPTSTATUS_ETBR_V(e) BF_USBCTRL_ENDPTSTATUS_ETBR(BV_USBCTRL_ENDPTSTATUS_ETBR__##e)
#define BFM_USBCTRL_ENDPTSTATUS_ETBR_V(v) BM_USBCTRL_ENDPTSTATUS_ETBR
#define BP_USBCTRL_ENDPTSTATUS_ERBR 0
#define BM_USBCTRL_ENDPTSTATUS_ERBR 0xffff
#define BF_USBCTRL_ENDPTSTATUS_ERBR(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_ENDPTSTATUS_ERBR(v) BM_USBCTRL_ENDPTSTATUS_ERBR
#define BF_USBCTRL_ENDPTSTATUS_ERBR_V(e) BF_USBCTRL_ENDPTSTATUS_ERBR(BV_USBCTRL_ENDPTSTATUS_ERBR__##e)
#define BFM_USBCTRL_ENDPTSTATUS_ERBR_V(v) BM_USBCTRL_ENDPTSTATUS_ERBR
#define HW_USBCTRL_ENDPTCOMPLETE HW(USBCTRL_ENDPTCOMPLETE)
#define HWA_USBCTRL_ENDPTCOMPLETE (0x80080000 + 0x1bc)
#define HWT_USBCTRL_ENDPTCOMPLETE HWIO_32_RW
#define HWN_USBCTRL_ENDPTCOMPLETE USBCTRL_ENDPTCOMPLETE
#define HWI_USBCTRL_ENDPTCOMPLETE
#define BP_USBCTRL_ENDPTCOMPLETE_ETCE 16
#define BM_USBCTRL_ENDPTCOMPLETE_ETCE 0xffff0000
#define BF_USBCTRL_ENDPTCOMPLETE_ETCE(v) (((v) & 0xffff) << 16)
#define BFM_USBCTRL_ENDPTCOMPLETE_ETCE(v) BM_USBCTRL_ENDPTCOMPLETE_ETCE
#define BF_USBCTRL_ENDPTCOMPLETE_ETCE_V(e) BF_USBCTRL_ENDPTCOMPLETE_ETCE(BV_USBCTRL_ENDPTCOMPLETE_ETCE__##e)
#define BFM_USBCTRL_ENDPTCOMPLETE_ETCE_V(v) BM_USBCTRL_ENDPTCOMPLETE_ETCE
#define BP_USBCTRL_ENDPTCOMPLETE_ERCE 0
#define BM_USBCTRL_ENDPTCOMPLETE_ERCE 0xffff
#define BF_USBCTRL_ENDPTCOMPLETE_ERCE(v) (((v) & 0xffff) << 0)
#define BFM_USBCTRL_ENDPTCOMPLETE_ERCE(v) BM_USBCTRL_ENDPTCOMPLETE_ERCE
#define BF_USBCTRL_ENDPTCOMPLETE_ERCE_V(e) BF_USBCTRL_ENDPTCOMPLETE_ERCE(BV_USBCTRL_ENDPTCOMPLETE_ERCE__##e)
#define BFM_USBCTRL_ENDPTCOMPLETE_ERCE_V(v) BM_USBCTRL_ENDPTCOMPLETE_ERCE
#define HW_USBCTRL_ENDPTCTRLn(_n1) HW(USBCTRL_ENDPTCTRLn(_n1))
#define HWA_USBCTRL_ENDPTCTRLn(_n1) (0x80080000 + 0x1c0 + (_n1) * 0x4)
#define HWT_USBCTRL_ENDPTCTRLn(_n1) HWIO_32_RW
#define HWN_USBCTRL_ENDPTCTRLn(_n1) USBCTRL_ENDPTCTRLn
#define HWI_USBCTRL_ENDPTCTRLn(_n1) (_n1)
#define BP_USBCTRL_ENDPTCTRLn_TXE 23
#define BM_USBCTRL_ENDPTCTRLn_TXE 0x800000
#define BF_USBCTRL_ENDPTCTRLn_TXE(v) (((v) & 0x1) << 23)
#define BFM_USBCTRL_ENDPTCTRLn_TXE(v) BM_USBCTRL_ENDPTCTRLn_TXE
#define BF_USBCTRL_ENDPTCTRLn_TXE_V(e) BF_USBCTRL_ENDPTCTRLn_TXE(BV_USBCTRL_ENDPTCTRLn_TXE__##e)
#define BFM_USBCTRL_ENDPTCTRLn_TXE_V(v) BM_USBCTRL_ENDPTCTRLn_TXE
#define BP_USBCTRL_ENDPTCTRLn_TXR 22
#define BM_USBCTRL_ENDPTCTRLn_TXR 0x400000
#define BF_USBCTRL_ENDPTCTRLn_TXR(v) (((v) & 0x1) << 22)
#define BFM_USBCTRL_ENDPTCTRLn_TXR(v) BM_USBCTRL_ENDPTCTRLn_TXR
#define BF_USBCTRL_ENDPTCTRLn_TXR_V(e) BF_USBCTRL_ENDPTCTRLn_TXR(BV_USBCTRL_ENDPTCTRLn_TXR__##e)
#define BFM_USBCTRL_ENDPTCTRLn_TXR_V(v) BM_USBCTRL_ENDPTCTRLn_TXR
#define BP_USBCTRL_ENDPTCTRLn_TXI 21
#define BM_USBCTRL_ENDPTCTRLn_TXI 0x200000
#define BF_USBCTRL_ENDPTCTRLn_TXI(v) (((v) & 0x1) << 21)
#define BFM_USBCTRL_ENDPTCTRLn_TXI(v) BM_USBCTRL_ENDPTCTRLn_TXI
#define BF_USBCTRL_ENDPTCTRLn_TXI_V(e) BF_USBCTRL_ENDPTCTRLn_TXI(BV_USBCTRL_ENDPTCTRLn_TXI__##e)
#define BFM_USBCTRL_ENDPTCTRLn_TXI_V(v) BM_USBCTRL_ENDPTCTRLn_TXI
#define BP_USBCTRL_ENDPTCTRLn_TXT 18
#define BM_USBCTRL_ENDPTCTRLn_TXT 0xc0000
#define BV_USBCTRL_ENDPTCTRLn_TXT__ISOCHRONOUS 0x1
#define BV_USBCTRL_ENDPTCTRLn_TXT__BULK 0x2
#define BV_USBCTRL_ENDPTCTRLn_TXT__INT 0x3
#define BF_USBCTRL_ENDPTCTRLn_TXT(v) (((v) & 0x3) << 18)
#define BFM_USBCTRL_ENDPTCTRLn_TXT(v) BM_USBCTRL_ENDPTCTRLn_TXT
#define BF_USBCTRL_ENDPTCTRLn_TXT_V(e) BF_USBCTRL_ENDPTCTRLn_TXT(BV_USBCTRL_ENDPTCTRLn_TXT__##e)
#define BFM_USBCTRL_ENDPTCTRLn_TXT_V(v) BM_USBCTRL_ENDPTCTRLn_TXT
#define BP_USBCTRL_ENDPTCTRLn_TXS 16
#define BM_USBCTRL_ENDPTCTRLn_TXS 0x10000
#define BF_USBCTRL_ENDPTCTRLn_TXS(v) (((v) & 0x1) << 16)
#define BFM_USBCTRL_ENDPTCTRLn_TXS(v) BM_USBCTRL_ENDPTCTRLn_TXS
#define BF_USBCTRL_ENDPTCTRLn_TXS_V(e) BF_USBCTRL_ENDPTCTRLn_TXS(BV_USBCTRL_ENDPTCTRLn_TXS__##e)
#define BFM_USBCTRL_ENDPTCTRLn_TXS_V(v) BM_USBCTRL_ENDPTCTRLn_TXS
#define BP_USBCTRL_ENDPTCTRLn_RXE 7
#define BM_USBCTRL_ENDPTCTRLn_RXE 0x80
#define BF_USBCTRL_ENDPTCTRLn_RXE(v) (((v) & 0x1) << 7)
#define BFM_USBCTRL_ENDPTCTRLn_RXE(v) BM_USBCTRL_ENDPTCTRLn_RXE
#define BF_USBCTRL_ENDPTCTRLn_RXE_V(e) BF_USBCTRL_ENDPTCTRLn_RXE(BV_USBCTRL_ENDPTCTRLn_RXE__##e)
#define BFM_USBCTRL_ENDPTCTRLn_RXE_V(v) BM_USBCTRL_ENDPTCTRLn_RXE
#define BP_USBCTRL_ENDPTCTRLn_RXR 6
#define BM_USBCTRL_ENDPTCTRLn_RXR 0x40
#define BF_USBCTRL_ENDPTCTRLn_RXR(v) (((v) & 0x1) << 6)
#define BFM_USBCTRL_ENDPTCTRLn_RXR(v) BM_USBCTRL_ENDPTCTRLn_RXR
#define BF_USBCTRL_ENDPTCTRLn_RXR_V(e) BF_USBCTRL_ENDPTCTRLn_RXR(BV_USBCTRL_ENDPTCTRLn_RXR__##e)
#define BFM_USBCTRL_ENDPTCTRLn_RXR_V(v) BM_USBCTRL_ENDPTCTRLn_RXR
#define BP_USBCTRL_ENDPTCTRLn_RXI 5
#define BM_USBCTRL_ENDPTCTRLn_RXI 0x20
#define BF_USBCTRL_ENDPTCTRLn_RXI(v) (((v) & 0x1) << 5)
#define BFM_USBCTRL_ENDPTCTRLn_RXI(v) BM_USBCTRL_ENDPTCTRLn_RXI
#define BF_USBCTRL_ENDPTCTRLn_RXI_V(e) BF_USBCTRL_ENDPTCTRLn_RXI(BV_USBCTRL_ENDPTCTRLn_RXI__##e)
#define BFM_USBCTRL_ENDPTCTRLn_RXI_V(v) BM_USBCTRL_ENDPTCTRLn_RXI
#define BP_USBCTRL_ENDPTCTRLn_RXT 2
#define BM_USBCTRL_ENDPTCTRLn_RXT 0xc
#define BF_USBCTRL_ENDPTCTRLn_RXT(v) (((v) & 0x3) << 2)
#define BFM_USBCTRL_ENDPTCTRLn_RXT(v) BM_USBCTRL_ENDPTCTRLn_RXT
#define BF_USBCTRL_ENDPTCTRLn_RXT_V(e) BF_USBCTRL_ENDPTCTRLn_RXT(BV_USBCTRL_ENDPTCTRLn_RXT__##e)
#define BFM_USBCTRL_ENDPTCTRLn_RXT_V(v) BM_USBCTRL_ENDPTCTRLn_RXT
#define BP_USBCTRL_ENDPTCTRLn_RXS 0
#define BM_USBCTRL_ENDPTCTRLn_RXS 0x1
#define BF_USBCTRL_ENDPTCTRLn_RXS(v) (((v) & 0x1) << 0)
#define BFM_USBCTRL_ENDPTCTRLn_RXS(v) BM_USBCTRL_ENDPTCTRLn_RXS
#define BF_USBCTRL_ENDPTCTRLn_RXS_V(e) BF_USBCTRL_ENDPTCTRLn_RXS(BV_USBCTRL_ENDPTCTRLn_RXS__##e)
#define BFM_USBCTRL_ENDPTCTRLn_RXS_V(v) BM_USBCTRL_ENDPTCTRLn_RXS
#endif /* __HEADERGEN_STMP3700_USBCTRL_H__*/