diff options
Diffstat (limited to 'drivers/net/jme.h')
-rw-r--r-- | drivers/net/jme.h | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/drivers/net/jme.h b/drivers/net/jme.h index 0996a069ac7b..251abed3817e 100644 --- a/drivers/net/jme.h +++ b/drivers/net/jme.h | |||
@@ -25,7 +25,7 @@ | |||
25 | #define __JME_H_INCLUDED__ | 25 | #define __JME_H_INCLUDED__ |
26 | 26 | ||
27 | #define DRV_NAME "jme" | 27 | #define DRV_NAME "jme" |
28 | #define DRV_VERSION "1.0.4" | 28 | #define DRV_VERSION "1.0.5" |
29 | #define PFX DRV_NAME ": " | 29 | #define PFX DRV_NAME ": " |
30 | 30 | ||
31 | #define PCI_DEVICE_ID_JMICRON_JMC250 0x0250 | 31 | #define PCI_DEVICE_ID_JMICRON_JMC250 0x0250 |
@@ -247,7 +247,7 @@ enum jme_txdesc_flags_bits { | |||
247 | }; | 247 | }; |
248 | 248 | ||
249 | #define TXDESC_MSS_SHIFT 2 | 249 | #define TXDESC_MSS_SHIFT 2 |
250 | enum jme_rxdescwb_flags_bits { | 250 | enum jme_txwbdesc_flags_bits { |
251 | TXWBFLAG_OWN = 0x80, | 251 | TXWBFLAG_OWN = 0x80, |
252 | TXWBFLAG_INT = 0x40, | 252 | TXWBFLAG_INT = 0x40, |
253 | TXWBFLAG_TMOUT = 0x20, | 253 | TXWBFLAG_TMOUT = 0x20, |
@@ -372,7 +372,6 @@ struct jme_buffer_info { | |||
372 | /* | 372 | /* |
373 | * The structure holding buffer information and ring descriptors all together. | 373 | * The structure holding buffer information and ring descriptors all together. |
374 | */ | 374 | */ |
375 | #define MAX_RING_DESC_NR 1024 | ||
376 | struct jme_ring { | 375 | struct jme_ring { |
377 | void *alloc; /* pointer to allocated memory */ | 376 | void *alloc; /* pointer to allocated memory */ |
378 | void *desc; /* pointer to ring memory */ | 377 | void *desc; /* pointer to ring memory */ |
@@ -380,7 +379,7 @@ struct jme_ring { | |||
380 | dma_addr_t dma; /* phys address for ring dma */ | 379 | dma_addr_t dma; /* phys address for ring dma */ |
381 | 380 | ||
382 | /* Buffer information corresponding to each descriptor */ | 381 | /* Buffer information corresponding to each descriptor */ |
383 | struct jme_buffer_info bufinf[MAX_RING_DESC_NR]; | 382 | struct jme_buffer_info *bufinf; |
384 | 383 | ||
385 | int next_to_use; | 384 | int next_to_use; |
386 | atomic_t next_to_clean; | 385 | atomic_t next_to_clean; |
@@ -411,13 +410,10 @@ struct jme_ring { | |||
411 | /* | 410 | /* |
412 | * Jmac Adapter Private data | 411 | * Jmac Adapter Private data |
413 | */ | 412 | */ |
414 | #define SHADOW_REG_NR 8 | ||
415 | struct jme_adapter { | 413 | struct jme_adapter { |
416 | struct pci_dev *pdev; | 414 | struct pci_dev *pdev; |
417 | struct net_device *dev; | 415 | struct net_device *dev; |
418 | void __iomem *regs; | 416 | void __iomem *regs; |
419 | dma_addr_t shadow_dma; | ||
420 | u32 *shadow_regs; | ||
421 | struct mii_if_info mii_if; | 417 | struct mii_if_info mii_if; |
422 | struct jme_ring rxring[RX_RING_NR]; | 418 | struct jme_ring rxring[RX_RING_NR]; |
423 | struct jme_ring txring[TX_RING_NR]; | 419 | struct jme_ring txring[TX_RING_NR]; |
@@ -464,10 +460,6 @@ struct jme_adapter { | |||
464 | DECLARE_NET_DEVICE_STATS | 460 | DECLARE_NET_DEVICE_STATS |
465 | }; | 461 | }; |
466 | 462 | ||
467 | enum shadow_reg_val { | ||
468 | SHADOW_IEVE = 0, | ||
469 | }; | ||
470 | |||
471 | enum jme_flags_bits { | 463 | enum jme_flags_bits { |
472 | JME_FLAG_MSI = 1, | 464 | JME_FLAG_MSI = 1, |
473 | JME_FLAG_SSET = 2, | 465 | JME_FLAG_SSET = 2, |
@@ -1104,13 +1096,6 @@ enum jme_chipmode_shifts { | |||
1104 | }; | 1096 | }; |
1105 | 1097 | ||
1106 | /* | 1098 | /* |
1107 | * Shadow base address register bits | ||
1108 | */ | ||
1109 | enum jme_shadow_base_address_bits { | ||
1110 | SHBA_POSTEN = 0x1, | ||
1111 | }; | ||
1112 | |||
1113 | /* | ||
1114 | * Aggressive Power Mode Control | 1099 | * Aggressive Power Mode Control |
1115 | */ | 1100 | */ |
1116 | enum jme_apmc_bits { | 1101 | enum jme_apmc_bits { |