diff options
| author | Brice Goglin <Brice.Goglin@ens-lyon.org> | 2005-12-01 04:41:46 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2005-12-01 04:51:34 -0500 |
| commit | 0f52bf905884c6dd7f994c9e2f533b2c02f0bd4b (patch) | |
| tree | 42e15d05ffb12e7bfa3be630c383efb19a9ceed9 | |
| parent | c75f4742e2306a319baaa556e53209d4e7c47f0d (diff) | |
[PATCH] Duplicate IPW_DEBUG option for ipw2100 and 2200
There are currently two IPW_DEBUG options in drivers/net/wireless/Kconfig
(one for ipw2100 and one for ipw2200). The attached patch splits it into
IPW2100_DEBUG and IPW2200_DEBUG.
Signed-off-by: Brice Goglin <Brice.Goglin@ens-lyon.org>
Cc: "James P. Ketrenos" <ipw2100-admin@linux.intel.com>
Cc: Jeff Garzik <jgarzik@pobox.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
| -rw-r--r-- | drivers/net/wireless/Kconfig | 4 | ||||
| -rw-r--r-- | drivers/net/wireless/ipw2100.c | 40 | ||||
| -rw-r--r-- | drivers/net/wireless/ipw2100.h | 2 | ||||
| -rw-r--r-- | drivers/net/wireless/ipw2200.c | 18 | ||||
| -rw-r--r-- | drivers/net/wireless/ipw2200.h | 6 |
5 files changed, 35 insertions, 35 deletions
diff --git a/drivers/net/wireless/Kconfig b/drivers/net/wireless/Kconfig index d94421c74264..24f7967aab67 100644 --- a/drivers/net/wireless/Kconfig +++ b/drivers/net/wireless/Kconfig | |||
| @@ -173,7 +173,7 @@ config IPW2100_MONITOR | |||
| 173 | promiscuous mode via the Wireless Tool's Monitor mode. While in this | 173 | promiscuous mode via the Wireless Tool's Monitor mode. While in this |
| 174 | mode, no packets can be sent. | 174 | mode, no packets can be sent. |
| 175 | 175 | ||
| 176 | config IPW_DEBUG | 176 | config IPW2100_DEBUG |
| 177 | bool "Enable full debugging output in IPW2100 module." | 177 | bool "Enable full debugging output in IPW2100 module." |
| 178 | depends on IPW2100 | 178 | depends on IPW2100 |
| 179 | ---help--- | 179 | ---help--- |
| @@ -217,7 +217,7 @@ config IPW2200 | |||
| 217 | say M here and read <file:Documentation/modules.txt>. The module | 217 | say M here and read <file:Documentation/modules.txt>. The module |
| 218 | will be called ipw2200.ko. | 218 | will be called ipw2200.ko. |
| 219 | 219 | ||
| 220 | config IPW_DEBUG | 220 | config IPW2200_DEBUG |
| 221 | bool "Enable full debugging output in IPW2200 module." | 221 | bool "Enable full debugging output in IPW2200 module." |
| 222 | depends on IPW2200 | 222 | depends on IPW2200 |
| 223 | ---help--- | 223 | ---help--- |
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c index 77d2a21d4cd0..44cd3fcd1572 100644 --- a/drivers/net/wireless/ipw2100.c +++ b/drivers/net/wireless/ipw2100.c | |||
| @@ -175,7 +175,7 @@ that only one external action is invoked at a time. | |||
| 175 | #define DRV_COPYRIGHT "Copyright(c) 2003-2005 Intel Corporation" | 175 | #define DRV_COPYRIGHT "Copyright(c) 2003-2005 Intel Corporation" |
| 176 | 176 | ||
| 177 | /* Debugging stuff */ | 177 | /* Debugging stuff */ |
| 178 | #ifdef CONFIG_IPW_DEBUG | 178 | #ifdef CONFIG_IPW2100_DEBUG |
| 179 | #define CONFIG_IPW2100_RX_DEBUG /* Reception debugging */ | 179 | #define CONFIG_IPW2100_RX_DEBUG /* Reception debugging */ |
| 180 | #endif | 180 | #endif |
| 181 | 181 | ||
| @@ -208,7 +208,7 @@ MODULE_PARM_DESC(disable, "manually disable the radio (default 0 [radio on])"); | |||
| 208 | 208 | ||
| 209 | static u32 ipw2100_debug_level = IPW_DL_NONE; | 209 | static u32 ipw2100_debug_level = IPW_DL_NONE; |
| 210 | 210 | ||
| 211 | #ifdef CONFIG_IPW_DEBUG | 211 | #ifdef CONFIG_IPW2100_DEBUG |
| 212 | #define IPW_DEBUG(level, message...) \ | 212 | #define IPW_DEBUG(level, message...) \ |
| 213 | do { \ | 213 | do { \ |
| 214 | if (ipw2100_debug_level & (level)) { \ | 214 | if (ipw2100_debug_level & (level)) { \ |
| @@ -219,9 +219,9 @@ do { \ | |||
| 219 | } while (0) | 219 | } while (0) |
| 220 | #else | 220 | #else |
| 221 | #define IPW_DEBUG(level, message...) do {} while (0) | 221 | #define IPW_DEBUG(level, message...) do {} while (0) |
| 222 | #endif /* CONFIG_IPW_DEBUG */ | 222 | #endif /* CONFIG_IPW2100_DEBUG */ |
| 223 | 223 | ||
| 224 | #ifdef CONFIG_IPW_DEBUG | 224 | #ifdef CONFIG_IPW2100_DEBUG |
| 225 | static const char *command_types[] = { | 225 | static const char *command_types[] = { |
| 226 | "undefined", | 226 | "undefined", |
| 227 | "unused", /* HOST_ATTENTION */ | 227 | "unused", /* HOST_ATTENTION */ |
| @@ -2081,7 +2081,7 @@ static void isr_scan_complete(struct ipw2100_priv *priv, u32 status) | |||
| 2081 | priv->status &= ~STATUS_SCANNING; | 2081 | priv->status &= ~STATUS_SCANNING; |
| 2082 | } | 2082 | } |
| 2083 | 2083 | ||
| 2084 | #ifdef CONFIG_IPW_DEBUG | 2084 | #ifdef CONFIG_IPW2100_DEBUG |
| 2085 | #define IPW2100_HANDLER(v, f) { v, f, # v } | 2085 | #define IPW2100_HANDLER(v, f) { v, f, # v } |
| 2086 | struct ipw2100_status_indicator { | 2086 | struct ipw2100_status_indicator { |
| 2087 | int status; | 2087 | int status; |
| @@ -2094,7 +2094,7 @@ struct ipw2100_status_indicator { | |||
| 2094 | int status; | 2094 | int status; |
| 2095 | void (*cb) (struct ipw2100_priv * priv, u32 status); | 2095 | void (*cb) (struct ipw2100_priv * priv, u32 status); |
| 2096 | }; | 2096 | }; |
| 2097 | #endif /* CONFIG_IPW_DEBUG */ | 2097 | #endif /* CONFIG_IPW2100_DEBUG */ |
| 2098 | 2098 | ||
| 2099 | static void isr_indicate_scanning(struct ipw2100_priv *priv, u32 status) | 2099 | static void isr_indicate_scanning(struct ipw2100_priv *priv, u32 status) |
| 2100 | { | 2100 | { |
| @@ -2149,7 +2149,7 @@ static void isr_status_change(struct ipw2100_priv *priv, int status) | |||
| 2149 | static void isr_rx_complete_command(struct ipw2100_priv *priv, | 2149 | static void isr_rx_complete_command(struct ipw2100_priv *priv, |
| 2150 | struct ipw2100_cmd_header *cmd) | 2150 | struct ipw2100_cmd_header *cmd) |
| 2151 | { | 2151 | { |
| 2152 | #ifdef CONFIG_IPW_DEBUG | 2152 | #ifdef CONFIG_IPW2100_DEBUG |
| 2153 | if (cmd->host_command_reg < ARRAY_SIZE(command_types)) { | 2153 | if (cmd->host_command_reg < ARRAY_SIZE(command_types)) { |
| 2154 | IPW_DEBUG_HC("Command completed '%s (%d)'\n", | 2154 | IPW_DEBUG_HC("Command completed '%s (%d)'\n", |
| 2155 | command_types[cmd->host_command_reg], | 2155 | command_types[cmd->host_command_reg], |
| @@ -2167,7 +2167,7 @@ static void isr_rx_complete_command(struct ipw2100_priv *priv, | |||
| 2167 | wake_up_interruptible(&priv->wait_command_queue); | 2167 | wake_up_interruptible(&priv->wait_command_queue); |
| 2168 | } | 2168 | } |
| 2169 | 2169 | ||
| 2170 | #ifdef CONFIG_IPW_DEBUG | 2170 | #ifdef CONFIG_IPW2100_DEBUG |
| 2171 | static const char *frame_types[] = { | 2171 | static const char *frame_types[] = { |
| 2172 | "COMMAND_STATUS_VAL", | 2172 | "COMMAND_STATUS_VAL", |
| 2173 | "STATUS_CHANGE_VAL", | 2173 | "STATUS_CHANGE_VAL", |
| @@ -2290,7 +2290,7 @@ static u8 packet_data[IPW_RX_NIC_BUFFER_LENGTH]; | |||
| 2290 | 2290 | ||
| 2291 | static inline void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i) | 2291 | static inline void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i) |
| 2292 | { | 2292 | { |
| 2293 | #ifdef CONFIG_IPW_DEBUG_C3 | 2293 | #ifdef CONFIG_IPW2100_DEBUG_C3 |
| 2294 | struct ipw2100_status *status = &priv->status_queue.drv[i]; | 2294 | struct ipw2100_status *status = &priv->status_queue.drv[i]; |
| 2295 | u32 match, reg; | 2295 | u32 match, reg; |
| 2296 | int j; | 2296 | int j; |
| @@ -2312,7 +2312,7 @@ static inline void ipw2100_corruption_detected(struct ipw2100_priv *priv, int i) | |||
| 2312 | } | 2312 | } |
| 2313 | #endif | 2313 | #endif |
| 2314 | 2314 | ||
| 2315 | #ifdef CONFIG_IPW_DEBUG_C3 | 2315 | #ifdef CONFIG_IPW2100_DEBUG_C3 |
| 2316 | /* Halt the fimrware so we can get a good image */ | 2316 | /* Halt the fimrware so we can get a good image */ |
| 2317 | write_register(priv->net_dev, IPW_REG_RESET_REG, | 2317 | write_register(priv->net_dev, IPW_REG_RESET_REG, |
| 2318 | IPW_AUX_HOST_RESET_REG_STOP_MASTER); | 2318 | IPW_AUX_HOST_RESET_REG_STOP_MASTER); |
| @@ -2716,7 +2716,7 @@ static inline int __ipw2100_tx_process(struct ipw2100_priv *priv) | |||
| 2716 | list_del(element); | 2716 | list_del(element); |
| 2717 | DEC_STAT(&priv->fw_pend_stat); | 2717 | DEC_STAT(&priv->fw_pend_stat); |
| 2718 | 2718 | ||
| 2719 | #ifdef CONFIG_IPW_DEBUG | 2719 | #ifdef CONFIG_IPW2100_DEBUG |
| 2720 | { | 2720 | { |
| 2721 | int i = txq->oldest; | 2721 | int i = txq->oldest; |
| 2722 | IPW_DEBUG_TX("TX%d V=%p P=%04X T=%04X L=%d\n", i, | 2722 | IPW_DEBUG_TX("TX%d V=%p P=%04X T=%04X L=%d\n", i, |
| @@ -2782,7 +2782,7 @@ static inline int __ipw2100_tx_process(struct ipw2100_priv *priv) | |||
| 2782 | "something else: ids %d=%d.\n", | 2782 | "something else: ids %d=%d.\n", |
| 2783 | priv->net_dev->name, txq->oldest, packet->index); | 2783 | priv->net_dev->name, txq->oldest, packet->index); |
| 2784 | 2784 | ||
| 2785 | #ifdef CONFIG_IPW_DEBUG | 2785 | #ifdef CONFIG_IPW2100_DEBUG |
| 2786 | if (packet->info.c_struct.cmd->host_command_reg < | 2786 | if (packet->info.c_struct.cmd->host_command_reg < |
| 2787 | sizeof(command_types) / sizeof(*command_types)) | 2787 | sizeof(command_types) / sizeof(*command_types)) |
| 2788 | IPW_DEBUG_TX("Command '%s (%d)' processed: %d.\n", | 2788 | IPW_DEBUG_TX("Command '%s (%d)' processed: %d.\n", |
| @@ -2975,7 +2975,7 @@ static void ipw2100_tx_send_data(struct ipw2100_priv *priv) | |||
| 2975 | 2975 | ||
| 2976 | IPW_DEBUG_TX("data header tbd TX%d P=%08x L=%d\n", | 2976 | IPW_DEBUG_TX("data header tbd TX%d P=%08x L=%d\n", |
| 2977 | packet->index, tbd->host_addr, tbd->buf_length); | 2977 | packet->index, tbd->host_addr, tbd->buf_length); |
| 2978 | #ifdef CONFIG_IPW_DEBUG | 2978 | #ifdef CONFIG_IPW2100_DEBUG |
| 2979 | if (packet->info.d_struct.txb->nr_frags > 1) | 2979 | if (packet->info.d_struct.txb->nr_frags > 1) |
| 2980 | IPW_DEBUG_FRAG("fragment Tx: %d frames\n", | 2980 | IPW_DEBUG_FRAG("fragment Tx: %d frames\n", |
| 2981 | packet->info.d_struct.txb->nr_frags); | 2981 | packet->info.d_struct.txb->nr_frags); |
| @@ -3827,7 +3827,7 @@ static ssize_t show_stats(struct device *d, struct device_attribute *attr, | |||
| 3827 | priv->rx_interrupts, priv->inta_other); | 3827 | priv->rx_interrupts, priv->inta_other); |
| 3828 | out += sprintf(out, "firmware resets: %d\n", priv->resets); | 3828 | out += sprintf(out, "firmware resets: %d\n", priv->resets); |
| 3829 | out += sprintf(out, "firmware hangs: %d\n", priv->hangs); | 3829 | out += sprintf(out, "firmware hangs: %d\n", priv->hangs); |
| 3830 | #ifdef CONFIG_IPW_DEBUG | 3830 | #ifdef CONFIG_IPW2100_DEBUG |
| 3831 | out += sprintf(out, "packet mismatch image: %s\n", | 3831 | out += sprintf(out, "packet mismatch image: %s\n", |
| 3832 | priv->snapshot[0] ? "YES" : "NO"); | 3832 | priv->snapshot[0] ? "YES" : "NO"); |
| 3833 | #endif | 3833 | #endif |
| @@ -3982,7 +3982,7 @@ static ssize_t show_bssinfo(struct device *d, struct device_attribute *attr, | |||
| 3982 | 3982 | ||
| 3983 | static DEVICE_ATTR(bssinfo, S_IRUGO, show_bssinfo, NULL); | 3983 | static DEVICE_ATTR(bssinfo, S_IRUGO, show_bssinfo, NULL); |
