1 | /* |
---|
2 | * Copyright (c) 2013 embedded brains GmbH. All rights reserved. |
---|
3 | * |
---|
4 | * embedded brains GmbH |
---|
5 | * Dornierstr. 4 |
---|
6 | * 82178 Puchheim |
---|
7 | * Germany |
---|
8 | * <info@embedded-brains.de> |
---|
9 | * |
---|
10 | * The license and distribution terms for this file may be |
---|
11 | * found in the file LICENSE in this distribution or at |
---|
12 | * http://www.rtems.com/license/LICENSE. |
---|
13 | */ |
---|
14 | |
---|
15 | #ifndef LIBBSP_ARM_ALTERY_CYCLONE_V_BSP_H |
---|
16 | #define LIBBSP_ARM_ALTERY_CYCLONE_V_BSP_H |
---|
17 | |
---|
18 | #include <bspopts.h> |
---|
19 | |
---|
20 | #define BSP_FEATURE_IRQ_EXTENSION |
---|
21 | |
---|
22 | #ifndef ASM |
---|
23 | |
---|
24 | #include <rtems.h> |
---|
25 | #include <rtems/console.h> |
---|
26 | #include <rtems/clockdrv.h> |
---|
27 | |
---|
28 | #include <bsp/default-initial-extension.h> |
---|
29 | |
---|
30 | #ifdef __cplusplus |
---|
31 | extern "C" { |
---|
32 | #endif /* __cplusplus */ |
---|
33 | |
---|
34 | #define BSP_ARM_A9MPCORE_SCU_BASE 0xFFFEC000 |
---|
35 | |
---|
36 | #define BSP_ARM_GIC_CPUIF_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00000100 ) |
---|
37 | |
---|
38 | #define BSP_ARM_A9MPCORE_GT_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00000200 ) |
---|
39 | |
---|
40 | #define BSP_ARM_GIC_DIST_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00001000 ) |
---|
41 | |
---|
42 | #define BSP_ARM_L2CC_BASE 0xFFFEF000U |
---|
43 | |
---|
44 | /* Forward declaration */ |
---|
45 | struct rtems_bsdnet_ifconfig; |
---|
46 | |
---|
47 | /** @brief Network interface attach detach |
---|
48 | * |
---|
49 | * Attaches a network interface tp the network stack. |
---|
50 | * NOTE: Detaching is not supported! |
---|
51 | */ |
---|
52 | int altera_cyclone_v_network_if_attach_detach( |
---|
53 | struct rtems_bsdnet_ifconfig *config, |
---|
54 | int attaching ); |
---|
55 | |
---|
56 | #define RTEMS_BSP_NETWORK_DRIVER_ATTACH altera_cyclone_v_network_if_attach_detach |
---|
57 | #define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0" |
---|
58 | |
---|
59 | #ifdef __cplusplus |
---|
60 | } |
---|
61 | #endif /* __cplusplus */ |
---|
62 | |
---|
63 | #endif /* ASM */ |
---|
64 | |
---|
65 | #endif /* LIBBSP_ARM_ALTERY_CYCLONE_V_BSP_H */ |
---|