summaryrefslogtreecommitdiffstats
path: root/bsps/riscv/griscv/include
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2020-10-24 16:43:49 +0200
committerJiri Gaisler <jiri@gaisler.se>2020-11-09 09:35:11 +0100
commitb4c29b54e7967a6197fd2542e5abd601fe434e1d (patch)
tree83ac3a1f83b04a1dde1c304a75692b1b0278f828 /bsps/riscv/griscv/include
parentlibtrace: Move _Record_Stream_header_initialize() (diff)
downloadrtems-b4c29b54e7967a6197fd2542e5abd601fe434e1d.tar.bz2
Add networking support for griscv bsp
* Only GRETH device supported for now * Fix endian problem in GRETH driver * Remove SPARC assembly from greth.c * Builds with both autoconf and waf
Diffstat (limited to 'bsps/riscv/griscv/include')
-rw-r--r--bsps/riscv/griscv/include/bsp.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/bsps/riscv/griscv/include/bsp.h b/bsps/riscv/griscv/include/bsp.h
index 95cccd3d0a..9d6fb2a16f 100644
--- a/bsps/riscv/griscv/include/bsp.h
+++ b/bsps/riscv/griscv/include/bsp.h
@@ -75,6 +75,20 @@ extern void BSP_shared_interrupt_mask(int irq);
extern void BSP_shared_interrupt_clear(int irq);
extern void BSP_shared_interrupt_unmask(int irq);
+/*
+ * Network driver configuration for greth
+ */
+struct rtems_bsdnet_ifconfig;
+extern int rtems_griscv_greth_driver_attach(
+ struct rtems_bsdnet_ifconfig *config,
+ int attach
+);
+
+#define RTEMS_BSP_NETWORK_DRIVER_NAME "gr_eth1"
+#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_griscv_greth_driver_attach
+#define GRETH_SUPPORTED
+#define CPU_U32_FIX
+
#ifdef __cplusplus
}
#endif