Home | History | Annotate | Download | only in include

Lines Matching refs:num

32 #define TSEC_GET_REGS(num, offset) \
34 (TSEC_BASE_ADDR + (((num) - 1) * (offset)))
36 #define TSEC_GET_REGS_BASE(num) \
37 TSEC_GET_REGS((num), TSEC_SIZE)
39 #define TSEC_GET_MDIO_REGS(num, offset) \
41 (CONFIG_SYS_MDIO_BASE_ADDR + ((num) - 1) * (offset))
43 #define TSEC_GET_MDIO_REGS_BASE(num) \
44 TSEC_GET_MDIO_REGS((num), TSEC_MDIO_OFFSET)
48 #define STD_TSEC_INFO(num) \
50 .regs = TSEC_GET_REGS_BASE(num), \
51 .miiregs_sgmii = TSEC_GET_MDIO_REGS_BASE(num), \
52 .devname = CONFIG_TSEC##num##_NAME, \
53 .phyaddr = TSEC##num##_PHY_ADDR, \
54 .flags = TSEC##num##_FLAGS, \
58 #define SET_STD_TSEC_INFO(x, num) \
60 x.regs = TSEC_GET_REGS_BASE(num); \
61 x.miiregs_sgmii = TSEC_GET_MDIO_REGS_BASE(num); \
62 x.devname = CONFIG_TSEC##num##_NAME; \
63 x.phyaddr = TSEC##num##_PHY_ADDR; \
64 x.flags = TSEC##num##_FLAGS;\
428 int tsec_eth_init(bd_t *bis, struct tsec_info_struct *tsec_info, int num);