Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27579
b: refs/heads/master
c: c86a31f
h: refs/heads/master
i:
  27577: 54b5849
  27575: 7d99234
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Jun 18, 2006
1 parent 71f448f commit 0f3e9fa
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7a6400cd3dbcfc3bbffcdb6dac4ffc957fb50e19
refs/heads/master: c86a31f452f7dd132a1765d6d7160b0947f37b14
1 change: 1 addition & 0 deletions trunk/drivers/net/bnx2.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#include <asm/irq.h>
#include <linux/delay.h>
#include <asm/byteorder.h>
#include <asm/page.h>
#include <linux/time.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
Expand Down
9 changes: 7 additions & 2 deletions trunk/drivers/net/bnx2.h
Original file line number Diff line number Diff line change
Expand Up @@ -3750,7 +3750,12 @@ struct l2_fhdr {
#define DMA_READ_CHANS 5
#define DMA_WRITE_CHANS 3

#define BCM_PAGE_BITS 12
/* Use CPU native page size up to 16K for the ring sizes. */
#if (PAGE_SHIFT > 14)
#define BCM_PAGE_BITS 14
#else
#define BCM_PAGE_BITS PAGE_SHIFT
#endif
#define BCM_PAGE_SIZE (1 << BCM_PAGE_BITS)

#define TX_DESC_CNT (BCM_PAGE_SIZE / sizeof(struct tx_bd))
Expand All @@ -3773,7 +3778,7 @@ struct l2_fhdr {

#define RX_RING_IDX(x) ((x) & bp->rx_max_ring_idx)

#define RX_RING(x) (((x) & ~MAX_RX_DESC_CNT) >> 8)
#define RX_RING(x) (((x) & ~MAX_RX_DESC_CNT) >> (BCM_PAGE_BITS - 4))
#define RX_IDX(x) ((x) & MAX_RX_DESC_CNT)

/* Context size. */
Expand Down

0 comments on commit 0f3e9fa

Please sign in to comment.