diff options
author | Ralf Kirchner <ralf.kirchner@embedded-brains.de> | 2013-07-31 09:45:59 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2014-03-13 16:22:00 +0100 |
commit | f73cfe99d099e600be3205efae7980e426ad9ea0 (patch) | |
tree | c000783a4c6eec14f9ecd7b5fbaf9c34fe9bfbed /c/src/lib/libbsp/arm/altera-cyclone-v/include/bsp.h | |
parent | libchip: Add dwmac 10/100/1000 network driver (diff) | |
download | rtems-f73cfe99d099e600be3205efae7980e426ad9ea0.tar.bz2 |
bsp/altera-cyclone-v: New BSP
Implemented so far:
- nocache heap for uncached RAM
- basic timer
- level 1 cache handling for arm cache controller
in arm-cache-l1.h
- level 2 L2C-310 cache controller
- MMU
- DWMAC 1000 ethernet controller
- basic errata handling
- smp startup for second core
Diffstat (limited to 'c/src/lib/libbsp/arm/altera-cyclone-v/include/bsp.h')
-rw-r--r-- | c/src/lib/libbsp/arm/altera-cyclone-v/include/bsp.h | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/c/src/lib/libbsp/arm/altera-cyclone-v/include/bsp.h b/c/src/lib/libbsp/arm/altera-cyclone-v/include/bsp.h new file mode 100644 index 0000000000..694fd14e43 --- /dev/null +++ b/c/src/lib/libbsp/arm/altera-cyclone-v/include/bsp.h @@ -0,0 +1,65 @@ +/* + * Copyright (c) 2013 embedded brains GmbH. All rights reserved. + * + * embedded brains GmbH + * Dornierstr. 4 + * 82178 Puchheim + * Germany + * <info@embedded-brains.de> + * + * The license and distribution terms for this file may be + * found in the file LICENSE in this distribution or at + * http://www.rtems.com/license/LICENSE. + */ + +#ifndef LIBBSP_ARM_ALTERY_CYCLONE_V_BSP_H +#define LIBBSP_ARM_ALTERY_CYCLONE_V_BSP_H + +#include <bspopts.h> + +#define BSP_FEATURE_IRQ_EXTENSION + +#ifndef ASM + +#include <rtems.h> +#include <rtems/console.h> +#include <rtems/clockdrv.h> + +#include <bsp/default-initial-extension.h> + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +#define BSP_ARM_A9MPCORE_SCU_BASE 0xFFFEC000 + +#define BSP_ARM_GIC_CPUIF_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00000100 ) + +#define BSP_ARM_A9MPCORE_GT_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00000200 ) + +#define BSP_ARM_GIC_DIST_BASE ( BSP_ARM_A9MPCORE_SCU_BASE + 0x00001000 ) + +#define BSP_ARM_L2CC_BASE 0xFFFEF000U + +/* Forward declaration */ +struct rtems_bsdnet_ifconfig; + +/** @brief Network interface attach detach + * + * Attaches a network interface tp the network stack. + * NOTE: Detaching is not supported! + */ +int altera_cyclone_v_network_if_attach_detach( + struct rtems_bsdnet_ifconfig *config, + int attaching ); + +#define RTEMS_BSP_NETWORK_DRIVER_ATTACH altera_cyclone_v_network_if_attach_detach +#define RTEMS_BSP_NETWORK_DRIVER_NAME "eth0" + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* ASM */ + +#endif /* LIBBSP_ARM_ALTERY_CYCLONE_V_BSP_H */ |