diff options
| author | Michael Brown | 2005-05-03 13:29:33 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-05-03 13:29:33 +0200 |
| commit | c112f12c5b9b2d883253624c81f6a1c8095966ef (patch) | |
| tree | e2a5c9685a30184fc933ac49577d379091801b7f /src/drivers/net/ns83820.c | |
| parent | Arbitrary alignment is now available. (diff) | |
| download | ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.gz ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.xz ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.zip | |
Symbol fixups
Diffstat (limited to 'src/drivers/net/ns83820.c')
| -rwxr-xr-x | src/drivers/net/ns83820.c | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/src/drivers/net/ns83820.c b/src/drivers/net/ns83820.c index c29684c35..d4fafb686 100755 --- a/src/drivers/net/ns83820.c +++ b/src/drivers/net/ns83820.c @@ -393,24 +393,18 @@ struct ns83820_private { } nsx; static struct ns83820_private *ns; -/* Define the TX Descriptor */ -static struct ring_desc tx_ring[NR_TX_DESC] - __attribute__ ((aligned(8))); - -/* Create a static buffer of size REAL_RX_BUF_SIZE for each -TX Descriptor. All descriptors point to a -part of this buffer */ -static unsigned char txb[NR_TX_DESC * REAL_RX_BUF_SIZE]; - -/* Define the TX Descriptor */ -static struct ring_desc rx_ring[NR_RX_DESC] - __attribute__ ((aligned(8))); - -/* Create a static buffer of size REAL_RX_BUF_SIZE for each -RX Descriptor All descriptors point to a -part of this buffer */ -static unsigned char rxb[NR_RX_DESC * REAL_RX_BUF_SIZE] - __attribute__ ((aligned(8))); +/* Define the TX and RX Descriptor and Buffers */ +struct { + struct ring_desc tx_ring[NR_TX_DESC] __attribute__ ((aligned(8))); + unsigned char txb[NR_TX_DESC * REAL_RX_BUF_SIZE]; + struct ring_desc rx_ring[NR_RX_DESC] __attribute__ ((aligned(8))); + unsigned char rxb[NR_RX_DESC * REAL_RX_BUF_SIZE] + __attribute__ ((aligned(8))); +} ns83820_bufs __shared; +#define tx_ring ns83820_bufs.tx_ring +#define rx_ring ns83820_bufs.rx_ring +#define txb ns83820_bufs.txb +#define rxb ns83820_bufs.rxb static void phy_intr(struct nic *nic __unused) { |
