diff options
author | Pavel Machek <pavel@ucw.cz> | 2005-06-20 17:28:43 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-06-27 23:26:30 -0400 |
commit | 5dc54a65b6981d327a84c7651bbfeef0c0aff977 (patch) | |
tree | 8dde1717c6748c73b3287104662c238d43b57450 /drivers/net/wireless/ipw2100.h | |
parent | 4663663f1d91aa0b84526841e47f401598bfa2f4 (diff) |
[PATCH] ipw2100: kill dead macros
There are several never used macros in ipw2100. This removes them.
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Diffstat (limited to 'drivers/net/wireless/ipw2100.h')
-rw-r--r-- | drivers/net/wireless/ipw2100.h | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/drivers/net/wireless/ipw2100.h b/drivers/net/wireless/ipw2100.h index 2980900beb53..95a05b554c1a 100644 --- a/drivers/net/wireless/ipw2100.h +++ b/drivers/net/wireless/ipw2100.h | |||
@@ -143,15 +143,6 @@ enum { IPW_DEBUG_ENABLED = 0 }; | |||
143 | #define IPW_DEBUG_STATE(f, a...) IPW_DEBUG(IPW_DL_STATE | IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) | 143 | #define IPW_DEBUG_STATE(f, a...) IPW_DEBUG(IPW_DL_STATE | IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) |
144 | #define IPW_DEBUG_ASSOC(f, a...) IPW_DEBUG(IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) | 144 | #define IPW_DEBUG_ASSOC(f, a...) IPW_DEBUG(IPW_DL_ASSOC | IPW_DL_INFO, f, ## a) |
145 | 145 | ||
146 | |||
147 | #define VERIFY(f) \ | ||
148 | { \ | ||
149 | int status = 0; \ | ||
150 | status = f; \ | ||
151 | if(status) \ | ||
152 | return status; \ | ||
153 | } | ||
154 | |||
155 | enum { | 146 | enum { |
156 | IPW_HW_STATE_DISABLED = 1, | 147 | IPW_HW_STATE_DISABLED = 1, |
157 | IPW_HW_STATE_ENABLED = 0 | 148 | IPW_HW_STATE_ENABLED = 0 |
@@ -186,8 +177,6 @@ struct bd_status { | |||
186 | } info; | 177 | } info; |
187 | } __attribute__ ((packed)); | 178 | } __attribute__ ((packed)); |
188 | 179 | ||
189 | #define IPW_BUFDESC_LAST_FRAG 0 | ||
190 | |||
191 | struct ipw2100_bd { | 180 | struct ipw2100_bd { |
192 | u32 host_addr; | 181 | u32 host_addr; |
193 | u32 buf_length; | 182 | u32 buf_length; |
@@ -624,9 +613,6 @@ struct ipw2100_priv { | |||
624 | struct semaphore adapter_sem; | 613 | struct semaphore adapter_sem; |
625 | 614 | ||
626 | wait_queue_head_t wait_command_queue; | 615 | wait_queue_head_t wait_command_queue; |
627 | #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) | ||
628 | u32 pm_state[PM_STATE_SIZE]; | ||
629 | #endif | ||
630 | }; | 616 | }; |
631 | 617 | ||
632 | 618 | ||
@@ -728,41 +714,6 @@ struct ipw2100_priv { | |||
728 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_WRITE_INDEX \ | 714 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_WRITE_INDEX \ |
729 | (IPW_MEM_SRAM_HOST_INTERRUPT_AREA_LOWER_BOUND) | 715 | (IPW_MEM_SRAM_HOST_INTERRUPT_AREA_LOWER_BOUND) |
730 | 716 | ||
731 | |||
732 | #if 0 | ||
733 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_0_BD_BASE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x00) | ||
734 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_0_BD_SIZE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x04) | ||
735 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_1_BD_BASE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x08) | ||
736 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_1_BD_SIZE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x0c) | ||
737 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_2_BD_BASE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x10) | ||
738 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_2_BD_SIZE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x14) | ||
739 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_3_BD_BASE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x18) | ||
740 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_3_BD_SIZE (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x1c) | ||
741 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_0_READ_INDEX (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x80) | ||
742 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_1_READ_INDEX (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x84) | ||
743 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_2_READ_INDEX (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x88) | ||
744 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_3_READ_INDEX (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x8c) | ||
745 | |||
746 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_BD_BASE(QueueNum) \ | ||
747 | (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + (QueueNum<<3)) | ||
748 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_BD_SIZE(QueueNum) \ | ||
749 | (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x0004+(QueueNum<<3)) | ||
750 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_READ_INDEX(QueueNum) \ | ||
751 | (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x0080+(QueueNum<<2)) | ||
752 | |||
753 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_0_WRITE_INDEX \ | ||
754 | (IPW_MEM_SRAM_HOST_INTERRUPT_AREA_LOWER_BOUND + 0x00) | ||
755 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_1_WRITE_INDEX \ | ||
756 | (IPW_MEM_SRAM_HOST_INTERRUPT_AREA_LOWER_BOUND + 0x04) | ||
757 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_2_WRITE_INDEX \ | ||
758 | (IPW_MEM_SRAM_HOST_INTERRUPT_AREA_LOWER_BOUND + 0x08) | ||
759 | #define IPW_MEM_HOST_SHARED_TX_QUEUE_3_WRITE_INDEX \ | ||
760 | (IPW_MEM_SRAM_HOST_INTERRUPT_AREA_LOWER_BOUND + 0x0c) | ||
761 | #define IPW_MEM_HOST_SHARED_SLAVE_MODE_INT_REGISTER \ | ||
762 | (IPW_MEM_SRAM_HOST_INTERRUPT_AREA_LOWER_BOUND + 0x78) | ||
763 | |||
764 | #endif | ||
765 | |||
766 | #define IPW_MEM_HOST_SHARED_ORDINALS_TABLE_1 (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x180) | 717 | #define IPW_MEM_HOST_SHARED_ORDINALS_TABLE_1 (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x180) |
767 | #define IPW_MEM_HOST_SHARED_ORDINALS_TABLE_2 (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x184) | 718 | #define IPW_MEM_HOST_SHARED_ORDINALS_TABLE_2 (IPW_MEM_SRAM_HOST_SHARED_LOWER_BOUND + 0x184) |
768 | 719 | ||