Lines Matching +full:x1000 +full:- +full:mac

9  * Copyright (C) 2006-2009 Felix Fietkau <nbd@openwrt.org>
49 if (check_radio_magic(addr + 0x1000)) in check_board_data()
61 const void __iomem *begin = limit - 0x1000; in find_board_config()
62 const void __iomem *end = limit - 0x30000; in find_board_config()
64 for (addr = begin; addr >= end; addr -= 0x1000) in find_board_config()
78 * Search forward from Board Configuration data by 0x1000 bytes in find_radio_config()
79 * at a time until we find non-0xffffffff. in find_radio_config()
81 begin = bcfg + 0x1000; in find_radio_config()
83 for (rcfg = begin; rcfg < end; rcfg += 0x1000) in find_radio_config()
89 end = limit - 0x1000 + 0xf8; in find_radio_config()
90 for (rcfg = begin; rcfg < end; rcfg += 0x1000) in find_radio_config()
145 if (is_zero_ether_addr(config->enet0_mac)) { in ath25_find_config()
146 pr_info("Fixing up empty mac addresses\n"); in ath25_find_config()
147 config->reset_config_gpio = 0xffff; in ath25_find_config()
148 config->sys_led_gpio = 0xffff; in ath25_find_config()
149 eth_random_addr(config->wlan0_mac); in ath25_find_config()
150 config->wlan0_mac[0] &= ~0x06; in ath25_find_config()
151 eth_random_addr(config->enet0_mac); in ath25_find_config()
152 eth_random_addr(config->enet1_mac); in ath25_find_config()
165 radio_data = board_data + 0x100 + ((rcfg - bcfg) & 0xfff); in ath25_find_config()
167 offset = radio_data - board_data; in ath25_find_config()
168 pr_info("Radio config found at offset 0x%x (0x%x)\n", rcfg - bcfg, in ath25_find_config()
170 rcfg_size = BOARD_CONFIG_BUFSZ - offset; in ath25_find_config()
175 pr_info("Radio MAC is blank; using board-data\n"); in ath25_find_config()
176 ether_addr_copy(mac_addr, ath25_board.config->wlan0_mac); in ath25_find_config()
185 return -ENODEV; in ath25_find_config()