Lines Matching +full:no +full:- +full:eeprom

2  * Copyright (c) 2008-2009 Atheros Communications Inc.
12 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
38 struct ath5k_hw *ah = common->priv; in ath5k_ahb_eeprom_read()
39 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read()
40 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath5k_ahb_eeprom_read()
41 u16 *eeprom, *eeprom_end; in ath5k_ahb_eeprom_read() local
43 eeprom = (u16 *) bcfg->radio; in ath5k_ahb_eeprom_read()
44 eeprom_end = ((void *) bcfg->config) + BOARD_CONFIG_BUFSZ; in ath5k_ahb_eeprom_read()
46 eeprom += off; in ath5k_ahb_eeprom_read()
47 if (eeprom > eeprom_end) in ath5k_ahb_eeprom_read()
50 *data = *eeprom; in ath5k_ahb_eeprom_read()
56 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_hw_read_srev()
57 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath5k_hw_read_srev()
58 ah->ah_mac_srev = bcfg->devid; in ath5k_hw_read_srev()
64 struct platform_device *pdev = to_platform_device(ah->dev); in ath5k_ahb_eeprom_read_mac()
65 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath5k_ahb_eeprom_read_mac()
68 if (to_platform_device(ah->dev)->id == 0) in ath5k_ahb_eeprom_read_mac()
69 cfg_mac = bcfg->config->wlan0_mac; in ath5k_ahb_eeprom_read_mac()
71 cfg_mac = bcfg->config->wlan1_mac; in ath5k_ahb_eeprom_read_mac()
87 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath_ahb_probe()
96 if (!dev_get_platdata(&pdev->dev)) { in ath_ahb_probe()
97 dev_err(&pdev->dev, "no platform data specified\n"); in ath_ahb_probe()
98 ret = -EINVAL; in ath_ahb_probe()
104 dev_err(&pdev->dev, "no memory resource found\n"); in ath_ahb_probe()
105 ret = -ENXIO; in ath_ahb_probe()
109 mem = ioremap(res->start, resource_size(res)); in ath_ahb_probe()
111 dev_err(&pdev->dev, "ioremap failed\n"); in ath_ahb_probe()
112 ret = -ENOMEM; in ath_ahb_probe()
118 dev_err(&pdev->dev, "no IRQ resource found\n"); in ath_ahb_probe()
119 ret = -ENXIO; in ath_ahb_probe()
123 irq = res->start; in ath_ahb_probe()
127 dev_err(&pdev->dev, "no memory for ieee80211_hw\n"); in ath_ahb_probe()
128 ret = -ENOMEM; in ath_ahb_probe()
132 ah = hw->priv; in ath_ahb_probe()
133 ah->hw = hw; in ath_ahb_probe()
134 ah->dev = &pdev->dev; in ath_ahb_probe()
135 ah->iobase = mem; in ath_ahb_probe()
136 ah->irq = irq; in ath_ahb_probe()
137 ah->devid = bcfg->devid; in ath_ahb_probe()
139 if (bcfg->devid >= AR5K_SREV_AR2315_R6) { in ath_ahb_probe()
153 if (to_platform_device(ah->dev)->id == 0) in ath_ahb_probe()
160 * On a dual-band AR5312, the multiband radio is only in ath_ahb_probe()
161 * used as pass-through. Disable 2 GHz support in the in ath_ahb_probe()
164 if (to_platform_device(ah->dev)->id == 0 && in ath_ahb_probe()
165 (bcfg->config->flags & (BD_WLAN0 | BD_WLAN1)) == in ath_ahb_probe()
167 ah->ah_capabilities.cap_needs_2GHz_ovr = true; in ath_ahb_probe()
169 ah->ah_capabilities.cap_needs_2GHz_ovr = false; in ath_ahb_probe()
174 dev_err(&pdev->dev, "failed to attach device, err=%d\n", ret); in ath_ahb_probe()
175 ret = -ENODEV; in ath_ahb_probe()
193 struct ar231x_board_config *bcfg = dev_get_platdata(&pdev->dev); in ath_ahb_remove()
201 ah = hw->priv; in ath_ahb_remove()
203 if (bcfg->devid >= AR5K_SREV_AR2315_R6) { in ath_ahb_remove()
211 if (to_platform_device(ah->dev)->id == 0) in ath_ahb_remove()
219 iounmap(ah->iobase); in ath_ahb_remove()
229 .name = "ar231x-wmac",