fake-hw.c 448 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include "syscon.h"
#include "spll_common.h"
#include "hw/etherbone-config.h"

static struct SYSCON_WB _syscon;
volatile struct SYSCON_WB *syscon = &_syscon;

static unsigned char _pps[sizeof(struct PPSG_WB)];
unsigned char *BASE_PPS_GEN = (void *)&_pps;

static unsigned char _pll[sizeof(struct SPLL_WB)];
unsigned char *BASE_SOFTPLL = (void *)&_pll;

static unsigned char _ebone[EB_IPV4 + 4];
unsigned char *BASE_ETHERBONE_CFG = (void *)&_ebone;