Ignore:
Timestamp:
2018-03-26T20:04:11Z (7 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eb748a0
Parents:
b752a31
Message:

Modify PADDn macros so that their use is easier to parse.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/platform/amdm37x/prm/global_reg.h

    rb752a31 raf60409  
    4646 */
    4747typedef struct {
    48         PADD32[8];
     48        PADD32(8);
    4949        struct {
    5050                ioport32_t smps_sa;
     
    133133        } vc;
    134134
    135         PADD32[4];
     135        PADD32(4);
    136136        ioport32_t rstctrl;
    137137#define GLOBAL_REG_PRM_RSTCTRL_RST_DPLL3_FLAG   (1 << 2)
     
    156156#define GLOBAL_REG_PRM_RSTST_GLOABL_COLD_RST_FLAG   (1 << 0)
    157157
    158         PADD32;
     158        PADD32(1);
    159159        ioport32_t volctrl;
    160160#define GLOBAL_REG_PRM_VOLCTRL_SEL_VMODE_FLAG   (1 << 4)
     
    169169#define GLOBAL_REG_PRM_SRAM_PCHARGE_PCHARGE_TIME_GET(r)   ((r) & 0xff)
    170170
    171         PADD32[2];
     171        PADD32(2);
    172172        ioport32_t clksrc_ctrl;
    173173#define GLOBAL_REG_PRM_CLKSRC_CTRL_DPLL4_CLKINP_DIV_65_FLAG   (1 << 8)
     
    188188#define GLOBAL_REG_PRM_CLKSRC_CTRL_SYSCLKSEL_GET(r)   (((r) >> 0) & 0x3)
    189189
    190         PADD32[3];
     190        PADD32(3);
    191191        const ioport32_t obs;
    192192#define GLOBAL_REG_PRM_OBS_OBS_BUS_MASK   (0x3ff)
    193193
    194         PADD32[3];
     194        PADD32(3);
    195195        ioport32_t voltsetup1;
    196196#define GLOBAL_REG_PRM_VOLTSETUP1_SETUPTIME2_MASK   (0xff << 16)
     
    222222#define GLOBAL_REG_PRM_VOLTSETUP2_OFFMODESETUPTIME_GET(r)   (((r) >> 0) & 0xffff)
    223223
    224         PADD32[3];
     224        PADD32(3);
    225225        struct {
    226226                ioport32_t config;
     
    273273#define GLOBAL_REG_PRM_VP_STATUS_VPINIDLE_FLAG   (1 << 0)
    274274
    275                 PADD32[2];
     275                PADD32(2);
    276276        } vp[2];
    277277
Note: See TracChangeset for help on using the changeset viewer.