summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/bsp/nexus-devices.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-18 12:46:27 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-02-13 10:34:18 +0100
commit8fe59fe28747ba709c59a05f911a60399b307105 (patch)
treea7856c2a3a4ec6335e60abff2526b493eb4121dc /rtemsbsd/include/bsp/nexus-devices.h
parentAdd and use rtems_bsd_get_allocator_domain_size() (diff)
downloadrtems-libbsd-8fe59fe28747ba709c59a05f911a60399b307105.tar.bz2
if_tsec: Add Nexus support
Diffstat (limited to 'rtemsbsd/include/bsp/nexus-devices.h')
-rw-r--r--rtemsbsd/include/bsp/nexus-devices.h29
1 files changed, 28 insertions, 1 deletions
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index d12d9bd9..9cd1da7e 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2013-2014 embedded brains GmbH. All rights reserved.
+ * Copyright (c) 2013-2015 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Dornierstr. 4
@@ -88,4 +88,31 @@ RTEMS_BSD_DEFINE_NEXUS_DEVICE(cgem, 0, RTEMS_ARRAY_SIZE(cgem0_res),
SYSINIT_DRIVER_REFERENCE(e1000phy, miibus);
+#elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
+
+#include <bsp/irq.h>
+
+static const rtems_bsd_device_resource tsec0_res[] = {
+ {
+ .type = RTEMS_BSD_RES_MEMORY,
+ .start_request = 0,
+ .start_actual = 0xffeb0000
+ }, {
+ .type = RTEMS_BSD_RES_IRQ,
+ .start_request = 0,
+ .start_actual = QORIQ_IRQ_ETSEC_TX_1
+ }, {
+ .type = RTEMS_BSD_RES_IRQ,
+ .start_request = 1,
+ .start_actual = QORIQ_IRQ_ETSEC_RX_1
+ }, {
+ .type = RTEMS_BSD_RES_IRQ,
+ .start_request = 2,
+ .start_actual = QORIQ_IRQ_ETSEC_ER_1
+ }
+};
+
+RTEMS_BSD_DEFINE_NEXUS_DEVICE(tsec, 0, RTEMS_ARRAY_SIZE(tsec0_res),
+ &tsec0_res[0]);
+
#endif