/***************************************************************************
 *             __________               __   ___.
 *   Open      \______   \ ____   ____ |  | _\_ |__   _______  ___
 *   Source     |       _//  _ \_/ ___\|  |/ /| __ \ /  _ \  \/  /
 *   Jukebox    |    |   (  <_> )  \___|    < | \_\ (  <_> > <  <
 *   Firmware   |____|_  /\____/ \___  >__|_ \|___  /\____/__/\_ \
 *                     \/            \/     \/    \/            \/
 * This file was automatically generated by headergen, DO NOT EDIT it.
 * headergen version: 3.0.0
 * stmp3600 version: 2.4.0
 * stmp3600 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_STMP3600_UARTAPP_H__
#define __HEADERGEN_STMP3600_UARTAPP_H__

#define HW_UARTAPP_CTRL0                    HW(UARTAPP_CTRL0)
#define HWA_UARTAPP_CTRL0                   (0x8006c000 + 0x0)
#define HWT_UARTAPP_CTRL0                   HWIO_32_RW
#define HWN_UARTAPP_CTRL0                   UARTAPP_CTRL0
#define HWI_UARTAPP_CTRL0                   
#define HW_UARTAPP_CTRL0_SET                HW(UARTAPP_CTRL0_SET)
#define HWA_UARTAPP_CTRL0_SET               (HWA_UARTAPP_CTRL0 + 0x4)
#define HWT_UARTAPP_CTRL0_SET               HWIO_32_WO
#define HWN_UARTAPP_CTRL0_SET               UARTAPP_CTRL0
#define HWI_UARTAPP_CTRL0_SET               
#define HW_UARTAPP_CTRL0_CLR                HW(UARTAPP_CTRL0_CLR)
#define HWA_UARTAPP_CTRL0_CLR               (HWA_UARTAPP_CTRL0 + 0x8)
#define HWT_UARTAPP_CTRL0_CLR               HWIO_32_WO
#define HWN_UARTAPP_CTRL0_CLR               UARTAPP_CTRL0
#define HWI_UARTAPP_CTRL0_CLR               
#define HW_UARTAPP_CTRL0_TOG                HW(UARTAPP_CTRL0_TOG)
#define HWA_UARTAPP_CTRL0_TOG               (HWA_UARTAPP_CTRL0 + 0xc)
#define HWT_UARTAPP_CTRL0_TOG               HWIO_32_WO
#define HWN_UARTAPP_CTRL0_TOG               UARTAPP_CTRL0
#define HWI_UARTAPP_CTRL0_TOG               
#define BP_UARTAPP_CTRL0_SFTRST             31
#define BM_UARTAPP_CTRL0_SFTRST             0x80000000
#define BF_UARTAPP_CTRL0_SFTRST(v)          (((v) & 0x1) << 31)
#define BFM_UARTAPP_CTRL0_SFTRST(v)         BM_UARTAPP_CTRL0_SFTRST
#define BF_UARTAPP_CTRL0_SFTRST_V(e)        BF_UARTAPP_CTRL0_SFTRST(BV_UARTAPP_CTRL0_SFTRST__##e)
#define BFM_UARTAPP_CTRL0_SFTRST_V(v)       BM_UARTAPP_CTRL0_SFTRST
#define BP_UARTAPP_CTRL0_CLKGATE            30
#define BM_UARTAPP_CTRL0_CLKGATE            0x40000000
#define BF_UARTAPP_CTRL0_CLKGATE(v)         (((v) & 0x1) << 30)
#define BFM_UARTAPP_CTRL0_CLKGATE(v)        BM_UARTAPP_CTRL0_CLKGATE
#define BF_UARTAPP_CTRL0_CLKGATE_V(e)       BF_UARTAPP_CTRL0_CLKGATE(BV_UARTAPP_CTRL0_CLKGATE__##e)
#define BFM_UARTAPP_CTRL0_CLKGATE_V(v)      BM_UARTAPP_CTRL0_CLKGATE
#define BP_UARTAPP_CTRL0_RUN                28
#define BM_UARTAPP_CTRL0_RUN                0x10000000
#define BF_UARTAPP_CTRL0_RUN(v)             (((v) & 0x1) << 28)
#define BFM_UARTAPP_CTRL0_RUN(v)            BM_UARTAPP_CTRL0_RUN
#define BF_UARTAPP_CTRL0_RUN_V(e)           BF_UARTAPP_CTRL0_RUN(BV_UARTAPP_CTRL0_RUN__##e)
#define BFM_UARTAPP_CTRL0_RUN_V(v)          BM_UARTAPP_CTRL0_RUN
#define BP_UARTAPP_CTRL0_RX_SOURCE          25
#define BM_UARTAPP_CTRL0_RX_SOURCE          0x2000000
#define BF_UARTAPP_CTRL0_RX_SOURCE(v)       (((v) & 0x1) << 25)
#define BFM_UARTAPP_CTRL0_RX_SOURCE(v)      BM_UARTAPP_CTRL0_RX_SOURCE
#define BF_UARTAPP_CTRL0_RX_SOURCE_V(e)     BF_UARTAPP_CTRL0_RX_SOURCE(BV_UARTAPP_CTRL0_RX_SOURCE__##e)
#define BFM_UARTAPP_CTRL0_RX_SOURCE_V(v)    BM_UARTAPP_CTRL0_RX_SOURCE
#define BP_UARTAPP_CTRL0_RXTO_ENABLE        24
#define BM_UARTAPP_CTRL0_RXTO_ENABLE        0x1000000
#define BF_UARTAPP_CTRL0_RXTO_ENABLE(v)     (((v) & 0x1) << 24)
#define BFM_UARTAPP_CTRL0_RXTO_ENABLE(v)    BM_UARTAPP_CTRL0_RXTO_ENABLE
#define BF_UARTAPP_CTRL0_RXTO_ENABLE_V(e)   BF_UARTAPP_CTRL0_RXTO_ENABLE(BV_UARTAPP_CTRL0_RXTO_ENABLE__##e)
#define BFM_UARTAPP_CTRL0_RXTO_ENABLE_V(v)  BM_UARTAPP_CTRL0_RXTO_ENABLE
#define BP_UARTAPP_CTRL0_RXTIMEOUT          16
#define BM_UARTAPP_CTRL0_RXTIMEOUT          0xff0000
#define BF_UARTAPP_CTRL0_RXTIMEOUT(v)       (((v) & 0xff) << 16)
#define BFM_UARTAPP_CTRL0_RXTIMEOUT(v)      BM_UARTAPP_CTRL0_RXTIMEOUT
#define BF_UARTAPP_CTRL0_RXTIMEOUT_V(e)     BF_UARTAPP_CTRL0_RXTIMEOUT(BV_UARTAPP_CTRL0_RXTIMEOUT__##e)
#define BFM_UARTAPP_CTRL0_RXTIMEOUT_V(v)    BM_UARTAPP_CTRL0_RXTIMEOUT
#define BP_UARTAPP_CTRL0_XFER_COUNT         0
#define BM_UARTAPP_CTRL0_XFER_COUNT         0xffff
#define BF_UARTAPP_CTRL0_XFER_COUNT(v)      (((v) & 0xffff) << 0)
#define BFM_UARTAPP_CTRL0_XFER_COUNT(v)     BM_UARTAPP_CTRL0_XFER_COUNT
#define BF_UARTAPP_CTRL0_XFER_COUNT_V(e)    BF_UARTAPP_CTRL0_XFER_COUNT(BV_UARTAPP_CTRL0_XFER_COUNT__##e)
#define BFM_UARTAPP_CTRL0_XFER_COUNT_V(v)   BM_UARTAPP_CTRL0_XFER_COUNT

#define HW_UARTAPP_CTRL1                    HW(UARTAPP_CTRL1)
#define HWA_UARTAPP_CTRL1                   (0x8006c000 + 0x10)
#define HWT_UARTAPP_CTRL1                   HWIO_32_RW
#define HWN_UARTAPP_CTRL1                   UARTAPP_CTRL1
#define HWI_UARTAPP_CTRL1                   
#define HW_UARTAPP_CTRL1_SET                HW(UARTAPP_CTRL1_SET)
#define HWA_UARTAPP_CTRL1_SET               (HWA_UARTAPP_CTRL1 + 0x4)
#define HWT_UARTAPP_CTRL1_SET               HWIO_32_WO
#define HWN_UARTAPP_CTRL1_SET               UARTAPP_CTRL1
#define HWI_UARTAPP_CTRL1_SET               
#define HW_UARTAPP_CTRL1_CLR                HW(UARTAPP_CTRL1_CLR)
#define HWA_UARTAPP_CTRL1_CLR               (HWA_UARTAPP_CTRL1 + 0x8)
#define HWT_UARTAPP_CTRL1_CLR               HWIO_32_WO
#define HWN_UARTAPP_CTRL1_CLR               UARTAPP_CTRL1
#define HWI_UARTAPP_CTRL1_CLR               
#define HW_UARTAPP_CTRL1_TOG                HW(UARTAPP_CTRL1_TOG)
#define HWA_UARTAPP_CTRL1_TOG               (HWA_UARTAPP_CTRL1 + 0xc)
#define HWT_UARTAPP_CTRL1_TOG               HWIO_32_WO
#define HWN_UARTAPP_CTRL1_TOG               UARTAPP_CTRL1
#define HWI_UARTAPP_CTRL1_TOG               
#define BP_UARTAPP_CTRL1_RUN                28
#define BM_UARTAPP_CTRL1_RUN                0x10000000
#define BF_UARTAPP_CTRL1_RUN(v)             (((v) & 0x1) << 28)
#define BFM_UARTAPP_CTRL1_RUN(v)            BM_UARTAPP_CTRL1_RUN
#define BF_UARTAPP_CTRL1_RUN_V(e)           BF_UARTAPP_CTRL1_RUN(BV_UARTAPP_CTRL1_RUN__##e)
#define BFM_UARTAPP_CTRL1_RUN_V(v)          BM_UARTAPP_CTRL1_RUN
#define BP_UARTAPP_CTRL1_XFER_COUNT         0
#define BM_UARTAPP_CTRL1_XFER_COUNT         0xffff
#define BF_UARTAPP_CTRL1_XFER_COUNT(v)      (((v) & 0xffff) << 0)
#define BFM_UARTAPP_CTRL1_XFER_COUNT(v)     BM_UARTAPP_CTRL1_XFER_COUNT
#define BF_UARTAPP_CTRL1_XFER_COUNT_V(e)    BF_UARTAPP_CTRL1_XFER_COUNT(BV_UARTAPP_CTRL1_XFER_COUNT__##e)
#define BFM_UARTAPP_CTRL1_XFER_COUNT_V(v)   BM_UARTAPP_CTRL1_XFER_COUNT

#define HW_UARTAPP_CTRL2                            HW(UARTAPP_CTRL2)
#define HWA_UARTAPP_CTRL2                           (0x8006c000 + 0x20)
#define HWT_UARTAPP_CTRL2                           HWIO_32_RW
#define HWN_UARTAPP_CTRL2                           UARTAPP_CTRL2
#define HWI_UARTAPP_CTRL2                           
#define HW_UARTAPP_CTRL2_SET                        HW(UARTAPP_CTRL2_SET)
#define HWA_UARTAPP_CTRL2_SET                       (HWA_UARTAPP_CTRL2 + 0x4)
#define HWT_UARTAPP_CTRL2_SET                       HWIO_32_WO
#define HWN_UARTAPP_CTRL2_SET                       UARTAPP_CTRL2
#define HWI_UARTAPP_CTRL2_SET                       
#define HW_UARTAPP_CTRL2_CLR                        HW(UARTAPP_CTRL2_CLR)
#define HWA_UARTAPP_CTRL2_CLR                       (HWA_UARTAPP_CTRL2 + 0x8)
#define HWT_UARTAPP_CTRL2_CLR                       HWIO_32_WO
#define HWN_UARTAPP_CTRL2_CLR                       UARTAPP_CTRL2
#define HWI_UARTAPP_CTRL2_CLR                       
#define HW_UARTAPP_CTRL2_TOG                        HW(UARTAPP_CTRL2_TOG)
#define HWA_UARTAPP_CTRL2_TOG                       (HWA_UARTAPP_CTRL2 + 0xc)
#define HWT_UARTAPP_CTRL2_TOG                       HWIO_32_WO
#define HWN_UARTAPP_CTRL2_TOG                       UARTAPP_CTRL2
#define HWI_UARTAPP_CTRL2_TOG                       
#define BP_UARTAPP_CTRL2_INVERT_RTS                 31
#define BM_UARTAPP_CTRL2_INVERT_RTS                 0x80000000
#define BF_UARTAPP_CTRL2_INVERT_RTS(v)              (((v) & 0x1) << 31)
#define BFM_UARTAPP_CTRL2_INVERT_RTS(v)             BM_UARTAPP_CTRL2_INVERT_RTS
#define BF_UARTAPP_CTRL2_INVERT_RTS_V(e)            BF_UARTAPP_CTRL2_INVERT_RTS(BV_UARTAPP_CTRL2_INVERT_RTS__##e)
#define BFM_UARTAPP_CTRL2_INVERT_RTS_V(v)           BM_UARTAPP_CTRL2_INVERT_RTS
#define BP_UARTAPP_CTRL2_INVERT_CTS                 30
#define BM_UARTAPP_CTRL2_INVERT_CTS                 0x40000000
#define BF_UARTAPP_CTRL2_INVERT_CTS(v)              (((v) & 0x1) << 30)
#define BFM_UARTAPP_CTRL2_INVERT_CTS(v)             BM_UARTAPP_CTRL2_INVERT_CTS
#define BF_UARTAPP_CTRL2_INVERT_CTS_V(e)            BF_UARTAPP_CTRL2_INVERT_CTS(BV_UARTAPP_CTRL2_INVERT_CTS__##e)
#define BFM_UARTAPP_CTRL2_INVERT_CTS_V(v)           BM_UARTAPP_CTRL2_INVERT_CTS
#define BP_UARTAPP_CTRL2_INVERT_TX                  29
#define BM_UARTAPP_CTRL2_INVERT_TX                  0x20000000
#define BF_UARTAPP_CTRL2_INVERT_TX(v)               (((v) & 0x1) << 29)
#define BFM_UARTAPP_CTRL2_INVERT_TX(v)              BM_UARTAPP_CTRL2_INVERT_TX
#define BF_UARTAPP_CTRL2_INVERT_TX_V(e)             BF_UARTAPP_CTRL2_INVERT_TX(BV_UARTAPP_CTRL2_INVERT_TX__##e)
#define BFM_UARTAPP_CTRL2_INVERT_TX_V(v)            BM_UARTAPP_CTRL2_INVERT_TX
#define BP_UARTAPP_CTRL2_INVERT_RX                  28
#define BM_UARTAPP_CTRL2_INVERT_RX                  0x10000000
#define BF_UARTAPP_CTRL2_INVERT_RX(v)               (((v) & 0x1) << 28)
#define BFM_UARTAPP_CTRL2_INVERT_RX(v)              BM_UARTAPP_CTRL2_INVERT_RX
#define BF_UARTAPP_CTRL2_INVERT_RX_V(e)             BF_UARTAPP_CTRL2_INVERT_RX(BV_UARTAPP_CTRL2_INVERT_RX__##e)
#define BFM_UARTAPP_CTRL2_INVERT_RX_V(v)            BM_UARTAPP_CTRL2_INVERT_RX
#define BP_UARTAPP_CTRL2_DMAONERR                   26
#define BM_UARTAPP_CTRL2_DMAONERR                   0x4000000
#define BF_UARTAPP_CTRL2_DMAONERR(v)                (((v) & 0x1) << 26)
#define BFM_UARTAPP_CTRL2_DMAONERR(v)               BM_UARTAPP_CTRL2_DMAONERR
#define BF_UARTAPP_CTRL2_DMAONERR_V(e)              BF_UARTAPP_CTRL2_DMAONERR(BV_UARTAPP_CTRL2_DMAONERR__##e)
#define BFM_UARTAPP_CTRL2_DMAONERR_V(v)             BM_UARTAPP_CTRL2_DMAONERR
#define BP_UARTAPP_CTRL2_TXDMAE                     25
#define BM_UARTAPP_CTRL2_TXDMAE                     0x2000000
#define BF_UARTAPP_CTRL2_TXDMAE(v)                  (((v) & 0x1) << 25)
#define BFM_UARTAPP_CTRL2_TXDMAE(v)                 BM_UARTAPP_CTRL2_TXDMAE
#define BF_UARTAPP_CTRL2_TXDMAE_V(e)                BF_UARTAPP_CTRL2_TXDMAE(BV_UARTAPP_CTRL2_TXDMAE__##e)
#define BFM_UARTAPP_CTRL2_TXDMAE_V(v)               BM_UARTAPP_CTRL2_TXDMAE
#define BP_UARTAPP_CTRL2_RXDMAE                     24
#define BM_UARTAPP_CTRL2_RXDMAE                     0x1000000
#define BF_UARTAPP_CTRL2_RXDMAE(v)                  (((v) & 0x1) << 24)
#define BFM_UARTAPP_CTRL2_RXDMAE(v)                 BM_UARTAPP_CTRL2_RXDMAE
#define BF_UARTAPP_CTRL2_RXDMAE_V(e)                BF_UARTAPP_CTRL2_RXDMAE(BV_UARTAPP_CTRL2_RXDMAE__##e)
#define BFM_UARTAPP_CTRL2_RXDMAE_V(v)               BM_UARTAPP_CTRL2_RXDMAE
#define BP_UARTAPP_CTRL2_RXIFLSEL                   20
#define BM_UARTAPP_CTRL2_RXIFLSEL                   0x700000
#define BV_UARTAPP_CTRL2_RXIFLSEL__NOT_EMPTY        0x0
#define BV_UARTAPP_CTRL2_RXIFLSEL__ONE_QUARTER      0x1
#define BV_UARTAPP_CTRL2_RXIFLSEL__ONE_HALF         0x2
#define BV_UARTAPP_CTRL2_RXIFLSEL__THREE_QUARTERS   0x3
#define BV_UARTAPP_CTRL2_RXIFLSEL__SEVEN_EIGHTHS    0x4
#define BV_UARTAPP_CTRL2_RXIFLSEL__INVALID5         0x5
#define BV_UARTAPP_CTRL2_RXIFLSEL__INVALID6         0x6
#define BV_UARTAPP_CTRL2_RXIFLSEL__INVALID7         0x7
#define BF_UARTAPP_CTRL2_RXIFLSEL(v)                (((v) & 0x7) << 20)
#define BFM_UARTAPP_CTRL2_RXIFLSEL(v)               BM_UARTAPP_CTRL2_RXIFLSEL
#define BF_UARTAPP_CTRL2_RXIFLSEL_V(e)              BF_UARTAPP_CTRL2_RXIFLSEL(BV_UARTAPP_CTRL2_RXIFLSEL__##e)
#define BFM_UARTAPP_CTRL2_RXIFLSEL_V(v)             BM_UARTAPP_CTRL2_RXIFLSEL
#define BP_UARTAPP_CTRL2_TXIFLSEL                   16
#define BM_UARTAPP_CTRL2_TXIFLSEL                   0x70000
#define BV_UARTAPP_CTRL2_TXIFLSEL__EMPTY            0x0
#define BV_UARTAPP_CTRL2_TXIFLSEL__ONE_QUARTER      0x1
#define BV_UARTAPP_CTRL2_TXIFLSEL__ONE_HALF         0x2
#define BV_UARTAPP_CTRL2_TXIFLSEL__THREE_QUARTERS   0x3
#define BV_UARTAPP_CTRL2_TXIFLSEL__SEVEN_EIGHTHS    0x4
#define BV_UARTAPP_CTRL2_TXIFLSEL__INVALID5         0x5
#define BV_UARTAPP_CTRL2_TXIFLSEL__INVALID6         0x6
#define BV_UARTAPP_CTRL2_TXIFLSEL__INVALID7         0x7
#define BF_UARTAPP_CTRL2_TXIFLSEL(v)                (((v) & 0x7) << 16)
#define BFM_UARTAPP_CTRL2_TXIFLSEL(v)               BM_UARTAPP_CTRL2_TXIFLSEL
#define BF_UARTAPP_CTRL2_TXIFLSEL_V(e)              BF_UARTAPP_CTRL2_TXIFLSEL(BV_UARTAPP_CTRL2_TXIFLSEL__##e)
#define BFM_UARTAPP_CTRL2_TXIFLSEL_V(v)             BM_UARTAPP_CTRL2_TXIFLSEL
#define BP_UARTAPP_CTRL2_CTSEN                      15
#define BM_UARTAPP_CTRL2_CTSEN                      0x8000
#define BF_UARTAPP_CTRL2_CTSEN(v)                   (((v) & 0x1) << 15)
#define BFM_UARTAPP_CTRL2_CTSEN(v)                  BM_UARTAPP_CTRL2_CTSEN
#define BF_UARTAPP_CTRL2_CTSEN_V(e)                 BF_UARTAPP_CTRL2_CTSEN(BV_UARTAPP_CTRL2_CTSEN__##e)
#define BFM_UARTAPP_CTRL2_CTSEN_V(v)                BM_UARTAPP_CTRL2_CTSEN
#define BP_UARTAPP_CTRL2_RTSEN                      14
#define BM_UARTAPP_CTRL2_RTSEN                      0x4000
#define BF_UARTAPP_CTRL2_RTSEN(v)                   (((v) & 0x1) << 14)
#define BFM_UARTAPP_CTRL2_RTSEN(v)                  BM_UARTAPP_CTRL2_RTSEN
#define BF_UARTAPP_CTRL2_RTSEN_V(e)                 BF_UARTAPP_CTRL2_RTSEN(BV_UARTAPP_CTRL2_RTSEN__##e)
#define BFM_UARTAPP_CTRL2_RTSEN_V(v)                BM_UARTAPP_CTRL2_RTSEN
#define BP_UARTAPP_CTRL2_OUT2                       13
#define BM_UARTAPP_CTRL2_OUT2                       0x2000
#define BF_UARTAPP_CTRL2_OUT2(v)                    (((v) & 0x1) << 13)
#define BFM_UARTAPP_CTRL2_OUT2(v)                   BM_UARTAPP_CTRL2_OUT2
#define BF_UARTAPP_CTRL2_OUT2_V(e)                  BF_UARTAPP_CTRL2_OUT2(BV_UARTAPP_CTRL2_OUT2__##e)
#define BFM_UARTAPP_CTRL2_OUT2_V(v)                 BM_UARTAPP_CTRL2_OUT2
#define BP_UARTAPP_CTRL2_OUT1                       12
#define BM_UARTAPP_CTRL2_OUT1                       0x1000
#define BF_UARTAPP_CTRL2_OUT1(v)                    (((v) & 0x1) << 12)
#define BFM_UARTAPP_CTRL2_OUT1(v)                   BM_UARTAPP_CTRL2_OUT1
#define BF_UARTAPP_CTRL2_OUT1_V(e)                  BF_UARTAPP_CTRL2_OUT1(BV_UARTAPP_CTRL2_OUT1__##e)
#define BFM_UARTAPP_CTRL2_OUT1_V(v)                 BM_UARTAPP_CTRL2_OUT1
#define BP_UARTAPP_CTRL2_RTS                        11
#define BM_UARTAPP_CTRL2_RTS                        0x800
#define BF_UARTAPP_CTRL2_RTS(v)                     (((v) & 0x1) << 11)
#define BFM_UARTAPP_CTRL2_RTS(v)                    BM_UARTAPP_CTRL2_RTS
#define BF_UARTAPP_CTRL2_RTS_V(e)                   BF_UARTAPP_CTRL2_RTS(BV_UARTAPP_CTRL2_RTS__##e)
#define BFM_UARTAPP_CTRL2_RTS_V(v)                  BM_UARTAPP_CTRL2_RTS
#define BP_UARTAPP_CTRL2_DTR                        10
#define BM_UARTAPP_CTRL2_DTR                        0x400
#define BF_UARTAPP_CTRL2_DTR(v)                     (((v) & 0x1) << 10)
#define BFM_UARTAPP_CTRL2_DTR(v)                    BM_UARTAPP_CTRL2_DTR
#define BF_UARTAPP_CTRL2_DTR_V(e)                   BF_UARTAPP_CTRL2_DTR(BV_UARTAPP_CTRL2_DTR__##e)
#define BFM_UARTAPP_CTRL2_DTR_V(v)                  BM_UARTAPP_CTRL2_DTR
#define BP_UARTAPP_CTRL2_RXE                        9
#define BM_UARTAPP_CTRL2_RXE                        0x200
#define BF_UARTAPP_CTRL2_RXE(v)                     (((v) & 0x1) << 9)
#define BFM_UARTAPP_CTRL2_RXE(v)                    BM_UARTAPP_CTRL2_RXE
#define BF_UARTAPP_CTRL2_RXE_V(e)                   BF_UARTAPP_CTRL2_RXE(BV_UARTAPP_CTRL2_RXE__##e)
#define BFM_UARTAPP_CTRL2_RXE_V(v)                  BM_UARTAPP_CTRL2_RXE
#define BP_UARTAPP_CTRL2_TXE                        8
#define BM_UARTAPP_CTRL2_TXE                        0x100
#define BF_UARTAPP_CTRL2_TXE(v)                     (((v) & 0x1) << 8)
#define BFM_UARTAPP_CTRL2_TXE(v)                    BM_UARTAPP_CTRL2_TXE
#define BF_UARTAPP_CTRL2_TXE_V(e)                   BF_UARTAPP_CTRL2_TXE(BV_UARTAPP_CTRL2_TXE__##e)
#define BFM_UARTAPP_CTRL2_TXE_V(v)                  BM_UARTAPP_CTRL2_TXE
#define BP_UARTAPP_CTRL2_LBE                        7
#define BM_UARTAPP_CTRL2_LBE                        0x80
#define BF_UARTAPP_CTRL2_LBE(v)                     (((v) & 0x1) << 7)
#define BFM_UARTAPP_CTRL2_LBE(v)                    BM_UARTAPP_CTRL2_LBE
#define BF_UARTAPP_CTRL2_LBE_V(e)                   BF_UARTAPP_CTRL2_LBE(BV_UARTAPP_CTRL2_LBE__##e)
#define BFM_UARTAPP_CTRL2_LBE_V(v)                  BM_UARTAPP_CTRL2_LBE
#define BP_UARTAPP_CTRL2_SIRLP                      2
#define BM_UARTAPP_CTRL2_SIRLP                      0x4
#define BF_UARTAPP_CTRL2_SIRLP(v)                   (((v) & 0x1) << 2)
#define BFM_UARTAPP_CTRL2_SIRLP(v)                  BM_UARTAPP_CTRL2_SIRLP
#define BF_UARTAPP_CTRL2_SIRLP_V(e)                 BF_UARTAPP_CTRL2_SIRLP(BV_UARTAPP_CTRL2_SIRLP__##e)
#define BFM_UARTAPP_CTRL2_SIRLP_V(v)                BM_UARTAPP_CTRL2_SIRLP
#define BP_UARTAPP_CTRL2_SIREN                      1
#define BM_UARTAPP_CTRL2_SIREN                      0x2
#define BF_UARTAPP_CTRL2_SIREN(v)                   (((v) & 0x1) << 1)
#define BFM_UARTAPP_CTRL2_SIREN(v)                  BM_UARTAPP_CTRL2_SIREN
#define BF_UARTAPP_CTRL2_SIREN_V(e)                 BF_UARTAPP_CTRL2_SIREN(BV_UARTAPP_CTRL2_SIREN__##e)
#define BFM_UARTAPP_CTRL2_SIREN_V(v)                BM_UARTAPP_CTRL2_SIREN
#define BP_UARTAPP_CTRL2_UARTEN                     0
#define BM_UARTAPP_CTRL2_UARTEN                     0x1
#define BF_UARTAPP_CTRL2_UARTEN(v)                  (((v) & 0x1) << 0)
#define BFM_UARTAPP_CTRL2_UARTEN(v)                 BM_UARTAPP_CTRL2_UARTEN
#define BF_UARTAPP_CTRL2_UARTEN_V(e)                BF_UARTAPP_CTRL2_UARTEN(BV_UARTAPP_CTRL2_UARTEN__##e)
#define BFM_UARTAPP_CTRL2_UARTEN_V(v)               BM_UARTAPP_CTRL2_UARTEN

#define HW_UARTAPP_LINECTRL                     HW(UARTAPP_LINECTRL)
#define HWA_UARTAPP_LINECTRL                    (0x8006c000 + 0x30)
#define HWT_UARTAPP_LINECTRL                    HWIO_32_RW
#define HWN_UARTAPP_LINECTRL                    UARTAPP_LINECTRL
#define HWI_UARTAPP_LINECTRL                    
#define HW_UARTAPP_LINECTRL_SET                 HW(UARTAPP_LINECTRL_SET)
#define HWA_UARTAPP_LINECTRL_SET                (HWA_UARTAPP_LINECTRL + 0x4)
#define HWT_UARTAPP_LINECTRL_SET                HWIO_32_WO
#define HWN_UARTAPP_LINECTRL_SET                UARTAPP_LINECTRL
#define HWI_UARTAPP_LINECTRL_SET                
#define HW_UARTAPP_LINECTRL_CLR                 HW(UARTAPP_LINECTRL_CLR)
#define HWA_UARTAPP_LINECTRL_CLR                (HWA_UARTAPP_LINECTRL + 0x8)
#define HWT_UARTAPP_LINECTRL_CLR                HWIO_32_WO
#define HWN_UARTAPP_LINECTRL_CLR                UARTAPP_LINECTRL
#define HWI_UARTAPP_LINECTRL_CLR                
#define HW_UARTAPP_LINECTRL_TOG                 HW(UARTAPP_LINECTRL_TOG)
#define HWA_UARTAPP_LINECTRL_TOG                (HWA_UARTAPP_LINECTRL + 0xc)
#define HWT_UARTAPP_LINECTRL_TOG                HWIO_32_WO
#define HWN_UARTAPP_LINECTRL_TOG                UARTAPP_LINECTRL
#define HWI_UARTAPP_LINECTRL_TOG                
#define BP_UARTAPP_LINECTRL_BAUD_DIVINT         16
#define BM_UARTAPP_LINECTRL_BAUD_DIVINT         0xffff0000
#define BF_UARTAPP_LINECTRL_BAUD_DIVINT(v)      (((v) & 0xffff) << 16)
#define BFM_UARTAPP_LINECTRL_BAUD_DIVINT(v)     BM_UARTAPP_LINECTRL_BAUD_DIVINT
#define BF_UARTAPP_LINECTRL_BAUD_DIVINT_V(e)    BF_UARTAPP_LINECTRL_BAUD_DIVINT(BV_UARTAPP_LINECTRL_BAUD_DIVINT__##e)
#define BFM_UARTAPP_LINECTRL_BAUD_DIVINT_V(v)   BM_UARTAPP_LINECTRL_BAUD_DIVINT
#define BP_UARTAPP_LINECTRL_BAUD_DIVFRAC        8
#define BM_UARTAPP_LINECTRL_BAUD_DIVFRAC        0x3f00
#define BF_UARTAPP_LINECTRL_BAUD_DIVFRAC(v)     (((v) & 0x3f) << 8)
#define BFM_UARTAPP_LINECTRL_BAUD_DIVFRAC(v)    BM_UARTAPP_LINECTRL_BAUD_DIVFRAC
#define BF_UARTAPP_LINECTRL_BAUD_DIVFRAC_V(e)   BF_UARTAPP_LINECTRL_BAUD_DIVFRAC(BV_UARTAPP_LINECTRL_BAUD_DIVFRAC__##e)
#define BFM_UARTAPP_LINECTRL_BAUD_DIVFRAC_V(v)  BM_UARTAPP_LINECTRL_BAUD_DIVFRAC
#define BP_UARTAPP_LINECTRL_SPS                 7
#define BM_UARTAPP_LINECTRL_SPS                 0x80
#define BF_UARTAPP_LINECTRL_SPS(v)              (((v) & 0x1) << 7)
#define BFM_UARTAPP_LINECTRL_SPS(v)             BM_UARTAPP_LINECTRL_SPS
#define BF_UARTAPP_LINECTRL_SPS_V(e)            BF_UARTAPP_LINECTRL_SPS(BV_UARTAPP_LINECTRL_SPS__##e)
#define BFM_UARTAPP_LINECTRL_SPS_V(v)           BM_UARTAPP_LINECTRL_SPS
#define BP_UARTAPP_LINECTRL_WLEN                5
#define BM_UARTAPP_LINECTRL_WLEN                0x60
#define BF_UARTAPP_LINECTRL_WLEN(v)             (((v) & 0x3) << 5)
#define BFM_UARTAPP_LINECTRL_WLEN(v)            BM_UARTAPP_LINECTRL_WLEN
#define BF_UARTAPP_LINECTRL_WLEN_V(e)           BF_UARTAPP_LINECTRL_WLEN(BV_UARTAPP_LINECTRL_WLEN__##e)
#define BFM_UARTAPP_LINECTRL_WLEN_V(v)          BM_UARTAPP_LINECTRL_WLEN
#define BP_UARTAPP_LINECTRL_FEN                 4
#define BM_UARTAPP_LINECTRL_FEN                 0x10
#define BF_UARTAPP_LINECTRL_FEN(v)              (((v) & 0x1) << 4)
#define BFM_UARTAPP_LINECTRL_FEN(v)             BM_UARTAPP_LINECTRL_FEN
#define BF_UARTAPP_LINECTRL_FEN_V(e)            BF_UARTAPP_LINECTRL_FEN(BV_UARTAPP_LINECTRL_FEN__##e)
#define BFM_UARTAPP_LINECTRL_FEN_V(v)           BM_UARTAPP_LINECTRL_FEN
#define BP_UARTAPP_LINECTRL_STP2                3
#define BM_UARTAPP_LINECTRL_STP2                0x8
#define BF_UARTAPP_LINECTRL_STP2(v)             (((v) & 0x1) << 3)
#define BFM_UARTAPP_LINECTRL_STP2(v)            BM_UARTAPP_LINECTRL_STP2
#define BF_UARTAPP_LINECTRL_STP2_V(e)           BF_UARTAPP_LINECTRL_STP2(BV_UARTAPP_LINECTRL_STP2__##e)
#define BFM_UARTAPP_LINECTRL_STP2_V(v)          BM_UARTAPP_LINECTRL_STP2
#define BP_UARTAPP_LINECTRL_EPS                 2
#define BM_UARTAPP_LINECTRL_EPS                 0x4
#define BF_UARTAPP_LINECTRL_EPS(v)              (((v) & 0x1) << 2)
#define BFM_UARTAPP_LINECTRL_EPS(v)             BM_UARTAPP_LINECTRL_EPS
#define BF_UARTAPP_LINECTRL_EPS_V(e)            BF_UARTAPP_LINECTRL_EPS(BV_UARTAPP_LINECTRL_EPS__##e)
#define BFM_UARTAPP_LINECTRL_EPS_V(v)           BM_UARTAPP_LINECTRL_EPS
#define BP_UARTAPP_LINECTRL_PEN                 1
#define BM_UARTAPP_LINECTRL_PEN                 0x2
#define BF_UARTAPP_LINECTRL_PEN(v)              (((v) & 0x1) << 1)
#define BFM_UARTAPP_LINECTRL_PEN(v)             BM_UARTAPP_LINECTRL_PEN
#define BF_UARTAPP_LINECTRL_PEN_V(e)            BF_UARTAPP_LINECTRL_PEN(BV_UARTAPP_LINECTRL_PEN__##e)
#define BFM_UARTAPP_LINECTRL_PEN_V(v)           BM_UARTAPP_LINECTRL_PEN
#define BP_UARTAPP_LINECTRL_BRK                 0
#define BM_UARTAPP_LINECTRL_BRK                 0x1
#define BF_UARTAPP_LINECTRL_BRK(v)              (((v) & 0x1) << 0)
#define BFM_UARTAPP_LINECTRL_BRK(v)             BM_UARTAPP_LINECTRL_BRK
#define BF_UARTAPP_LINECTRL_BRK_V(e)            BF_UARTAPP_LINECTRL_BRK(BV_UARTAPP_LINECTRL_BRK__##e)
#define BFM_UARTAPP_LINECTRL_BRK_V(v)           BM_UARTAPP_LINECTRL_BRK

#define HW_UARTAPP_INTR                 HW(UARTAPP_INTR)
#define HWA_UARTAPP_INTR                (0x8006c000 + 0x40)
#define HWT_UARTAPP_INTR                HWIO_32_RW
#define HWN_UARTAPP_INTR                UARTAPP_INTR
#define HWI_UARTAPP_INTR                
#define HW_UARTAPP_INTR_SET             HW(UARTAPP_INTR_SET)
#define HWA_UARTAPP_INTR_SET            (HWA_UARTAPP_INTR + 0x4)
#define HWT_UARTAPP_INTR_SET            HWIO_32_WO
#define HWN_UARTAPP_INTR_SET            UARTAPP_INTR
#define HWI_UARTAPP_INTR_SET            
#define HW_UARTAPP_INTR_CLR             HW(UARTAPP_INTR_CLR)
#define HWA_UARTAPP_INTR_CLR            (HWA_UARTAPP_INTR + 0x8)
#define HWT_UARTAPP_INTR_CLR            HWIO_32_WO
#define HWN_UARTAPP_INTR_CLR            UARTAPP_INTR
#define HWI_UARTAPP_INTR_CLR            
#define HW_UARTAPP_INTR_TOG             HW(UARTAPP_INTR_TOG)
#define HWA_UARTAPP_INTR_TOG            (HWA_UARTAPP_INTR + 0xc)
#define HWT_UARTAPP_INTR_TOG            HWIO_32_WO
#define HWN_UARTAPP_INTR_TOG            UARTAPP_INTR
#define HWI_UARTAPP_INTR_TOG            
#define BP_UARTAPP_INTR_OEIEN           26
#define BM_UARTAPP_INTR_OEIEN           0x4000000
#define BF_UARTAPP_INTR_OEIEN(v)        (((v) & 0x1) << 26)
#define BFM_UARTAPP_INTR_OEIEN(v)       BM_UARTAPP_INTR_OEIEN
#define BF_UARTAPP_INTR_OEIEN_V(e)      BF_UARTAPP_INTR_OEIEN(BV_UARTAPP_INTR_OEIEN__##e)
#define BFM_UARTAPP_INTR_OEIEN_V(v)     BM_UARTAPP_INTR_OEIEN
#define BP_UARTAPP_INTR_BEIEN           25
#define BM_UARTAPP_INTR_BEIEN           0x2000000
#define BF_UARTAPP_INTR_BEIEN(v)        (((v) & 0x1) << 25)
#define BFM_UARTAPP_INTR_BEIEN(v)       BM_UARTAPP_INTR_BEIEN
#define BF_UARTAPP_INTR_BEIEN_V(e)      BF_UARTAPP_INTR_BEIEN(BV_UARTAPP_INTR_BEIEN__##e)
#define BFM_UARTAPP_INTR_BEIEN_V(v)     BM_UARTAPP_INTR_BEIEN
#define BP_UARTAPP_INTR_PEIEN           24
#define BM_UARTAPP_INTR_PEIEN           0x1000000
#define BF_UARTAPP_INTR_PEIEN(v)        (((v) & 0x1) << 24)
#define BFM_UARTAPP_INTR_PEIEN(v)       BM_UARTAPP_INTR_PEIEN
#define BF_UARTAPP_INTR_PEIEN_V(e)      BF_UARTAPP_INTR_PEIEN(BV_UARTAPP_INTR_PEIEN__##e)
#define BFM_UARTAPP_INTR_PEIEN_V(v)     BM_UARTAPP_INTR_PEIEN
#define BP_UARTAPP_INTR_FEIEN           23
#define BM_UARTAPP_INTR_FEIEN           0x800000
#define BF_UARTAPP_INTR_FEIEN(v)        (((v) & 0x1) << 23)
#define BFM_UARTAPP_INTR_FEIEN(v)       BM_UARTAPP_INTR_FEIEN
#define BF_UARTAPP_INTR_FEIEN_V(e)      BF_UARTAPP_INTR_FEIEN(BV_UARTAPP_INTR_FEIEN__##e)
#define BFM_UARTAPP_INTR_FEIEN_V(v)     BM_UARTAPP_INTR_FEIEN
#define BP_UARTAPP_INTR_RTIEN           22
#define BM_UARTAPP_INTR_RTIEN           0x400000
#define BF_UARTAPP_INTR_RTIEN(v)        (((v) & 0x1) << 22)
#define BFM_UARTAPP_INTR_RTIEN(v)       BM_UARTAPP_INTR_RTIEN
#define BF_UARTAPP_INTR_RTIEN_V(e)      BF_UARTAPP_INTR_RTIEN(BV_UARTAPP_INTR_RTIEN__##e)
#define BFM_UARTAPP_INTR_RTIEN_V(v)     BM_UARTAPP_INTR_RTIEN
#define BP_UARTAPP_INTR_TXIEN           21
#define BM_UARTAPP_INTR_TXIEN           0x200000
#define BF_UARTAPP_INTR_TXIEN(v)        (((v) & 0x1) << 21)
#define BFM_UARTAPP_INTR_TXIEN(v)       BM_UARTAPP_INTR_TXIEN
#define BF_UARTAPP_INTR_TXIEN_V(e)      BF_UARTAPP_INTR_TXIEN(BV_UARTAPP_INTR_TXIEN__##e)
#define BFM_UARTAPP_INTR_TXIEN_V(v)     BM_UARTAPP_INTR_TXIEN
#define BP_UARTAPP_INTR_RXIEN           20
#define BM_UARTAPP_INTR_RXIEN           0x100000
#define BF_UARTAPP_INTR_RXIEN(v)        (((v) & 0x1) << 20)
#define BFM_UARTAPP_INTR_RXIEN(v)       BM_UARTAPP_INTR_RXIEN
#define BF_UARTAPP_INTR_RXIEN_V(e)      BF_UARTAPP_INTR_RXIEN(BV_UARTAPP_INTR_RXIEN__##e)
#define BFM_UARTAPP_INTR_RXIEN_V(v)     BM_UARTAPP_INTR_RXIEN
#define BP_UARTAPP_INTR_DSRMIEN         19
#define BM_UARTAPP_INTR_DSRMIEN         0x80000
#define BF_UARTAPP_INTR_DSRMIEN(v)      (((v) & 0x1) << 19)
#define BFM_UARTAPP_INTR_DSRMIEN(v)     BM_UARTAPP_INTR_DSRMIEN
#define BF_UARTAPP_INTR_DSRMIEN_V(e)    BF_UARTAPP_INTR_DSRMIEN(BV_UARTAPP_INTR_DSRMIEN__##e)
#define BFM_UARTAPP_INTR_DSRMIEN_V(v)   BM_UARTAPP_INTR_DSRMIEN
#define BP_UARTAPP_INTR_DCDMIEN         18
#define BM_UARTAPP_INTR_DCDMIEN         0x40000
#define BF_UARTAPP_INTR_DCDMIEN(v)      (((v) & 0x1) << 18)
#define BFM_UARTAPP_INTR_DCDMIEN(v)     BM_UARTAPP_INTR_DCDMIEN
#define BF_UARTAPP_INTR_DCDMIEN_V(e)    BF_UARTAPP_INTR_DCDMIEN(BV_UARTAPP_INTR_DCDMIEN__##e)
#define BFM_UARTAPP_INTR_DCDMIEN_V(v)   BM_UARTAPP_INTR_DCDMIEN
#define BP_UARTAPP_INTR_CTSMIEN         17
#define BM_UARTAPP_INTR_CTSMIEN         0x20000
#define BF_UARTAPP_INTR_CTSMIEN(v)      (((v) & 0x1) << 17)
#define BFM_UARTAPP_INTR_CTSMIEN(v)     BM_UARTAPP_INTR_CTSMIEN
#define BF_UARTAPP_INTR_CTSMIEN_V(e)    BF_UARTAPP_INTR_CTSMIEN(BV_UARTAPP_INTR_CTSMIEN__##e)
#define BFM_UARTAPP_INTR_CTSMIEN_V(v)   BM_UARTAPP_INTR_CTSMIEN
#define BP_UARTAPP_INTR_RIMIEN          16
#define BM_UARTAPP_INTR_RIMIEN          0x10000
#define BF_UARTAPP_INTR_RIMIEN(v)       (((v) & 0x1) << 16)
#define BFM_UARTAPP_INTR_RIMIEN(v)      BM_UARTAPP_INTR_RIMIEN
#define BF_UARTAPP_INTR_RIMIEN_V(e)     BF_UARTAPP_INTR_RIMIEN(BV_UARTAPP_INTR_RIMIEN__##e)
#define BFM_UARTAPP_INTR_RIMIEN_V(v)    BM_UARTAPP_INTR_RIMIEN
#define BP_UARTAPP_INTR_OEIS            10
#define BM_UARTAPP_INTR_OEIS            0x400
#define BF_UARTAPP_INTR_OEIS(v)         (((v) & 0x1) << 10)
#define BFM_UARTAPP_INTR_OEIS(v)        BM_UARTAPP_INTR_OEIS
#define BF_UARTAPP_INTR_OEIS_V(e)       BF_UARTAPP_INTR_OEIS(BV_UARTAPP_INTR_OEIS__##e)
#define BFM_UARTAPP_INTR_OEIS_V(v)      BM_UARTAPP_INTR_OEIS
#define BP_UARTAPP_INTR_BEIS            9
#define BM_UARTAPP_INTR_BEIS            0x200
#define BF_UARTAPP_INTR_BEIS(v)         (((v) & 0x1) << 9)
#define BFM_UARTAPP_INTR_BEIS(v)        BM_UARTAPP_INTR_BEIS
#define BF_UARTAPP_INTR_BEIS_V(e)       BF_UARTAPP_INTR_BEIS(BV_UARTAPP_INTR_BEIS__##e)
#define BFM_UARTAPP_INTR_BEIS_V(v)      BM_UARTAPP_INTR_BEIS
#define BP_UARTAPP_INTR_PEIS            8
#define BM_UARTAPP_INTR_PEIS            0x100
#define BF_UARTAPP_INTR_PEIS(v)         (((v) & 0x1) << 8)
#define BFM_UARTAPP_INTR_PEIS(v)        BM_UARTAPP_INTR_PEIS
#define BF_UARTAPP_INTR_PEIS_V(e)       BF_UARTAPP_INTR_PEIS(BV_UARTAPP_INTR_PEIS__##e)
#define BFM_UARTAPP_INTR_PEIS_V(v)      BM_UARTAPP_INTR_PEIS
#define BP_UARTAPP_INTR_FEIS            7
#define BM_UARTAPP_INTR_FEIS            0x80
#define BF_UARTAPP_INTR_FEIS(v)         (((v) & 0x1) << 7)
#define BFM_UARTAPP_INTR_FEIS(v)        BM_UARTAPP_INTR_FEIS
#define BF_UARTAPP_INTR_FEIS_V(e)       BF_UARTAPP_INTR_FEIS(BV_UARTAPP_INTR_FEIS__##e)
#define BFM_UARTAPP_INTR_FEIS_V(v)      BM_UARTAPP_INTR_FEIS
#define BP_UARTAPP_INTR_RTIS            6
#define BM_UARTAPP_INTR_RTIS            0x40
#define BF_UARTAPP_INTR_RTIS(v)         (((v) & 0x1) << 6)
#define BFM_UARTAPP_INTR_RTIS(v)        BM_UARTAPP_INTR_RTIS
#define BF_UARTAPP_INTR_RTIS_V(e)       BF_UARTAPP_INTR_RTIS(BV_UARTAPP_INTR_RTIS__##e)
#define BFM_UARTAPP_INTR_RTIS_V(v)      BM_UARTAPP_INTR_RTIS
#define BP_UARTAPP_INTR_TXIS            5
#define BM_UARTAPP_INTR_TXIS            0x20
#define BF_UARTAPP_INTR_TXIS(v)         (((v) & 0x1) << 5)
#define BFM_UARTAPP_INTR_TXIS(v)        BM_UARTAPP_INTR_TXIS
#define BF_UARTAPP_INTR_TXIS_V(e)       BF_UARTAPP_INTR_TXIS(BV_UARTAPP_INTR_TXIS__##e)
#define BFM_UARTAPP_INTR_TXIS_V(v)      BM_UARTAPP_INTR_TXIS
#define BP_UARTAPP_INTR_RXIS            4
#define BM_UARTAPP_INTR_RXIS            0x10
#define BF_UARTAPP_INTR_RXIS(v)         (((v) & 0x1) << 4)
#define BFM_UARTAPP_INTR_RXIS(v)        BM_UARTAPP_INTR_RXIS
#define BF_UARTAPP_INTR_RXIS_V(e)       BF_UARTAPP_INTR_RXIS(BV_UARTAPP_INTR_RXIS__##e)
#define BFM_UARTAPP_INTR_RXIS_V(v)      BM_UARTAPP_INTR_RXIS
#define BP_UARTAPP_INTR_DSRMIS          3
#define BM_UARTAPP_INTR_DSRMIS          0x8
#define BF_UARTAPP_INTR_DSRMIS(v)       (((v) & 0x1) << 3)
#define BFM_UARTAPP_INTR_DSRMIS(v)      BM_UARTAPP_INTR_DSRMIS
#define BF_UARTAPP_INTR_DSRMIS_V(e)     BF_UARTAPP_INTR_DSRMIS(BV_UARTAPP_INTR_DSRMIS__##e)
#define BFM_UARTAPP_INTR_DSRMIS_V(v)    BM_UARTAPP_INTR_DSRMIS
#define BP_UARTAPP_INTR_DCDMIS          2
#define BM_UARTAPP_INTR_DCDMIS          0x4
#define BF_UARTAPP_INTR_DCDMIS(v)       (((v) & 0x1) << 2)
#define BFM_UARTAPP_INTR_DCDMIS(v)      BM_UARTAPP_INTR_DCDMIS
#define BF_UARTAPP_INTR_DCDMIS_V(e)     BF_UARTAPP_INTR_DCDMIS(BV_UARTAPP_INTR_DCDMIS__##e)
#define BFM_UARTAPP_INTR_DCDMIS_V(v)    BM_UARTAPP_INTR_DCDMIS
#define BP_UARTAPP_INTR_CTSMIS          1
#define BM_UARTAPP_INTR_CTSMIS          0x2
#define BF_UARTAPP_INTR_CTSMIS(v)       (((v) & 0x1) << 1)
#define BFM_UARTAPP_INTR_CTSMIS(v)      BM_UARTAPP_INTR_CTSMIS
#define BF_UARTAPP_INTR_CTSMIS_V(e)     BF_UARTAPP_INTR_CTSMIS(BV_UARTAPP_INTR_CTSMIS__##e)
#define BFM_UARTAPP_INTR_CTSMIS_V(v)    BM_UARTAPP_INTR_CTSMIS
#define BP_UARTAPP_INTR_RIMIS           0
#define BM_UARTAPP_INTR_RIMIS           0x1
#define BF_UARTAPP_INTR_RIMIS(v)        (((v) & 0x1) << 0)
#define BFM_UARTAPP_INTR_RIMIS(v)       BM_UARTAPP_INTR_RIMIS
#define BF_UARTAPP_INTR_RIMIS_V(e)      BF_UARTAPP_INTR_RIMIS(BV_UARTAPP_INTR_RIMIS__##e)
#define BFM_UARTAPP_INTR_RIMIS_V(v)     BM_UARTAPP_INTR_RIMIS

#define HW_UARTAPP_DATA             HW(UARTAPP_DATA)
#define HWA_UARTAPP_DATA            (0x8006c000 + 0x50)
#define HWT_UARTAPP_DATA            HWIO_32_RW
#define HWN_UARTAPP_DATA            UARTAPP_DATA
#define HWI_UARTAPP_DATA            
#define BP_UARTAPP_DATA_DATA        0
#define BM_UARTAPP_DATA_DATA        0xffffffff
#define BF_UARTAPP_DATA_DATA(v)     (((v) & 0xffffffff) << 0)
#define BFM_UARTAPP_DATA_DATA(v)    BM_UARTAPP_DATA_DATA
#define BF_UARTAPP_DATA_DATA_V(e)   BF_UARTAPP_DATA_DATA(BV_UARTAPP_DATA_DATA__##e)
#define BFM_UARTAPP_DATA_DATA_V(v)  BM_UARTAPP_DATA_DATA

#define HW_UARTAPP_STAT                         HW(UARTAPP_STAT)
#define HWA_UARTAPP_STAT                        (0x8006c000 + 0x60)
#define HWT_UARTAPP_STAT                        HWIO_32_RW
#define HWN_UARTAPP_STAT                        UARTAPP_STAT
#define HWI_UARTAPP_STAT                        
#define BP_UARTAPP_STAT_PRESENT                 31
#define BM_UARTAPP_STAT_PRESENT                 0x80000000
#define BV_UARTAPP_STAT_PRESENT__UNAVAILABLE    0x0
#define BV_UARTAPP_STAT_PRESENT__AVAILABLE      0x1
#define BF_UARTAPP_STAT_PRESENT(v)              (((v) & 0x1) << 31)
#define BFM_UARTAPP_STAT_PRESENT(v)             BM_UARTAPP_STAT_PRESENT
#define BF_UARTAPP_STAT_PRESENT_V(e)            BF_UARTAPP_STAT_PRESENT(BV_UARTAPP_STAT_PRESENT__##e)
#define BFM_UARTAPP_STAT_PRESENT_V(v)           BM_UARTAPP_STAT_PRESENT
#define BP_UARTAPP_STAT_HISPEED                 30
#define BM_UARTAPP_STAT_HISPEED                 0x40000000
#define BV_UARTAPP_STAT_HISPEED__UNAVAILABLE    0x0
#define BV_UARTAPP_STAT_HISPEED__AVAILABLE      0x1
#define BF_UARTAPP_STAT_HISPEED(v)              (((v) & 0x1) << 30)
#define BFM_UARTAPP_STAT_HISPEED(v)             BM_UARTAPP_STAT_HISPEED
#define BF_UARTAPP_STAT_HISPEED_V(e)            BF_UARTAPP_STAT_HISPEED(BV_UARTAPP_STAT_HISPEED__##e)
#define BFM_UARTAPP_STAT_HISPEED_V(v)           BM_UARTAPP_STAT_HISPEED
#define BP_UARTAPP_STAT_BUSY                    29
#define BM_UARTAPP_STAT_BUSY                    0x20000000
#define BF_UARTAPP_STAT_BUSY(v)                 (((v) & 0x1) << 29)
#define BFM_UARTAPP_STAT_BUSY(v)                BM_UARTAPP_STAT_BUSY
#define BF_UARTAPP_STAT_BUSY_V(e)               BF_UARTAPP_STAT_BUSY(BV_UARTAPP_STAT_BUSY__##e)
#define BFM_UARTAPP_STAT_BUSY_V(v)              BM_UARTAPP_STAT_BUSY
#define BP_UARTAPP_STAT_CTS                     28
#define BM_UARTAPP_STAT_CTS                     0x10000000
#define BF_UARTAPP_STAT_CTS(v)                  (((v) & 0x1) << 28)
#define BFM_UARTAPP_STAT_CTS(v)                 BM_UARTAPP_STAT_CTS
#define BF_UARTAPP_STAT_CTS_V(e)                BF_UARTAPP_STAT_CTS(BV_UARTAPP_STAT_CTS__##e)
#define BFM_UARTAPP_STAT_CTS_V(v)               BM_UARTAPP_STAT_CTS
#define BP_UARTAPP_STAT_TXFE                    27
#define BM_UARTAPP_STAT_TXFE                    0x8000000
#define BF_UARTAPP_STAT_TXFE(v)                 (((v) & 0x1) << 27)
#define BFM_UARTAPP_STAT_TXFE(v)                BM_UARTAPP_STAT_TXFE
#define BF_UARTAPP_STAT_TXFE_V(e)               BF_UARTAPP_STAT_TXFE(BV_UARTAPP_STAT_TXFE__##e)
#define BFM_UARTAPP_STAT_TXFE_V(v)              BM_UARTAPP_STAT_TXFE
#define BP_UARTAPP_STAT_RXFF                    26
#define BM_UARTAPP_STAT_RXFF                    0x4000000
#define BF_UARTAPP_STAT_RXFF(v)                 (((v) & 0x1) << 26)
#define BFM_UARTAPP_STAT_RXFF(v)                BM_UARTAPP_STAT_RXFF
#define BF_UARTAPP_STAT_RXFF_V(e)               BF_UARTAPP_STAT_RXFF(BV_UARTAPP_STAT_RXFF__##e)
#define BFM_UARTAPP_STAT_RXFF_V(v)              BM_UARTAPP_STAT_RXFF
#define BP_UARTAPP_STAT_TXFF                    25
#define BM_UARTAPP_STAT_TXFF                    0x2000000
#define BF_UARTAPP_STAT_TXFF(v)                 (((v) & 0x1) << 25)
#define BFM_UARTAPP_STAT_TXFF(v)                BM_UARTAPP_STAT_TXFF
#define BF_UARTAPP_STAT_TXFF_V(e)               BF_UARTAPP_STAT_TXFF(BV_UARTAPP_STAT_TXFF__##e)
#define BFM_UARTAPP_STAT_TXFF_V(v)              BM_UARTAPP_STAT_TXFF
#define BP_UARTAPP_STAT_RXFE                    24
#define BM_UARTAPP_STAT_RXFE                    0x1000000
#define BF_UARTAPP_STAT_RXFE(v)                 (((v) & 0x1) << 24)
#define BFM_UARTAPP_STAT_RXFE(v)                BM_UARTAPP_STAT_RXFE
#define BF_UARTAPP_STAT_RXFE_V(e)               BF_UARTAPP_STAT_RXFE(BV_UARTAPP_STAT_RXFE__##e)
#define BFM_UARTAPP_STAT_RXFE_V(v)              BM_UARTAPP_STAT_RXFE
#define BP_UARTAPP_STAT_RXBYTE_INVALID          20
#define BM_UARTAPP_STAT_RXBYTE_INVALID          0xf00000
#define BF_UARTAPP_STAT_RXBYTE_INVALID(v)       (((v) & 0xf) << 20)
#define BFM_UARTAPP_STAT_RXBYTE_INVALID(v)      BM_UARTAPP_STAT_RXBYTE_INVALID
#define BF_UARTAPP_STAT_RXBYTE_INVALID_V(e)     BF_UARTAPP_STAT_RXBYTE_INVALID(BV_UARTAPP_STAT_RXBYTE_INVALID__##e)
#define BFM_UARTAPP_STAT_RXBYTE_INVALID_V(v)    BM_UARTAPP_STAT_RXBYTE_INVALID
#define BP_UARTAPP_STAT_OERR                    19
#define BM_UARTAPP_STAT_OERR                    0x80000
#define BF_UARTAPP_STAT_OERR(v)                 (((v) & 0x1) << 19)
#define BFM_UARTAPP_STAT_OERR(v)                BM_UARTAPP_STAT_OERR
#define BF_UARTAPP_STAT_OERR_V(e)               BF_UARTAPP_STAT_OERR(BV_UARTAPP_STAT_OERR__##e)
#define BFM_UARTAPP_STAT_OERR_V(v)              BM_UARTAPP_STAT_OERR
#define BP_UARTAPP_STAT_BERR                    18
#define BM_UARTAPP_STAT_BERR                    0x40000
#define BF_UARTAPP_STAT_BERR(v)                 (((v) & 0x1) << 18)
#define BFM_UARTAPP_STAT_BERR(v)                BM_UARTAPP_STAT_BERR
#define BF_UARTAPP_STAT_BERR_V(e)               BF_UARTAPP_STAT_BERR(BV_UARTAPP_STAT_BERR__##e)
#define BFM_UARTAPP_STAT_BERR_V(v)              BM_UARTAPP_STAT_BERR
#define BP_UARTAPP_STAT_PERR                    17
#define BM_UARTAPP_STAT_PERR                    0x20000
#define BF_UARTAPP_STAT_PERR(v)                 (((v) & 0x1) << 17)
#define BFM_UARTAPP_STAT_PERR(v)                BM_UARTAPP_STAT_PERR
#define BF_UARTAPP_STAT_PERR_V(e)               BF_UARTAPP_STAT_PERR(BV_UARTAPP_STAT_PERR__##e)
#define BFM_UARTAPP_STAT_PERR_V(v)              BM_UARTAPP_STAT_PERR
#define BP_UARTAPP_STAT_FERR                    16
#define BM_UARTAPP_STAT_FERR                    0x10000
#define BF_UARTAPP_STAT_FERR(v)                 (((v) & 0x1) << 16)
#define BFM_UARTAPP_STAT_FERR(v)                BM_UARTAPP_STAT_FERR
#define BF_UARTAPP_STAT_FERR_V(e)               BF_UARTAPP_STAT_FERR(BV_UARTAPP_STAT_FERR__##e)
#define BFM_UARTAPP_STAT_FERR_V(v)              BM_UARTAPP_STAT_FERR
#define BP_UARTAPP_STAT_RXCOUNT                 0
#define BM_UARTAPP_STAT_RXCOUNT                 0xffff
#define BF_UARTAPP_STAT_RXCOUNT(v)              (((v) & 0xffff) << 0)
#define BFM_UARTAPP_STAT_RXCOUNT(v)             BM_UARTAPP_STAT_RXCOUNT
#define BF_UARTAPP_STAT_RXCOUNT_V(e)            BF_UARTAPP_STAT_RXCOUNT(BV_UARTAPP_STAT_RXCOUNT__##e)
#define BFM_UARTAPP_STAT_RXCOUNT_V(v)           BM_UARTAPP_STAT_RXCOUNT

#define HW_UARTAPP_DEBUG                HW(UARTAPP_DEBUG)
#define HWA_UARTAPP_DEBUG               (0x8006c000 + 0x70)
#define HWT_UARTAPP_DEBUG               HWIO_32_RW
#define HWN_UARTAPP_DEBUG               UARTAPP_DEBUG
#define HWI_UARTAPP_DEBUG               
#define BP_UARTAPP_DEBUG_TXDMARUN       5
#define BM_UARTAPP_DEBUG_TXDMARUN       0x20
#define BF_UARTAPP_DEBUG_TXDMARUN(v)    (((v) & 0x1) << 5)
#define BFM_UARTAPP_DEBUG_TXDMARUN(v)   BM_UARTAPP_DEBUG_TXDMARUN
#define BF_UARTAPP_DEBUG_TXDMARUN_V(e)  BF_UARTAPP_DEBUG_TXDMARUN(BV_UARTAPP_DEBUG_TXDMARUN__##e)
#define BFM_UARTAPP_DEBUG_TXDMARUN_V(v) BM_UARTAPP_DEBUG_TXDMARUN
#define BP_UARTAPP_DEBUG_RXDMARUN       4
#define BM_UARTAPP_DEBUG_RXDMARUN       0x10
#define BF_UARTAPP_DEBUG_RXDMARUN(v)    (((v) & 0x1) << 4)
#define BFM_UARTAPP_DEBUG_RXDMARUN(v)   BM_UARTAPP_DEBUG_RXDMARUN
#define BF_UARTAPP_DEBUG_RXDMARUN_V(e)  BF_UARTAPP_DEBUG_RXDMARUN(BV_UARTAPP_DEBUG_RXDMARUN__##e)
#define BFM_UARTAPP_DEBUG_RXDMARUN_V(v) BM_UARTAPP_DEBUG_RXDMARUN
#define BP_UARTAPP_DEBUG_TXCMDEND       3
#define BM_UARTAPP_DEBUG_TXCMDEND       0x8
#define BF_UARTAPP_DEBUG_TXCMDEND(v)    (((v) & 0x1) << 3)
#define BFM_UARTAPP_DEBUG_TXCMDEND(v)   BM_UARTAPP_DEBUG_TXCMDEND
#define BF_UARTAPP_DEBUG_TXCMDEND_V(e)  BF_UARTAPP_DEBUG_TXCMDEND(BV_UARTAPP_DEBUG_TXCMDEND__##e)
#define BFM_UARTAPP_DEBUG_TXCMDEND_V(v) BM_UARTAPP_DEBUG_TXCMDEND
#define BP_UARTAPP_DEBUG_RXCMDEND       2
#define BM_UARTAPP_DEBUG_RXCMDEND       0x4
#define BF_UARTAPP_DEBUG_RXCMDEND(v)    (((v) & 0x1) << 2)
#define BFM_UARTAPP_DEBUG_RXCMDEND(v)   BM_UARTAPP_DEBUG_RXCMDEND
#define BF_UARTAPP_DEBUG_RXCMDEND_V(e)  BF_UARTAPP_DEBUG_RXCMDEND(BV_UARTAPP_DEBUG_RXCMDEND__##e)
#define BFM_UARTAPP_DEBUG_RXCMDEND_V(v) BM_UARTAPP_DEBUG_RXCMDEND
#define BP_UARTAPP_DEBUG_TXDMARQ        1
#define BM_UARTAPP_DEBUG_TXDMARQ        0x2
#define BF_UARTAPP_DEBUG_TXDMARQ(v)     (((v) & 0x1) << 1)
#define BFM_UARTAPP_DEBUG_TXDMARQ(v)    BM_UARTAPP_DEBUG_TXDMARQ
#define BF_UARTAPP_DEBUG_TXDMARQ_V(e)   BF_UARTAPP_DEBUG_TXDMARQ(BV_UARTAPP_DEBUG_TXDMARQ__##e)
#define BFM_UARTAPP_DEBUG_TXDMARQ_V(v)  BM_UARTAPP_DEBUG_TXDMARQ
#define BP_UARTAPP_DEBUG_RXDMARQ        0
#define BM_UARTAPP_DEBUG_RXDMARQ        0x1
#define BF_UARTAPP_DEBUG_RXDMARQ(v)     (((v) & 0x1) << 0)
#define BFM_UARTAPP_DEBUG_RXDMARQ(v)    BM_UARTAPP_DEBUG_RXDMARQ
#define BF_UARTAPP_DEBUG_RXDMARQ_V(e)   BF_UARTAPP_DEBUG_RXDMARQ(BV_UARTAPP_DEBUG_RXDMARQ__##e)
#define BFM_UARTAPP_DEBUG_RXDMARQ_V(v)  BM_UARTAPP_DEBUG_RXDMARQ

#endif /* __HEADERGEN_STMP3600_UARTAPP_H__*/
