Example #1
0
static void __init rb1xx_mac_setup(void)
{
	if (rb_hs.mac_base != NULL && is_valid_ether_addr(rb_hs.mac_base)) {
		adm5120_setup_eth_macs(rb_hs.mac_base);
	} else {
		u8 mac[ETH_ALEN];

		random_ether_addr(mac);
		adm5120_setup_eth_macs(mac);
	}
}
Example #2
0
static void __init br61xx_mac_setup(void)
{
    u8 mac_base[6];
    int err;

    err = admboot_get_mac_base(BR61XX_CONFIG_OFFSET,
                               BR61XX_CONFIG_SIZE, mac_base);

    if ((err) || !is_valid_ether_addr(mac_base))
        random_ether_addr(mac_base);

    adm5120_setup_eth_macs(mac_base);
}
Example #3
0
void __init cellvision_mac_setup(void)
{
	u8 mac_base[6];
	int err;

	err = admboot_get_mac_base(CELLVISION_CONFIG_OFFSET,
				   CELLVISION_CONFIG_SIZE, mac_base);

	if ((err) || !is_valid_ether_addr(mac_base))
		random_ether_addr(mac_base);

	adm5120_setup_eth_macs(mac_base);
}
Example #4
0
static __init void pmugw_setup_mac(void)
{
	u8 mac_base[6];
	int err;

	err = admboot_get_mac_base(PMUGW_CONFIG_OFFSET,
				   PMUGW_CONFIG_SIZE, mac_base);

	if ((err) || !is_valid_ether_addr(mac_base))
		random_ether_addr(mac_base);

	adm5120_setup_eth_macs(mac_base);
}
Example #5
0
static void __init eb214a_mac_setup(void)
{
	u8 mac_base[6];
	u8 *cfg;
	int i;

	cfg = (u8 *) KSEG1ADDR(ADM5120_SRAM0_BASE + EB214A_CONFIG_OFFSET);
	for (i = 0; i < 6; i++)
		mac_base[i] = cfg[i];

	if (!is_valid_ether_addr(mac_base))
		random_ether_addr(mac_base);

	adm5120_setup_eth_macs(mac_base);
}