ath5k.h (0e5d3ab532dd6bd43406d91b1dacb391973f831f) ath5k.h (164a974889c03cbc6559923b8c1da8762904c560)
1/*
2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2007 Nick Kossifidis <mickflemm@gmail.com>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 1633 unchanged lines hidden (view full) ---

1642 return &ah->common;
1643}
1644
1645static inline struct ath_regulatory *ath5k_hw_regulatory(struct ath5k_hw *ah)
1646{
1647 return &(ath5k_hw_common(ah)->regulatory);
1648}
1649
1/*
2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org>
3 * Copyright (c) 2006-2007 Nick Kossifidis <mickflemm@gmail.com>
4 *
5 * Permission to use, copy, modify, and distribute this software for any
6 * purpose with or without fee is hereby granted, provided that the above
7 * copyright notice and this permission notice appear in all copies.
8 *

--- 1633 unchanged lines hidden (view full) ---

1642 return &ah->common;
1643}
1644
1645static inline struct ath_regulatory *ath5k_hw_regulatory(struct ath5k_hw *ah)
1646{
1647 return &(ath5k_hw_common(ah)->regulatory);
1648}
1649
1650#ifdef CONFIG_ATHEROS_AR231X
1650#ifdef CONFIG_ATH5K_AHB
1651#define AR5K_AR2315_PCI_BASE ((void __iomem *)0xb0100000)
1652
1653static inline void __iomem *ath5k_ahb_reg(struct ath5k_hw *ah, u16 reg)
1654{
1655 /* On AR2315 and AR2317 the PCI clock domain registers
1656 * are outside of the WMAC register space */
1657 if (unlikely((reg >= 0x4000) && (reg < 0x5000) &&
1658 (ah->ah_mac_srev >= AR5K_SREV_AR2315_R6)))

--- 58 unchanged lines hidden ---
1651#define AR5K_AR2315_PCI_BASE ((void __iomem *)0xb0100000)
1652
1653static inline void __iomem *ath5k_ahb_reg(struct ath5k_hw *ah, u16 reg)
1654{
1655 /* On AR2315 and AR2317 the PCI clock domain registers
1656 * are outside of the WMAC register space */
1657 if (unlikely((reg >= 0x4000) && (reg < 0x5000) &&
1658 (ah->ah_mac_srev >= AR5K_SREV_AR2315_R6)))

--- 58 unchanged lines hidden ---