linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / net / via-velocity.h
index 496c3d5..d9a774b 100644 (file)
@@ -31,8 +31,6 @@
 #define VELOCITY_FULL_DRV_NAM  "VIA Networking Velocity Family Gigabit Ethernet Adapter Driver"
 #define VELOCITY_VERSION       "1.13"
 
-#define VELOCITY_IO_SIZE       256
-
 #define PKT_BUF_SZ          1540
 
 #define MAX_UNITS           8
@@ -309,7 +307,7 @@ enum  velocity_owner {
 #define TX_QUEUE_NO         4
 
 #define MAX_HW_MIB_COUNTER  32
-#define VELOCITY_MIN_MTU    (64)
+#define VELOCITY_MIN_MTU    (1514-14)
 #define VELOCITY_MAX_MTU    (9000)
 
 /*
@@ -1193,6 +1191,7 @@ enum chip_type {
 struct velocity_info_tbl {
        enum chip_type chip_id;
        char *name;
+       int io_size;
        int txqueue;
        u32 flags;
 };
@@ -1752,6 +1751,7 @@ struct velocity_info {
        struct mac_regs __iomem * mac_regs;
        unsigned long memaddr;
        unsigned long ioaddr;
+       u32 io_size;
 
        u8 rev_id;