summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/ns83820.c
diff options
context:
space:
mode:
authorMichael Brown2005-05-03 13:29:33 +0200
committerMichael Brown2005-05-03 13:29:33 +0200
commitc112f12c5b9b2d883253624c81f6a1c8095966ef (patch)
treee2a5c9685a30184fc933ac49577d379091801b7f /src/drivers/net/ns83820.c
parentArbitrary alignment is now available. (diff)
downloadipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.gz
ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.tar.xz
ipxe-c112f12c5b9b2d883253624c81f6a1c8095966ef.zip
Symbol fixups
Diffstat (limited to 'src/drivers/net/ns83820.c')
-rwxr-xr-xsrc/drivers/net/ns83820.c30
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)
{