iwlwifi: replace readl and writel with io/read/write/32
This patch replaces readl and writel with more cross platform ioread32 and iowrite32. Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
committed by
John W. Linville
parent
9257746f26
commit
f5efde3b1d
@@ -59,7 +59,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _iwl3945_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs))
|
#define _iwl3945_write32(priv, ofs, val) iowrite32((val), (priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWL3945_DEBUG
|
#ifdef CONFIG_IWL3945_DEBUG
|
||||||
static inline void __iwl3945_write32(const char *f, u32 l, struct iwl3945_priv *priv,
|
static inline void __iwl3945_write32(const char *f, u32 l, struct iwl3945_priv *priv,
|
||||||
u32 ofs, u32 val)
|
u32 ofs, u32 val)
|
||||||
@@ -73,7 +73,7 @@ static inline void __iwl3945_write32(const char *f, u32 l, struct iwl3945_priv *
|
|||||||
#define iwl3945_write32(priv, ofs, val) _iwl3945_write32(priv, ofs, val)
|
#define iwl3945_write32(priv, ofs, val) _iwl3945_write32(priv, ofs, val)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _iwl3945_read32(priv, ofs) readl((priv)->hw_base + (ofs))
|
#define _iwl3945_read32(priv, ofs) ioread32((priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWL3945_DEBUG
|
#ifdef CONFIG_IWL3945_DEBUG
|
||||||
static inline u32 __iwl3945_read32(char *f, u32 l, struct iwl3945_priv *priv, u32 ofs)
|
static inline u32 __iwl3945_read32(char *f, u32 l, struct iwl3945_priv *priv, u32 ofs)
|
||||||
{
|
{
|
||||||
|
@@ -61,7 +61,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define _iwl_write32(priv, ofs, val) writel((val), (priv)->hw_base + (ofs))
|
#define _iwl_write32(priv, ofs, val) iowrite32((val), (priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUG
|
#ifdef CONFIG_IWLWIFI_DEBUG
|
||||||
static inline void __iwl_write32(const char *f, u32 l, struct iwl_priv *priv,
|
static inline void __iwl_write32(const char *f, u32 l, struct iwl_priv *priv,
|
||||||
u32 ofs, u32 val)
|
u32 ofs, u32 val)
|
||||||
@@ -75,7 +75,7 @@ static inline void __iwl_write32(const char *f, u32 l, struct iwl_priv *priv,
|
|||||||
#define iwl_write32(priv, ofs, val) _iwl_write32(priv, ofs, val)
|
#define iwl_write32(priv, ofs, val) _iwl_write32(priv, ofs, val)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define _iwl_read32(priv, ofs) readl((priv)->hw_base + (ofs))
|
#define _iwl_read32(priv, ofs) ioread32((priv)->hw_base + (ofs))
|
||||||
#ifdef CONFIG_IWLWIFI_DEBUG
|
#ifdef CONFIG_IWLWIFI_DEBUG
|
||||||
static inline u32 __iwl_read32(char *f, u32 l, struct iwl_priv *priv, u32 ofs)
|
static inline u32 __iwl_read32(char *f, u32 l, struct iwl_priv *priv, u32 ofs)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user