iwlwifi: move iwl4965_get_dma_hi_address function to iwl-helpers.h
This patch moves iwl4965_get_dma_hi_address function to iwl-headers.h as iwl_get_dma_hi_address. This function will be used in more chipsets than only 4965. 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
David S. Miller
parent
440d42c30c
commit
6a218f6f3b
@ -252,4 +252,9 @@ static inline unsigned long elapsed_jiffies(unsigned long start,
|
||||
return end + (MAX_JIFFY_OFFSET - start);
|
||||
}
|
||||
|
||||
static inline u8 iwl_get_dma_hi_address(dma_addr_t addr)
|
||||
{
|
||||
return sizeof(addr) > sizeof(u32) ? (addr >> 16) >> 16 : 0;
|
||||
}
|
||||
|
||||
#endif /* __iwl_helpers_h__ */
|
||||
|
Reference in New Issue
Block a user