summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/exanic.h
diff options
context:
space:
mode:
authorSimon Rettberg2026-01-28 12:53:53 +0100
committerSimon Rettberg2026-01-28 12:53:53 +0100
commit8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch)
treea8b359e59196be5b2e3862bed189107f4bc9975f /src/drivers/net/exanic.h
parentMerge branch 'master' into openslx (diff)
parent[prefix] Make unlzma.S compatible with 386 class CPUs (diff)
downloadipxe-openslx.tar.gz
ipxe-openslx.tar.xz
ipxe-openslx.zip
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/drivers/net/exanic.h')
-rw-r--r--src/drivers/net/exanic.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/drivers/net/exanic.h b/src/drivers/net/exanic.h
index 041b9e21a..7c59612e0 100644
--- a/src/drivers/net/exanic.h
+++ b/src/drivers/net/exanic.h
@@ -12,7 +12,6 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#include <stdint.h>
#include <ipxe/pci.h>
#include <ipxe/ethernet.h>
-#include <ipxe/uaccess.h>
#include <ipxe/retry.h>
#include <ipxe/i2c.h>
#include <ipxe/bitbash.h>
@@ -158,6 +157,9 @@ struct exanic_rx_chunk {
/** Receive status error mask */
#define EXANIC_STATUS_ERROR_MASK 0x0f
+/** Number of receive chunks */
+#define EXANIC_RX_COUNT ( EXANIC_RX_LEN / sizeof ( struct exanic_rx_chunk ) )
+
/** An ExaNIC I2C bus configuration */
struct exanic_i2c_config {
/** GPIO bit for pulling SCL low */
@@ -194,7 +196,7 @@ struct exanic_port {
uint16_t *txf;
/** Receive region */
- userptr_t rx;
+ struct exanic_rx_chunk *rx;
/** Receive consumer counter */
unsigned int rx_cons;
/** Receive I/O buffer (if any) */