patch-2.4.22 linux-2.4.22/drivers/net/typhoon.c
Next file: linux-2.4.22/drivers/net/via-rhine.c
Previous file: linux-2.4.22/drivers/net/tulip/tulip_core.c
Back to the patch index
Back to the overall index
- Lines: 56
- Date:
2003-08-25 04:44:42.000000000 -0700
- Orig file:
linux-2.4.21/drivers/net/typhoon.c
- Orig date:
2003-06-13 07:51:35.000000000 -0700
diff -urN linux-2.4.21/drivers/net/typhoon.c linux-2.4.22/drivers/net/typhoon.c
@@ -40,7 +40,7 @@
/* Set the copy breakpoint for the copy-only-tiny-frames scheme.
* Setting to > 1518 effectively disables this feature.
*/
-static int rx_copybreak = 0;
+static int rx_copybreak = 200;
/* end user-configurable values */
@@ -85,8 +85,8 @@
#define PKT_BUF_SZ 1536
#define DRV_MODULE_NAME "typhoon"
-#define DRV_MODULE_VERSION "1.0"
-#define DRV_MODULE_RELDATE "03/02/14"
+#define DRV_MODULE_VERSION "1.4.1"
+#define DRV_MODULE_RELDATE "03/06/26"
#define PFX DRV_MODULE_NAME ": "
#define ERR_PFX KERN_ERR PFX
@@ -150,7 +150,7 @@
#define TYPHOON_CRYPTO_DES 1
#define TYPHOON_CRYPTO_3DES 2
#define TYPHOON_CRYPTO_VARIABLE 4
-#define TYPHOON_FIBER 5
+#define TYPHOON_FIBER 8
enum typhoon_cards {
TYPHOON_TX = 0, TYPHOON_TX95, TYPHOON_TX97, TYPHOON_SVR,
@@ -1798,7 +1798,7 @@
u32 intr_status;
intr_status = readl(ioaddr + TYPHOON_REG_INTR_STATUS);
- if(!intr_status)
+ if(!(intr_status & TYPHOON_INTR_HOST_INT))
return;
writel(intr_status, ioaddr + TYPHOON_REG_INTR_STATUS);
@@ -2134,7 +2134,7 @@
return 0;
}
-#if CONFIG_PM
+#ifdef CONFIG_PM
static int
typhoon_resume(struct pci_dev *pdev)
{
@@ -2482,7 +2482,7 @@
.id_table = typhoon_pci_tbl,
.probe = typhoon_init_one,
.remove = __devexit_p(typhoon_remove_one),
-#if CONFIG_PM
+#ifdef CONFIG_PM
.suspend = typhoon_suspend,
.resume = typhoon_resume,
.enable_wake = typhoon_enable_wake,
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)