> > > I can't find a way to get at uec_info_t/STD_UEC_INFO from my board_eth_init() > in current u-boot. Am I missing something? > Also > drivers/qe/uec.h:int uec_initialize(bd_t *bis, uec_info_t *uec_info); > include/netdev.h:int uec_initialize(int index); > different prototypes for the same function.
BTW, I am looking for a way to swap the order of ethernet interfaces: static uec_info_t uec_info[] = { #ifdef CONFIG_UEC_ETH1 STD_UEC_INFO(1), /* UEC1 */ #endif #ifdef CONFIG_UEC_ETH2 STD_UEC_INFO(2), /* UEC2 */ #endif #ifdef CONFIG_UEC_ETH3 STD_UEC_INFO(3), /* UEC3 */ #endif }; Sometimes I want ETH2 to be the first and ETH1 the second I/F and I do this dynamically depending on actual HW detected. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot