diff options
Diffstat (limited to 'drivers/net/tokenring/ibmtr.c')
-rw-r--r-- | drivers/net/tokenring/ibmtr.c | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/net/tokenring/ibmtr.c b/drivers/net/tokenring/ibmtr.c index 3873917a9c22..e7b001017b9a 100644 --- a/drivers/net/tokenring/ibmtr.c +++ b/drivers/net/tokenring/ibmtr.c | |||
@@ -151,7 +151,7 @@ static char version[] __initdata = | |||
151 | 151 | ||
152 | /* this allows displaying full adapter information */ | 152 | /* this allows displaying full adapter information */ |
153 | 153 | ||
154 | char *channel_def[] __devinitdata = { "ISA", "MCA", "ISA P&P" }; | 154 | static char *channel_def[] __devinitdata = { "ISA", "MCA", "ISA P&P" }; |
155 | 155 | ||
156 | static char pcchannelid[] __devinitdata = { | 156 | static char pcchannelid[] __devinitdata = { |
157 | 0x05, 0x00, 0x04, 0x09, | 157 | 0x05, 0x00, 0x04, 0x09, |
@@ -171,7 +171,7 @@ static char mcchannelid[] __devinitdata = { | |||
171 | 0x03, 0x08, 0x02, 0x00 | 171 | 0x03, 0x08, 0x02, 0x00 |
172 | }; | 172 | }; |
173 | 173 | ||
174 | char __devinit *adapter_def(char type) | 174 | static char __devinit *adapter_def(char type) |
175 | { | 175 | { |
176 | switch (type) { | 176 | switch (type) { |
177 | case 0xF: return "PC Adapter | PC Adapter II | Adapter/A"; | 177 | case 0xF: return "PC Adapter | PC Adapter II | Adapter/A"; |
@@ -184,7 +184,7 @@ char __devinit *adapter_def(char type) | |||
184 | 184 | ||
185 | #define TRC_INIT 0x01 /* Trace initialization & PROBEs */ | 185 | #define TRC_INIT 0x01 /* Trace initialization & PROBEs */ |
186 | #define TRC_INITV 0x02 /* verbose init trace points */ | 186 | #define TRC_INITV 0x02 /* verbose init trace points */ |
187 | unsigned char ibmtr_debug_trace = 0; | 187 | static unsigned char ibmtr_debug_trace = 0; |
188 | 188 | ||
189 | static int ibmtr_probe(struct net_device *dev); | 189 | static int ibmtr_probe(struct net_device *dev); |
190 | static int ibmtr_probe1(struct net_device *dev, int ioaddr); | 190 | static int ibmtr_probe1(struct net_device *dev, int ioaddr); |
@@ -192,20 +192,20 @@ static unsigned char get_sram_size(struct tok_info *adapt_info); | |||
192 | static int trdev_init(struct net_device *dev); | 192 | static int trdev_init(struct net_device *dev); |
193 | static int tok_open(struct net_device *dev); | 193 | static int tok_open(struct net_device *dev); |
194 | static int tok_init_card(struct net_device *dev); | 194 | static int tok_init_card(struct net_device *dev); |
195 | void tok_open_adapter(unsigned long dev_addr); | 195 | static void tok_open_adapter(unsigned long dev_addr); |
196 | static void open_sap(unsigned char type, struct net_device *dev); | 196 | static void open_sap(unsigned char type, struct net_device *dev); |
197 | static void tok_set_multicast_list(struct net_device *dev); | 197 | static void tok_set_multicast_list(struct net_device *dev); |
198 | static int tok_send_packet(struct sk_buff *skb, struct net_device *dev); | 198 | static int tok_send_packet(struct sk_buff *skb, struct net_device *dev); |
199 | static int tok_close(struct net_device *dev); | 199 | static int tok_close(struct net_device *dev); |
200 | irqreturn_t tok_interrupt(int irq, void *dev_id, struct pt_regs *regs); | 200 | static irqreturn_t tok_interrupt(int irq, void *dev_id, struct pt_regs *regs); |
201 | static void initial_tok_int(struct net_device *dev); | 201 | static void initial_tok_int(struct net_device *dev); |
202 | static void tr_tx(struct net_device *dev); | 202 | static void tr_tx(struct net_device *dev); |
203 | static void tr_rx(struct net_device *dev); | 203 | static void tr_rx(struct net_device *dev); |
204 | void ibmtr_reset_timer(struct timer_list*tmr,struct net_device *dev); | 204 | static void ibmtr_reset_timer(struct timer_list*tmr,struct net_device *dev); |
205 | static void tok_rerun(unsigned long dev_addr); | 205 | static void tok_rerun(unsigned long dev_addr); |
206 | void ibmtr_readlog(struct net_device *dev); | 206 | static void ibmtr_readlog(struct net_device *dev); |
207 | static struct net_device_stats *tok_get_stats(struct net_device *dev); | 207 | static struct net_device_stats *tok_get_stats(struct net_device *dev); |
208 | int ibmtr_change_mtu(struct net_device *dev, int mtu); | 208 | static int ibmtr_change_mtu(struct net_device *dev, int mtu); |
209 | static void find_turbo_adapters(int *iolist); | 209 | static void find_turbo_adapters(int *iolist); |
210 | 210 | ||
211 | static int ibmtr_portlist[IBMTR_MAX_ADAPTERS+1] __devinitdata = { | 211 | static int ibmtr_portlist[IBMTR_MAX_ADAPTERS+1] __devinitdata = { |
@@ -928,7 +928,7 @@ static int tok_open(struct net_device *dev) | |||
928 | #define DLC_MAX_SAP_OFST 32 | 928 | #define DLC_MAX_SAP_OFST 32 |
929 | #define DLC_MAX_STA_OFST 33 | 929 | #define DLC_MAX_STA_OFST 33 |
930 | 930 | ||
931 | void tok_open_adapter(unsigned long dev_addr) | 931 | static void tok_open_adapter(unsigned long dev_addr) |
932 | { | 932 | { |
933 | struct net_device *dev = (struct net_device *) dev_addr; | 933 | struct net_device *dev = (struct net_device *) dev_addr; |
934 | struct tok_info *ti; | 934 | struct tok_info *ti; |
@@ -1099,7 +1099,7 @@ static void __iomem *map_address(struct tok_info *ti, unsigned index, __u8 *page | |||
1099 | return ti->sram_virt + index; | 1099 | return ti->sram_virt + index; |
1100 | } | 1100 | } |
1101 | 1101 | ||
1102 | void dir_open_adapter (struct net_device *dev) | 1102 | static void dir_open_adapter (struct net_device *dev) |
1103 | { | 1103 | { |
1104 | struct tok_info *ti = (struct tok_info *) dev->priv; | 1104 | struct tok_info *ti = (struct tok_info *) dev->priv; |
1105 | unsigned char ret_code; | 1105 | unsigned char ret_code; |
@@ -1172,7 +1172,7 @@ void dir_open_adapter (struct net_device *dev) | |||
1172 | 1172 | ||
1173 | /******************************************************************************/ | 1173 | /******************************************************************************/ |
1174 | 1174 | ||
1175 | irqreturn_t tok_interrupt(int irq, void *dev_id, struct pt_regs *regs) | 1175 | static irqreturn_t tok_interrupt(int irq, void *dev_id, struct pt_regs *regs) |
1176 | { | 1176 | { |
1177 | unsigned char status; | 1177 | unsigned char status; |
1178 | /* unsigned char status_even ; */ | 1178 | /* unsigned char status_even ; */ |
@@ -1840,7 +1840,7 @@ static void tr_rx(struct net_device *dev) | |||
1840 | 1840 | ||
1841 | /*****************************************************************************/ | 1841 | /*****************************************************************************/ |
1842 | 1842 | ||
1843 | void ibmtr_reset_timer(struct timer_list *tmr, struct net_device *dev) | 1843 | static void ibmtr_reset_timer(struct timer_list *tmr, struct net_device *dev) |
1844 | { | 1844 | { |
1845 | tmr->expires = jiffies + TR_RETRY_INTERVAL; | 1845 | tmr->expires = jiffies + TR_RETRY_INTERVAL; |
1846 | tmr->data = (unsigned long) dev; | 1846 | tmr->data = (unsigned long) dev; |
@@ -1872,7 +1872,7 @@ void tok_rerun(unsigned long dev_addr){ | |||
1872 | 1872 | ||
1873 | /*****************************************************************************/ | 1873 | /*****************************************************************************/ |
1874 | 1874 | ||
1875 | void ibmtr_readlog(struct net_device *dev) | 1875 | static void ibmtr_readlog(struct net_device *dev) |
1876 | { | 1876 | { |
1877 | struct tok_info *ti; | 1877 | struct tok_info *ti; |
1878 | 1878 | ||
@@ -1905,7 +1905,7 @@ static struct net_device_stats *tok_get_stats(struct net_device *dev) | |||
1905 | 1905 | ||
1906 | /*****************************************************************************/ | 1906 | /*****************************************************************************/ |
1907 | 1907 | ||
1908 | int ibmtr_change_mtu(struct net_device *dev, int mtu) | 1908 | static int ibmtr_change_mtu(struct net_device *dev, int mtu) |
1909 | { | 1909 | { |
1910 | struct tok_info *ti = (struct tok_info *) dev->priv; | 1910 | struct tok_info *ti = (struct tok_info *) dev->priv; |
1911 | 1911 | ||