From e88fc507c83dc25dff0e885d425743f5911e0a30 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 19 May 2019 19:29:04 +0200 Subject: [PATCH] software: remote ethmac_mem.h dependency (no longer exists in LiteX) --- liteeth/software/liblwip/netif/liteethif.c | 6 +++++- liteeth/software/libuip/liteethmac-drv.c | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/liteeth/software/liblwip/netif/liteethif.c b/liteeth/software/liblwip/netif/liteethif.c index e89c3e5..2769e9d 100644 --- a/liteeth/software/liblwip/netif/liteethif.c +++ b/liteeth/software/liblwip/netif/liteethif.c @@ -13,7 +13,11 @@ #include "netif/liteethif.h" #include -#include + +#define ETHMAC_RX0_BASE ETHMAC_BASE +#define ETHMAC_RX1_BASE (ETHMAC_BASE+0x0800) +#define ETHMAC_TX0_BASE (ETHMAC_BASE+0x1000) +#define ETHMAC_TX1_BASE (ETHMAC_BASE+0x1800) static unsigned int rxslot; static unsigned int rxlen; diff --git a/liteeth/software/libuip/liteethmac-drv.c b/liteeth/software/libuip/liteethmac-drv.c index f9c1b67..5bc6533 100644 --- a/liteeth/software/libuip/liteethmac-drv.c +++ b/liteeth/software/libuip/liteethmac-drv.c @@ -10,10 +10,14 @@ #include #include #include -#include #include #include +#define ETHMAC_RX0_BASE ETHMAC_BASE +#define ETHMAC_RX1_BASE (ETHMAC_BASE+0x0800) +#define ETHMAC_TX0_BASE (ETHMAC_BASE+0x1000) +#define ETHMAC_TX1_BASE (ETHMAC_BASE+0x1800) + #define MIN(a,b) (((a)<(b))?(a):(b)) #define MAX(a,b) (((a)>(b))?(a):(b))