"storage/innobase/mtr/mtr0mtr.c" did not exist on "253bf9861b06da3ea132aadfd5e1a60e7d9c3c2f"
Commit bb8c093b authored by Christoph Hellwig's avatar Christoph Hellwig Committed by David S. Miller

iwlwifi: cleanup namespace

Prefix all symbols with iwl3945_ or iwl4965_ and thus allow building
the driver into the kernel. Also remove all the useless default
statements in Kconfig while we're at it.
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarZhu Yi <yi.zhu@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 403ab56b
config IWL4965 config IWL4965
tristate "Intel Wireless WiFi 4965AGN" tristate "Intel Wireless WiFi 4965AGN"
depends on m && PCI && MAC80211 && WLAN_80211 && EXPERIMENTAL depends on PCI && MAC80211 && WLAN_80211 && EXPERIMENTAL
select FW_LOADER select FW_LOADER
default m
---help--- ---help---
Select to build the driver supporting the: Select to build the driver supporting the:
...@@ -30,7 +29,6 @@ config IWL4965 ...@@ -30,7 +29,6 @@ config IWL4965
config IWL4965_QOS config IWL4965_QOS
bool "Enable Wireless QoS in iwl4965 driver" bool "Enable Wireless QoS in iwl4965 driver"
depends on IWL4965 depends on IWL4965
default y
---help--- ---help---
This option will enable wireless quality of service (QoS) for the This option will enable wireless quality of service (QoS) for the
iw4965 driver. iw4965 driver.
...@@ -38,14 +36,12 @@ config IWL4965_QOS ...@@ -38,14 +36,12 @@ config IWL4965_QOS
config IWL4965_SPECTRUM_MEASUREMENT config IWL4965_SPECTRUM_MEASUREMENT
bool "Enable Spectrum Measurement in iw4965 driver" bool "Enable Spectrum Measurement in iw4965 driver"
depends on IWL4965 depends on IWL4965
default y
---help--- ---help---
This option will enable spectrum measurement for the iwl4965 driver. This option will enable spectrum measurement for the iwl4965 driver.
config IWL4965_SENSITIVITY config IWL4965_SENSITIVITY
bool "Enable Sensitivity Calibration in iwl4965 driver" bool "Enable Sensitivity Calibration in iwl4965 driver"
depends on IWL4965 depends on IWL4965
default y
---help--- ---help---
This option will enable sensitivity calibration for the iwl4965 This option will enable sensitivity calibration for the iwl4965
driver. driver.
...@@ -54,7 +50,6 @@ config IWL4965_HT ...@@ -54,7 +50,6 @@ config IWL4965_HT
bool "Enable 802.11n HT features in iwl4965 driver" bool "Enable 802.11n HT features in iwl4965 driver"
depends on EXPERIMENTAL depends on EXPERIMENTAL
depends on IWL4965 && MAC80211_HT depends on IWL4965 && MAC80211_HT
default n
---help--- ---help---
This option enables IEEE 802.11n High Throughput features This option enables IEEE 802.11n High Throughput features
for the iwl4965 driver. for the iwl4965 driver.
...@@ -62,7 +57,6 @@ config IWL4965_HT ...@@ -62,7 +57,6 @@ config IWL4965_HT
config IWL4965_DEBUG config IWL4965_DEBUG
bool "Enable full debugging output in iwl4965 driver" bool "Enable full debugging output in iwl4965 driver"
depends on IWL4965 depends on IWL4965
default y
---help--- ---help---
This option will enable debug tracing output for the iwl4965 This option will enable debug tracing output for the iwl4965
driver. driver.
...@@ -88,9 +82,8 @@ config IWL4965_DEBUG ...@@ -88,9 +82,8 @@ config IWL4965_DEBUG
config IWL3945 config IWL3945
tristate "Intel PRO/Wireless 3945ABG/BG Network Connection" tristate "Intel PRO/Wireless 3945ABG/BG Network Connection"
depends on m && PCI && MAC80211 && WLAN_80211 && EXPERIMENTAL depends on PCI && MAC80211 && WLAN_80211 && EXPERIMENTAL
select FW_LOADER select FW_LOADER
default m
---help--- ---help---
Select to build the driver supporting the: Select to build the driver supporting the:
...@@ -118,7 +111,6 @@ config IWL3945 ...@@ -118,7 +111,6 @@ config IWL3945
config IWL3945_QOS config IWL3945_QOS
bool "Enable Wireless QoS in iwl3945 driver" bool "Enable Wireless QoS in iwl3945 driver"
depends on IWL3945 depends on IWL3945
default y
---help--- ---help---
This option will enable wireless quality of service (QoS) for the This option will enable wireless quality of service (QoS) for the
iwl3945 driver. iwl3945 driver.
...@@ -126,14 +118,12 @@ config IWL3945_QOS ...@@ -126,14 +118,12 @@ config IWL3945_QOS
config IWL3945_SPECTRUM_MEASUREMENT config IWL3945_SPECTRUM_MEASUREMENT
bool "Enable Spectrum Measurement in iwl3945 drivers" bool "Enable Spectrum Measurement in iwl3945 drivers"
depends on IWL3945 depends on IWL3945
default y
---help--- ---help---
This option will enable spectrum measurement for the iwl3945 driver. This option will enable spectrum measurement for the iwl3945 driver.
config IWL3945_DEBUG config IWL3945_DEBUG
bool "Enable full debugging output in iwl3945 driver" bool "Enable full debugging output in iwl3945 driver"
depends on IWL3945 depends on IWL3945
default y
---help--- ---help---
This option will enable debug tracing output for the iwl3945 This option will enable debug tracing output for the iwl3945
driver. driver.
......
...@@ -26,18 +26,18 @@ ...@@ -26,18 +26,18 @@
* *
*****************************************************************************/ *****************************************************************************/
#ifndef __iwl_debug_h__ #ifndef __iwl3945_debug_h__
#define __iwl_debug_h__ #define __iwl3945_debug_h__
#ifdef CONFIG_IWL3945_DEBUG #ifdef CONFIG_IWL3945_DEBUG
extern u32 iwl_debug_level; extern u32 iwl3945_debug_level;
#define IWL_DEBUG(level, fmt, args...) \ #define IWL_DEBUG(level, fmt, args...) \
do { if (iwl_debug_level & (level)) \ do { if (iwl3945_debug_level & (level)) \
printk(KERN_ERR DRV_NAME": %c %s " fmt, \ printk(KERN_ERR DRV_NAME": %c %s " fmt, \
in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0)
#define IWL_DEBUG_LIMIT(level, fmt, args...) \ #define IWL_DEBUG_LIMIT(level, fmt, args...) \
do { if ((iwl_debug_level & (level)) && net_ratelimit()) \ do { if ((iwl3945_debug_level & (level)) && net_ratelimit()) \
printk(KERN_ERR DRV_NAME": %c %s " fmt, \ printk(KERN_ERR DRV_NAME": %c %s " fmt, \
in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0)
#else #else
...@@ -68,7 +68,7 @@ static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...) ...@@ -68,7 +68,7 @@ static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...)
* *
* % cat /proc/net/iwl/debug_level * % cat /proc/net/iwl/debug_level
* *
* you simply need to add your entry to the iwl_debug_levels array. * you simply need to add your entry to the iwl3945_debug_levels array.
* *
* If you do not see debug_level in /proc/net/iwl then you do not have * If you do not see debug_level in /proc/net/iwl then you do not have
* CONFIG_IWL3945_DEBUG defined in your kernel configuration * CONFIG_IWL3945_DEBUG defined in your kernel configuration
......
...@@ -133,7 +133,7 @@ enum { ...@@ -133,7 +133,7 @@ enum {
#define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7) #define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7)
/* *regulatory* channel data from eeprom, one for each channel */ /* *regulatory* channel data from eeprom, one for each channel */
struct iwl_eeprom_channel { struct iwl3945_eeprom_channel {
u8 flags; /* flags copied from EEPROM */ u8 flags; /* flags copied from EEPROM */
s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */ s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -148,7 +148,7 @@ struct iwl_eeprom_channel { ...@@ -148,7 +148,7 @@ struct iwl_eeprom_channel {
* level. * level.
* Data copied from EEPROM. * Data copied from EEPROM.
*/ */
struct iwl_eeprom_txpower_sample { struct iwl3945_eeprom_txpower_sample {
u8 gain_index; /* index into power (gain) setup table ... */ u8 gain_index; /* index into power (gain) setup table ... */
s8 power; /* ... for this pwr level for this chnl group */ s8 power; /* ... for this pwr level for this chnl group */
u16 v_det; /* PA output voltage */ u16 v_det; /* PA output voltage */
...@@ -162,8 +162,8 @@ struct iwl_eeprom_txpower_sample { ...@@ -162,8 +162,8 @@ struct iwl_eeprom_txpower_sample {
* Data copied from EEPROM. * Data copied from EEPROM.
* DO NOT ALTER THIS STRUCTURE!!! * DO NOT ALTER THIS STRUCTURE!!!
*/ */
struct iwl_eeprom_txpower_group { struct iwl3945_eeprom_txpower_group {
struct iwl_eeprom_txpower_sample samples[5]; /* 5 power levels */ struct iwl3945_eeprom_txpower_sample samples[5]; /* 5 power levels */
s32 a, b, c, d, e; /* coefficients for voltage->power s32 a, b, c, d, e; /* coefficients for voltage->power
* formula (signed) */ * formula (signed) */
s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on
...@@ -181,7 +181,7 @@ struct iwl_eeprom_txpower_group { ...@@ -181,7 +181,7 @@ struct iwl_eeprom_txpower_group {
* difference between current temperature and factory calib temperature. * difference between current temperature and factory calib temperature.
* Data copied from EEPROM. * Data copied from EEPROM.
*/ */
struct iwl_eeprom_temperature_corr { struct iwl3945_eeprom_temperature_corr {
u32 Ta; u32 Ta;
u32 Tb; u32 Tb;
u32 Tc; u32 Tc;
...@@ -189,7 +189,7 @@ struct iwl_eeprom_temperature_corr { ...@@ -189,7 +189,7 @@ struct iwl_eeprom_temperature_corr {
u32 Te; u32 Te;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_eeprom { struct iwl3945_eeprom {
u8 reserved0[16]; u8 reserved0[16];
#define EEPROM_DEVICE_ID (2*0x08) /* 2 bytes */ #define EEPROM_DEVICE_ID (2*0x08) /* 2 bytes */
u16 device_id; /* abs.ofs: 16 */ u16 device_id; /* abs.ofs: 16 */
...@@ -232,23 +232,23 @@ struct iwl_eeprom { ...@@ -232,23 +232,23 @@ struct iwl_eeprom {
#define EEPROM_REGULATORY_BAND_1 (2*0x62) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_1 (2*0x62) /* 2 bytes */
u16 band_1_count; /* abs.ofs: 196 */ u16 band_1_count; /* abs.ofs: 196 */
#define EEPROM_REGULATORY_BAND_1_CHANNELS (2*0x63) /* 28 bytes */ #define EEPROM_REGULATORY_BAND_1_CHANNELS (2*0x63) /* 28 bytes */
struct iwl_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */ struct iwl3945_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */
#define EEPROM_REGULATORY_BAND_2 (2*0x71) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_2 (2*0x71) /* 2 bytes */
u16 band_2_count; /* abs.ofs: 226 */ u16 band_2_count; /* abs.ofs: 226 */
#define EEPROM_REGULATORY_BAND_2_CHANNELS (2*0x72) /* 26 bytes */ #define EEPROM_REGULATORY_BAND_2_CHANNELS (2*0x72) /* 26 bytes */
struct iwl_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */ struct iwl3945_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */
#define EEPROM_REGULATORY_BAND_3 (2*0x7F) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_3 (2*0x7F) /* 2 bytes */
u16 band_3_count; /* abs.ofs: 254 */ u16 band_3_count; /* abs.ofs: 254 */
#define EEPROM_REGULATORY_BAND_3_CHANNELS (2*0x80) /* 24 bytes */ #define EEPROM_REGULATORY_BAND_3_CHANNELS (2*0x80) /* 24 bytes */
struct iwl_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */ struct iwl3945_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */
#define EEPROM_REGULATORY_BAND_4 (2*0x8C) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_4 (2*0x8C) /* 2 bytes */
u16 band_4_count; /* abs.ofs: 280 */ u16 band_4_count; /* abs.ofs: 280 */
#define EEPROM_REGULATORY_BAND_4_CHANNELS (2*0x8D) /* 22 bytes */ #define EEPROM_REGULATORY_BAND_4_CHANNELS (2*0x8D) /* 22 bytes */
struct iwl_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */ struct iwl3945_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */
#define EEPROM_REGULATORY_BAND_5 (2*0x98) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_5 (2*0x98) /* 2 bytes */
u16 band_5_count; /* abs.ofs: 304 */ u16 band_5_count; /* abs.ofs: 304 */
#define EEPROM_REGULATORY_BAND_5_CHANNELS (2*0x99) /* 12 bytes */ #define EEPROM_REGULATORY_BAND_5_CHANNELS (2*0x99) /* 12 bytes */
struct iwl_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */ struct iwl3945_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */
u8 reserved9[194]; u8 reserved9[194];
...@@ -258,10 +258,10 @@ struct iwl_eeprom { ...@@ -258,10 +258,10 @@ struct iwl_eeprom {
#define EEPROM_TXPOWER_CALIB_GROUP3 0x2c0 #define EEPROM_TXPOWER_CALIB_GROUP3 0x2c0
#define EEPROM_TXPOWER_CALIB_GROUP4 0x300 #define EEPROM_TXPOWER_CALIB_GROUP4 0x300
#define IWL_NUM_TX_CALIB_GROUPS 5 #define IWL_NUM_TX_CALIB_GROUPS 5
struct iwl_eeprom_txpower_group groups[IWL_NUM_TX_CALIB_GROUPS]; struct iwl3945_eeprom_txpower_group groups[IWL_NUM_TX_CALIB_GROUPS];
/* abs.ofs: 512 */ /* abs.ofs: 512 */
#define EEPROM_CALIB_TEMPERATURE_CORRECT 0x340 #define EEPROM_CALIB_TEMPERATURE_CORRECT 0x340
struct iwl_eeprom_temperature_corr corrections; /* abs.ofs: 832 */ struct iwl3945_eeprom_temperature_corr corrections; /* abs.ofs: 832 */
u8 reserved16[172]; /* fill out to full 1024 byte block */ u8 reserved16[172]; /* fill out to full 1024 byte block */
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -681,8 +681,8 @@ struct iwl_eeprom { ...@@ -681,8 +681,8 @@ struct iwl_eeprom {
#define TFD_TX_CMD_SLOTS 256 #define TFD_TX_CMD_SLOTS 256
#define TFD_CMD_SLOTS 32 #define TFD_CMD_SLOTS 32
#define TFD_MAX_PAYLOAD_SIZE (sizeof(struct iwl_cmd) - \ #define TFD_MAX_PAYLOAD_SIZE (sizeof(struct iwl3945_cmd) - \
sizeof(struct iwl_cmd_meta)) sizeof(struct iwl3945_cmd_meta))
/* /*
* RX related structures and functions * RX related structures and functions
...@@ -704,41 +704,41 @@ struct iwl_eeprom { ...@@ -704,41 +704,41 @@ struct iwl_eeprom {
#define IWL_MAX_DATA_SIZE ALM_RTC_DATA_SIZE #define IWL_MAX_DATA_SIZE ALM_RTC_DATA_SIZE
#define IWL_MAX_NUM_QUEUES 8 #define IWL_MAX_NUM_QUEUES 8
static inline int iwl_hw_valid_rtc_data_addr(u32 addr) static inline int iwl3945_hw_valid_rtc_data_addr(u32 addr)
{ {
return (addr >= RTC_DATA_LOWER_BOUND) && return (addr >= RTC_DATA_LOWER_BOUND) &&
(addr < ALM_RTC_DATA_UPPER_BOUND); (addr < ALM_RTC_DATA_UPPER_BOUND);
} }
/* Base physical address of iwl_shared is provided to FH_TSSR_CBB_BASE /* Base physical address of iwl3945_shared is provided to FH_TSSR_CBB_BASE
* and &iwl_shared.rx_read_ptr[0] is provided to FH_RCSR_RPTR_ADDR(0) */ * and &iwl3945_shared.rx_read_ptr[0] is provided to FH_RCSR_RPTR_ADDR(0) */
struct iwl_shared { struct iwl3945_shared {
__le32 tx_base_ptr[8]; __le32 tx_base_ptr[8];
__le32 rx_read_ptr[3]; __le32 rx_read_ptr[3];
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_tfd_frame_data { struct iwl3945_tfd_frame_data {
__le32 addr; __le32 addr;
__le32 len; __le32 len;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_tfd_frame { struct iwl3945_tfd_frame {
__le32 control_flags; __le32 control_flags;
struct iwl_tfd_frame_data pa[4]; struct iwl3945_tfd_frame_data pa[4];
u8 reserved[28]; u8 reserved[28];
} __attribute__ ((packed)); } __attribute__ ((packed));
static inline u8 iwl_hw_get_rate(__le16 rate_n_flags) static inline u8 iwl3945_hw_get_rate(__le16 rate_n_flags)
{ {
return le16_to_cpu(rate_n_flags) & 0xFF; return le16_to_cpu(rate_n_flags) & 0xFF;
} }
static inline u16 iwl_hw_get_rate_n_flags(__le16 rate_n_flags) static inline u16 iwl3945_hw_get_rate_n_flags(__le16 rate_n_flags)
{ {
return le16_to_cpu(rate_n_flags); return le16_to_cpu(rate_n_flags);
} }
static inline __le16 iwl_hw_set_rate_n_flags(u8 rate, u16 flags) static inline __le16 iwl3945_hw_set_rate_n_flags(u8 rate, u16 flags)
{ {
return cpu_to_le16((u16)rate|flags); return cpu_to_le16((u16)rate|flags);
} }
......
This diff is collapsed.
This diff is collapsed.
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
#ifndef __iwl_3945_rs_h__ #ifndef __iwl_3945_rs_h__
#define __iwl_3945_rs_h__ #define __iwl_3945_rs_h__
struct iwl_rate_info { struct iwl3945_rate_info {
u8 plcp; u8 plcp;
u8 ieee; u8 ieee;
u8 prev_ieee; /* previous rate in IEEE speeds */ u8 prev_ieee; /* previous rate in IEEE speeds */
...@@ -159,11 +159,11 @@ enum { ...@@ -159,11 +159,11 @@ enum {
#define IWL_MIN_RSSI_VAL -100 #define IWL_MIN_RSSI_VAL -100
#define IWL_MAX_RSSI_VAL 0 #define IWL_MAX_RSSI_VAL 0
extern const struct iwl_rate_info iwl_rates[IWL_RATE_COUNT]; extern const struct iwl3945_rate_info iwl3945_rates[IWL_RATE_COUNT];
static inline u8 iwl_get_prev_ieee_rate(u8 rate_index) static inline u8 iwl3945_get_prev_ieee_rate(u8 rate_index)
{ {
u8 rate = iwl_rates[rate_index].prev_ieee; u8 rate = iwl3945_rates[rate_index].prev_ieee;
if (rate == IWL_RATE_INVALID) if (rate == IWL_RATE_INVALID)
rate = rate_index; rate = rate_index;
...@@ -171,40 +171,40 @@ static inline u8 iwl_get_prev_ieee_rate(u8 rate_index) ...@@ -171,40 +171,40 @@ static inline u8 iwl_get_prev_ieee_rate(u8 rate_index)
} }
/** /**
* iwl_fill_rs_info - Fill an output text buffer with the rate representation * iwl3945_fill_rs_info - Fill an output text buffer with the rate representation
* *
* NOTE: This is provided as a quick mechanism for a user to visualize * NOTE: This is provided as a quick mechanism for a user to visualize
* the performance of the rate control algorithm and is not meant to be * the performance of the rate control algorithm and is not meant to be
* parsed software. * parsed software.
*/ */
extern int iwl_fill_rs_info(struct ieee80211_hw *, char *buf, u8 sta_id); extern int iwl3945_fill_rs_info(struct ieee80211_hw *, char *buf, u8 sta_id);
/** /**
* iwl_rate_scale_init - Initialize the rate scale table based on assoc info * iwl3945_rate_scale_init - Initialize the rate scale table based on assoc info
* *
* The specific throughput table used is based on the type of network * The specific throughput table used is based on the type of network
* the associated with, including A, B, G, and G w/ TGG protection * the associated with, including A, B, G, and G w/ TGG protection
*/ */
extern void iwl_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id); extern void iwl3945_rate_scale_init(struct ieee80211_hw *hw, s32 sta_id);
/** /**
* iwl_rate_control_register - Register the rate control algorithm callbacks * iwl3945_rate_control_register - Register the rate control algorithm callbacks
* *
* Since the rate control algorithm is hardware specific, there is no need * Since the rate control algorithm is hardware specific, there is no need
* or reason to place it as a stand alone module. The driver can call * or reason to place it as a stand alone module. The driver can call
* iwl_rate_control_register in order to register the rate control callbacks * iwl3945_rate_control_register in order to register the rate control callbacks
* with the mac80211 subsystem. This should be performed prior to calling * with the mac80211 subsystem. This should be performed prior to calling
* ieee80211_register_hw * ieee80211_register_hw
* *
*/ */
extern void iwl_rate_control_register(struct ieee80211_hw *hw); extern void iwl3945_rate_control_register(struct ieee80211_hw *hw);
/** /**
* iwl_rate_control_unregister - Unregister the rate control callbacks * iwl3945_rate_control_unregister - Unregister the rate control callbacks
* *
* This should be called after calling ieee80211_unregister_hw, but before * This should be called after calling ieee80211_unregister_hw, but before
* the driver is unloaded. * the driver is unloaded.
*/ */
extern void iwl_rate_control_unregister(struct ieee80211_hw *hw); extern void iwl3945_rate_control_unregister(struct ieee80211_hw *hw);
#endif #endif
This diff is collapsed.
This diff is collapsed.
...@@ -26,18 +26,18 @@ ...@@ -26,18 +26,18 @@
* *
*****************************************************************************/ *****************************************************************************/
#ifndef __iwl_debug_h__ #ifndef __iwl4965_debug_h__
#define __iwl_debug_h__ #define __iwl4965_debug_h__
#ifdef CONFIG_IWL4965_DEBUG #ifdef CONFIG_IWL4965_DEBUG
extern u32 iwl_debug_level; extern u32 iwl4965_debug_level;
#define IWL_DEBUG(level, fmt, args...) \ #define IWL_DEBUG(level, fmt, args...) \
do { if (iwl_debug_level & (level)) \ do { if (iwl4965_debug_level & (level)) \
printk(KERN_ERR DRV_NAME": %c %s " fmt, \ printk(KERN_ERR DRV_NAME": %c %s " fmt, \
in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0)
#define IWL_DEBUG_LIMIT(level, fmt, args...) \ #define IWL_DEBUG_LIMIT(level, fmt, args...) \
do { if ((iwl_debug_level & (level)) && net_ratelimit()) \ do { if ((iwl4965_debug_level & (level)) && net_ratelimit()) \
printk(KERN_ERR DRV_NAME": %c %s " fmt, \ printk(KERN_ERR DRV_NAME": %c %s " fmt, \
in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0) in_interrupt() ? 'I' : 'U', __FUNCTION__ , ## args); } while (0)
#else #else
...@@ -68,7 +68,7 @@ static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...) ...@@ -68,7 +68,7 @@ static inline void IWL_DEBUG_LIMIT(int level, const char *fmt, ...)
* *
* % cat /proc/net/iwl/debug_level * % cat /proc/net/iwl/debug_level
* *
* you simply need to add your entry to the iwl_debug_levels array. * you simply need to add your entry to the iwl4965_debug_levels array.
* *
* If you do not see debug_level in /proc/net/iwl then you do not have * If you do not see debug_level in /proc/net/iwl then you do not have
* CONFIG_IWL4965_DEBUG defined in your kernel configuration * CONFIG_IWL4965_DEBUG defined in your kernel configuration
......
...@@ -137,7 +137,7 @@ enum { ...@@ -137,7 +137,7 @@ enum {
#define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7) #define EEPROM_SKU_CAP_OP_MODE_MRC (1 << 7)
/* *regulatory* channel data from eeprom, one for each channel */ /* *regulatory* channel data from eeprom, one for each channel */
struct iwl_eeprom_channel { struct iwl4965_eeprom_channel {
u8 flags; /* flags copied from EEPROM */ u8 flags; /* flags copied from EEPROM */
s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */ s8 max_power_avg; /* max power (dBm) on this chnl, limit 31 */
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -152,7 +152,7 @@ struct iwl_eeprom_channel { ...@@ -152,7 +152,7 @@ struct iwl_eeprom_channel {
* level. * level.
* Data copied from EEPROM. * Data copied from EEPROM.
*/ */
struct iwl_eeprom_txpower_sample { struct iwl4965_eeprom_txpower_sample {
u8 gain_index; /* index into power (gain) setup table ... */ u8 gain_index; /* index into power (gain) setup table ... */
s8 power; /* ... for this pwr level for this chnl group */ s8 power; /* ... for this pwr level for this chnl group */
u16 v_det; /* PA output voltage */ u16 v_det; /* PA output voltage */
...@@ -166,8 +166,8 @@ struct iwl_eeprom_txpower_sample { ...@@ -166,8 +166,8 @@ struct iwl_eeprom_txpower_sample {
* Data copied from EEPROM. * Data copied from EEPROM.
* DO NOT ALTER THIS STRUCTURE!!! * DO NOT ALTER THIS STRUCTURE!!!
*/ */
struct iwl_eeprom_txpower_group { struct iwl4965_eeprom_txpower_group {
struct iwl_eeprom_txpower_sample samples[5]; /* 5 power levels */ struct iwl4965_eeprom_txpower_sample samples[5]; /* 5 power levels */
s32 a, b, c, d, e; /* coefficients for voltage->power s32 a, b, c, d, e; /* coefficients for voltage->power
* formula (signed) */ * formula (signed) */
s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on s32 Fa, Fb, Fc, Fd, Fe; /* these modify coeffs based on
...@@ -185,7 +185,7 @@ struct iwl_eeprom_txpower_group { ...@@ -185,7 +185,7 @@ struct iwl_eeprom_txpower_group {
* difference between current temperature and factory calib temperature. * difference between current temperature and factory calib temperature.
* Data copied from EEPROM. * Data copied from EEPROM.
*/ */
struct iwl_eeprom_temperature_corr { struct iwl4965_eeprom_temperature_corr {
u32 Ta; u32 Ta;
u32 Tb; u32 Tb;
u32 Tc; u32 Tc;
...@@ -199,35 +199,35 @@ struct iwl_eeprom_temperature_corr { ...@@ -199,35 +199,35 @@ struct iwl_eeprom_temperature_corr {
#define EEPROM_TX_POWER_VERSION (2) #define EEPROM_TX_POWER_VERSION (2)
#define EEPROM_TX_POWER_VERSION_NEW (5) #define EEPROM_TX_POWER_VERSION_NEW (5)
struct iwl_eeprom_calib_measure { struct iwl4965_eeprom_calib_measure {
u8 temperature; u8 temperature;
u8 gain_idx; u8 gain_idx;
u8 actual_pow; u8 actual_pow;
s8 pa_det; s8 pa_det;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_eeprom_calib_ch_info { struct iwl4965_eeprom_calib_ch_info {
u8 ch_num; u8 ch_num;
struct iwl_eeprom_calib_measure measurements[EEPROM_TX_POWER_TX_CHAINS] struct iwl4965_eeprom_calib_measure measurements[EEPROM_TX_POWER_TX_CHAINS]
[EEPROM_TX_POWER_MEASUREMENTS]; [EEPROM_TX_POWER_MEASUREMENTS];
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_eeprom_calib_subband_info { struct iwl4965_eeprom_calib_subband_info {
u8 ch_from; u8 ch_from;
u8 ch_to; u8 ch_to;
struct iwl_eeprom_calib_ch_info ch1; struct iwl4965_eeprom_calib_ch_info ch1;
struct iwl_eeprom_calib_ch_info ch2; struct iwl4965_eeprom_calib_ch_info ch2;
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_eeprom_calib_info { struct iwl4965_eeprom_calib_info {
u8 saturation_power24; u8 saturation_power24;
u8 saturation_power52; u8 saturation_power52;
s16 voltage; /* signed */ s16 voltage; /* signed */
struct iwl_eeprom_calib_subband_info band_info[EEPROM_TX_POWER_BANDS]; struct iwl4965_eeprom_calib_subband_info band_info[EEPROM_TX_POWER_BANDS];
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_eeprom { struct iwl4965_eeprom {
u8 reserved0[16]; u8 reserved0[16];
#define EEPROM_DEVICE_ID (2*0x08) /* 2 bytes */ #define EEPROM_DEVICE_ID (2*0x08) /* 2 bytes */
u16 device_id; /* abs.ofs: 16 */ u16 device_id; /* abs.ofs: 16 */
...@@ -276,30 +276,30 @@ struct iwl_eeprom { ...@@ -276,30 +276,30 @@ struct iwl_eeprom {
#define EEPROM_REGULATORY_BAND_1 (2*0x62) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_1 (2*0x62) /* 2 bytes */
u16 band_1_count; /* abs.ofs: 196 */ u16 band_1_count; /* abs.ofs: 196 */
#define EEPROM_REGULATORY_BAND_1_CHANNELS (2*0x63) /* 28 bytes */ #define EEPROM_REGULATORY_BAND_1_CHANNELS (2*0x63) /* 28 bytes */
struct iwl_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */ struct iwl4965_eeprom_channel band_1_channels[14]; /* abs.ofs: 196 */
#define EEPROM_REGULATORY_BAND_2 (2*0x71) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_2 (2*0x71) /* 2 bytes */
u16 band_2_count; /* abs.ofs: 226 */ u16 band_2_count; /* abs.ofs: 226 */
#define EEPROM_REGULATORY_BAND_2_CHANNELS (2*0x72) /* 26 bytes */ #define EEPROM_REGULATORY_BAND_2_CHANNELS (2*0x72) /* 26 bytes */
struct iwl_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */ struct iwl4965_eeprom_channel band_2_channels[13]; /* abs.ofs: 228 */
#define EEPROM_REGULATORY_BAND_3 (2*0x7F) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_3 (2*0x7F) /* 2 bytes */
u16 band_3_count; /* abs.ofs: 254 */ u16 band_3_count; /* abs.ofs: 254 */
#define EEPROM_REGULATORY_BAND_3_CHANNELS (2*0x80) /* 24 bytes */ #define EEPROM_REGULATORY_BAND_3_CHANNELS (2*0x80) /* 24 bytes */
struct iwl_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */ struct iwl4965_eeprom_channel band_3_channels[12]; /* abs.ofs: 256 */
#define EEPROM_REGULATORY_BAND_4 (2*0x8C) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_4 (2*0x8C) /* 2 bytes */
u16 band_4_count; /* abs.ofs: 280 */ u16 band_4_count; /* abs.ofs: 280 */
#define EEPROM_REGULATORY_BAND_4_CHANNELS (2*0x8D) /* 22 bytes */ #define EEPROM_REGULATORY_BAND_4_CHANNELS (2*0x8D) /* 22 bytes */
struct iwl_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */ struct iwl4965_eeprom_channel band_4_channels[11]; /* abs.ofs: 282 */
#define EEPROM_REGULATORY_BAND_5 (2*0x98) /* 2 bytes */ #define EEPROM_REGULATORY_BAND_5 (2*0x98) /* 2 bytes */
u16 band_5_count; /* abs.ofs: 304 */ u16 band_5_count; /* abs.ofs: 304 */
#define EEPROM_REGULATORY_BAND_5_CHANNELS (2*0x99) /* 12 bytes */ #define EEPROM_REGULATORY_BAND_5_CHANNELS (2*0x99) /* 12 bytes */
struct iwl_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */ struct iwl4965_eeprom_channel band_5_channels[6]; /* abs.ofs: 306 */
u8 reserved10[2]; u8 reserved10[2];
#define EEPROM_REGULATORY_BAND_24_FAT_CHANNELS (2*0xA0) /* 14 bytes */ #define EEPROM_REGULATORY_BAND_24_FAT_CHANNELS (2*0xA0) /* 14 bytes */
struct iwl_eeprom_channel band_24_channels[7]; /* abs.ofs: 320 */ struct iwl4965_eeprom_channel band_24_channels[7]; /* abs.ofs: 320 */
u8 reserved11[2]; u8 reserved11[2];
#define EEPROM_REGULATORY_BAND_52_FAT_CHANNELS (2*0xA8) /* 22 bytes */ #define EEPROM_REGULATORY_BAND_52_FAT_CHANNELS (2*0xA8) /* 22 bytes */
struct iwl_eeprom_channel band_52_channels[11]; /* abs.ofs: 336 */ struct iwl4965_eeprom_channel band_52_channels[11]; /* abs.ofs: 336 */
u8 reserved12[6]; u8 reserved12[6];
#define EEPROM_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */ #define EEPROM_CALIB_VERSION_OFFSET (2*0xB6) /* 2 bytes */
u16 calib_version; /* abs.ofs: 364 */ u16 calib_version; /* abs.ofs: 364 */
...@@ -308,7 +308,7 @@ struct iwl_eeprom { ...@@ -308,7 +308,7 @@ struct iwl_eeprom {
u16 satruation_power; /* abs.ofs: 368 */ u16 satruation_power; /* abs.ofs: 368 */
u8 reserved14[94]; u8 reserved14[94];
#define EEPROM_IWL_CALIB_TXPOWER_OFFSET (2*0xE8) /* 48 bytes */ #define EEPROM_IWL_CALIB_TXPOWER_OFFSET (2*0xE8) /* 48 bytes */
struct iwl_eeprom_calib_info calib_info; /* abs.ofs: 464 */ struct iwl4965_eeprom_calib_info calib_info; /* abs.ofs: 464 */
u8 reserved16[140]; /* fill out to full 1024 byte block */ u8 reserved16[140]; /* fill out to full 1024 byte block */
...@@ -731,8 +731,8 @@ struct iwl_eeprom { ...@@ -731,8 +731,8 @@ struct iwl_eeprom {
#define TFD_TX_CMD_SLOTS 256 #define TFD_TX_CMD_SLOTS 256
#define TFD_CMD_SLOTS 32 #define TFD_CMD_SLOTS 32
#define TFD_MAX_PAYLOAD_SIZE (sizeof(struct iwl_cmd) - \ #define TFD_MAX_PAYLOAD_SIZE (sizeof(struct iwl4965_cmd) - \
sizeof(struct iwl_cmd_meta)) sizeof(struct iwl4965_cmd_meta))
/* /*
* RX related structures and functions * RX related structures and functions
...@@ -751,7 +751,7 @@ struct iwl_eeprom { ...@@ -751,7 +751,7 @@ struct iwl_eeprom {
#define IWL_MAX_INST_SIZE KDR_RTC_INST_SIZE #define IWL_MAX_INST_SIZE KDR_RTC_INST_SIZE
#define IWL_MAX_DATA_SIZE KDR_RTC_DATA_SIZE #define IWL_MAX_DATA_SIZE KDR_RTC_DATA_SIZE
static inline int iwl_hw_valid_rtc_data_addr(u32 addr) static inline int iwl4965_hw_valid_rtc_data_addr(u32 addr)
{ {
return (addr >= RTC_DATA_LOWER_BOUND) && return (addr >= RTC_DATA_LOWER_BOUND) &&
(addr < KDR_RTC_DATA_UPPER_BOUND); (addr < KDR_RTC_DATA_UPPER_BOUND);
...@@ -873,7 +873,7 @@ enum { ...@@ -873,7 +873,7 @@ enum {
#define CALIB_IWL_TX_ATTEN_GR5_LCH 20 #define CALIB_IWL_TX_ATTEN_GR5_LCH 20
union iwl_tx_power_dual_stream { union iwl4965_tx_power_dual_stream {
struct { struct {
u8 radio_tx_gain[2]; u8 radio_tx_gain[2];
u8 dsp_predis_atten[2]; u8 dsp_predis_atten[2];
...@@ -1115,20 +1115,20 @@ union iwl_tx_power_dual_stream { ...@@ -1115,20 +1115,20 @@ union iwl_tx_power_dual_stream {
#define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI (0x00000100) #define CSR_HW_IF_CONFIG_REG_BIT_MAC_SI (0x00000100)
#define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI (0x00000200) #define CSR_HW_IF_CONFIG_REG_BIT_RADIO_SI (0x00000200)
static inline u8 iwl_hw_get_rate(__le32 rate_n_flags) static inline u8 iwl4965_hw_get_rate(__le32 rate_n_flags)
{ {
return le32_to_cpu(rate_n_flags) & 0xFF; return le32_to_cpu(rate_n_flags) & 0xFF;
} }
static inline u16 iwl_hw_get_rate_n_flags(__le32 rate_n_flags) static inline u16 iwl4965_hw_get_rate_n_flags(__le32 rate_n_flags)
{ {
return le32_to_cpu(rate_n_flags) & 0xFFFF; return le32_to_cpu(rate_n_flags) & 0xFFFF;
} }
static inline __le32 iwl_hw_set_rate_n_flags(u8 rate, u16 flags) static inline __le32 iwl4965_hw_set_rate_n_flags(u8 rate, u16 flags)
{ {
return cpu_to_le32(flags|(u16)rate); return cpu_to_le32(flags|(u16)rate);
} }
struct iwl_tfd_frame_data { struct iwl4965_tfd_frame_data {
__le32 tb1_addr; __le32 tb1_addr;
__le32 val1; __le32 val1;
...@@ -1156,7 +1156,7 @@ struct iwl_tfd_frame_data { ...@@ -1156,7 +1156,7 @@ struct iwl_tfd_frame_data {
#define IWL_tb2_len_SYM val2 #define IWL_tb2_len_SYM val2
} __attribute__ ((packed)); } __attribute__ ((packed));
struct iwl_tfd_frame { struct iwl4965_tfd_frame {
__le32 val0; __le32 val0;
/* __le32 rsvd1:24; */ /* __le32 rsvd1:24; */
/* __le32 num_tbs:5; */ /* __le32 num_tbs:5; */
...@@ -1165,7 +1165,7 @@ struct iwl_tfd_frame { ...@@ -1165,7 +1165,7 @@ struct iwl_tfd_frame {
#define IWL_num_tbs_SYM val0 #define IWL_num_tbs_SYM val0
/* __le32 rsvd2:1; */ /* __le32 rsvd2:1; */
/* __le32 padding:2; */ /* __le32 padding:2; */
struct iwl_tfd_frame_data pa[10]; struct iwl4965_tfd_frame_data pa[10];
__le32 reserved; __le32 reserved;
} __attribute__ ((packed)); } __attribute__ ((packed));
...@@ -1191,9 +1191,9 @@ struct iwl4965_sched_queue_byte_cnt_tbl { ...@@ -1191,9 +1191,9 @@ struct iwl4965_sched_queue_byte_cnt_tbl {
sizeof(__le16)]; sizeof(__le16)];
} __attribute__ ((packed)); } __attribute__ ((packed));
/* Base physical address of iwl_shared is provided to KDR_SCD_DRAM_BASE_ADDR /* Base physical address of iwl4965_shared is provided to KDR_SCD_DRAM_BASE_ADDR
* and &iwl_shared.val0 is provided to FH_RSCSR_CHNL0_STTS_WPTR_REG */ * and &iwl4965_shared.val0 is provided to FH_RSCSR_CHNL0_STTS_WPTR_REG */
struct iwl_shared { struct iwl4965_shared {
struct iwl4965_sched_queue_byte_cnt_tbl struct iwl4965_sched_queue_byte_cnt_tbl
queues_byte_cnt_tbls[IWL_MAX_NUM_QUEUES]; queues_byte_cnt_tbls[IWL_MAX_NUM_QUEUES];
__le32 val0; __le32 val0;
...@@ -1225,4 +1225,4 @@ struct iwl_shared { ...@@ -1225,4 +1225,4 @@ struct iwl_shared {
__le32 padding2; __le32 padding2;
} __attribute__ ((packed)); } __attribute__ ((packed));
#endif /* __iwl_4965_hw_h__ */ #endif /* __iwl4965_4965_hw_h__ */
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment