software: remote ethmac_mem.h dependency (no longer exists in LiteX)

This commit is contained in:
Florent Kermarrec 2019-05-19 19:29:04 +02:00
parent b318300414
commit e88fc507c8
2 changed files with 10 additions and 2 deletions

View File

@ -13,7 +13,11 @@
#include "netif/liteethif.h"
#include <hw/flags.h>
#include <hw/ethmac_mem.h>
#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;

View File

@ -10,10 +10,14 @@
#include <string.h>
#include <system.h>
#include <hw/flags.h>
#include <hw/ethmac_mem.h>
#include <console.h>
#include <generated/csr.h>
#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))