summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c')
-rw-r--r--c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c47
1 files changed, 0 insertions, 47 deletions
diff --git a/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c b/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c
deleted file mode 100644
index cece0053a8..0000000000
--- a/c/src/lib/libbsp/sparc/leon/leon_open_eth/leon_open_eth.c
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * LEON2 Opencores Ethernet MAC Configuration Information
- *
- */
-
-#include <bsp.h>
-#include <libchip/open_eth.h>
-#if (OPEN_ETH_DEBUG & OPEN_ETH_DEBUG_PRINT_REGISTERS)
-#include <stdio.h>
-#endif
-
-/*
- * Default sizes of transmit and receive descriptor areas
- */
-#define RDA_COUNT 16
-#define TDA_COUNT 16
-
-/*
- * Default location of device registers
- */
-#define OPEN_ETH_BASE_ADDRESS 0xb0000000
-
-/*
- * Default interrupt vector
- */
-#define OPEN_ETH_VECTOR 0x1C
-
-open_eth_configuration_t leon_open_eth_configuration = {
- OPEN_ETH_BASE_ADDRESS, /* base address */
- OPEN_ETH_VECTOR, /* vector number */
- TDA_COUNT, /* number of transmit descriptors */
- RDA_COUNT /* number of receive descriptors */
-};
-
-int rtems_leon_open_eth_driver_attach(struct rtems_bsdnet_ifconfig *config)
-{
-
- *(volatile int *) OPEN_ETH_BASE_ADDRESS = 0;
- *(volatile int *) OPEN_ETH_BASE_ADDRESS = 0x800;
- *(volatile int *) OPEN_ETH_BASE_ADDRESS = 0;
- if (rtems_open_eth_driver_attach( config, &leon_open_eth_configuration )) {
- LEON_REG.Interrupt_Clear = (1 << (OPEN_ETH_VECTOR - 0x10));
- LEON_REG.Interrupt_Mask |= (1 << (OPEN_ETH_VECTOR - 0x10));
- return 1;
- }
- return 0;
-}