Lines Matching refs:bi
280 static void mi1_mdio_init(adapter_t *adapter, const struct board_info *bi) in mi1_mdio_init() argument
282 u32 clkdiv = bi->clock_elmer0 / (2 * bi->mdio_mdc) - 1; in mi1_mdio_init()
283 u32 val = F_MI1_PREAMBLE_ENABLE | V_MI1_MDI_INVERT(bi->mdio_mdiinv) | in mi1_mdio_init()
284 V_MI1_MDI_ENABLE(bi->mdio_mdien) | V_MI1_CLK_DIV(clkdiv); in mi1_mdio_init()
286 if (!(bi->caps & SUPPORTED_10000baseT_Full)) in mi1_mdio_init()
920 int t1_get_board_rev(adapter_t *adapter, const struct board_info *bi, in t1_get_board_rev() argument
923 p->chip_version = bi->chip_term; in t1_get_board_rev()
946 static int board_init(adapter_t *adapter, const struct board_info *bi) in board_init() argument
948 switch (bi->board) { in board_init()
991 const struct board_info *bi = board_info(adapter); in t1_init_hw_modules() local
993 if (!bi->clock_mc4) { in t1_init_hw_modules()
1001 if (adapter->espi && t1_espi_init(adapter->espi, bi->chip_mac, in t1_init_hw_modules()
1002 bi->espi_nports)) in t1_init_hw_modules()
1005 if (t1_tp_reset(adapter->tp, &adapter->params.tp, bi->clock_core)) in t1_init_hw_modules()
1057 const struct board_info *bi) in init_link_config() argument
1059 lc->supported = bi->caps; in init_link_config()
1077 int t1_init_sw_modules(adapter_t *adapter, const struct board_info *bi) in t1_init_sw_modules() argument
1081 adapter->params.brd_info = bi; in t1_init_sw_modules()
1082 adapter->params.nports = bi->port_number; in t1_init_sw_modules()
1083 adapter->params.stats_update_period = bi->gmac->stats_update_period; in t1_init_sw_modules()
1092 if (bi->espi_nports && !(adapter->espi = t1_espi_create(adapter))) { in t1_init_sw_modules()
1105 board_init(adapter, bi); in t1_init_sw_modules()
1106 bi->mdio_ops->init(adapter, bi); in t1_init_sw_modules()
1107 if (bi->gphy->reset) in t1_init_sw_modules()
1108 bi->gphy->reset(adapter); in t1_init_sw_modules()
1109 if (bi->gmac->reset) in t1_init_sw_modules()
1110 bi->gmac->reset(adapter); in t1_init_sw_modules()
1115 int phy_addr = bi->mdio_phybaseaddr + i; in t1_init_sw_modules()
1117 adapter->port[i].phy = bi->gphy->create(adapter->port[i].dev, in t1_init_sw_modules()
1118 phy_addr, bi->mdio_ops); in t1_init_sw_modules()
1125 adapter->port[i].mac = mac = bi->gmac->create(adapter, i); in t1_init_sw_modules()
1136 if (!t1_is_asic(adapter) || bi->chip_mac == CHBT_MAC_DUMMY) in t1_init_sw_modules()
1144 init_link_config(&adapter->port[i].link_config, bi); in t1_init_sw_modules()