smc9194.c (a976c2951d8f376112361830aa7762beff83a205) | smc9194.c (0290bd291cc0e0488e35e66bf39efcd7d9d9122b) |
---|---|
1/*------------------------------------------------------------------------ 2 . smc9194.c 3 . This is a driver for SMC's 9000 series of Ethernet cards. 4 . 5 . Copyright (C) 1996 by Erik Stahlman 6 . This software may be used and distributed according to the terms 7 . of the GNU General Public License, incorporated herein by reference. 8 . --- 202 unchanged lines hidden (view full) --- 211 . The kernel calls this function when someone wants to use the device, 212 . typically 'ifconfig ethX up'. 213*/ 214static int smc_open(struct net_device *dev); 215 216/* 217 . Our watchdog timed out. Called by the networking layer 218*/ | 1/*------------------------------------------------------------------------ 2 . smc9194.c 3 . This is a driver for SMC's 9000 series of Ethernet cards. 4 . 5 . Copyright (C) 1996 by Erik Stahlman 6 . This software may be used and distributed according to the terms 7 . of the GNU General Public License, incorporated herein by reference. 8 . --- 202 unchanged lines hidden (view full) --- 211 . The kernel calls this function when someone wants to use the device, 212 . typically 'ifconfig ethX up'. 213*/ 214static int smc_open(struct net_device *dev); 215 216/* 217 . Our watchdog timed out. Called by the networking layer 218*/ |
219static void smc_timeout(struct net_device *dev); | 219static void smc_timeout(struct net_device *dev, unsigned int txqueue); |
220 221/* 222 . This is called by the kernel in response to 'ifconfig ethX down'. It 223 . is responsible for cleaning up everything that the open routine 224 . does, and maybe putting the card into a powerdown state. 225*/ 226static int smc_close(struct net_device *dev); 227 --- 861 unchanged lines hidden (view full) --- 1089 1090/*-------------------------------------------------------- 1091 . Called by the kernel to send a packet out into the void 1092 . of the net. This routine is largely based on 1093 . skeleton.c, from Becker. 1094 .-------------------------------------------------------- 1095*/ 1096 | 220 221/* 222 . This is called by the kernel in response to 'ifconfig ethX down'. It 223 . is responsible for cleaning up everything that the open routine 224 . does, and maybe putting the card into a powerdown state. 225*/ 226static int smc_close(struct net_device *dev); 227 --- 861 unchanged lines hidden (view full) --- 1089 1090/*-------------------------------------------------------- 1091 . Called by the kernel to send a packet out into the void 1092 . of the net. This routine is largely based on 1093 . skeleton.c, from Becker. 1094 .-------------------------------------------------------- 1095*/ 1096 |
1097static void smc_timeout(struct net_device *dev) | 1097static void smc_timeout(struct net_device *dev, unsigned int txqueue) |
1098{ 1099 /* If we get here, some higher level has decided we are broken. 1100 There should really be a "kick me" function call instead. */ 1101 netdev_warn(dev, CARDNAME": transmit timed out, %s?\n", 1102 tx_done(dev) ? "IRQ conflict" : "network cable problem"); 1103 /* "kick" the adaptor */ 1104 smc_reset( dev->base_addr ); 1105 smc_enable( dev->base_addr ); --- 425 unchanged lines hidden --- | 1098{ 1099 /* If we get here, some higher level has decided we are broken. 1100 There should really be a "kick me" function call instead. */ 1101 netdev_warn(dev, CARDNAME": transmit timed out, %s?\n", 1102 tx_done(dev) ? "IRQ conflict" : "network cable problem"); 1103 /* "kick" the adaptor */ 1104 smc_reset( dev->base_addr ); 1105 smc_enable( dev->base_addr ); --- 425 unchanged lines hidden --- |