RTEMS: bsps/arm/altera-cyclone-v/include/bsp/alt_address_space.h File Reference

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
Macros | Typedefs | Enumerations | Functions
alt_address_space.h File Reference
Board Support Packages » ARM » Intel Cyclone V » Contributed Code
`#include <stdbool.h>`
`#include "hwlib.h"`
`#include "socal/hps.h"`

Go to the source code of this file.

## Macros
#define | L2_CACHE_ADDR_FILTERING_START_OFST 0xC00
#define | L2_CACHE_ADDR_FILTERING_START_ADDR (ALT_MPUL2_OFST + L2_CACHE_ADDR_FILTERING_START_OFST)
#define | L2_CACHE_ADDR_FILTERING_START_ADDR_MASK 0xFFF00000
#define | L2_CACHE_ADDR_FILTERING_START_RESET 0x100000
#define | L2_CACHE_ADDR_FILTERING_ENABLE_MASK 0x00000001
#define | L2_CACHE_ADDR_FILTERING_ENABLE_RESET 0x1
#define | L2_CACHE_ADDR_FILTERING_END_OFST 0xC04
#define | L2_CACHE_ADDR_FILTERING_END_ADDR (ALT_MPUL2_OFST + L2_CACHE_ADDR_FILTERING_END_OFST)
#define | L2_CACHE_ADDR_FILTERING_END_ADDR_MASK 0xFFF00000
#define | L2_CACHE_ADDR_FILTERING_END_RESET 0xC0000000
External Master ID Macros
These macros define the HPS external master identifiers that are 12-bit input IDs to the ACP ID Mapper. Some of the masters have a range of identifier values assigned to them and are distinguished by taking a (var)</em> argument.
#define | ALT_ACP_ID_MAP_MASTER_ID_MASK 0xfff
#define | ALT_ACP_ID_MAP_MASTER_ID_L2M0(var) (0x00000002 | (0x000007f8 & (var)))
#define | ALT_ACP_ID_MAP_MASTER_ID_DMA(var) (0x00000001 | (0x00000078 & (var)))
#define | ALT_ACP_ID_MAP_MASTER_ID_EMAC0(var) (0x00000801 | (0x00000878 & (var)))
#define | ALT_ACP_ID_MAP_MASTER_ID_EMAC1(var) (0x00000802 | (0x00000878 & (var)))
#define | ALT_ACP_ID_MAP_MASTER_ID_USB0 0x00000803
#define | ALT_ACP_ID_MAP_MASTER_ID_USB1 0x00000806
#define | ALT_ACP_ID_MAP_MASTER_ID_NAND(var) (0x00000804 | (0x00000ff8 & (var)))
#define | ALT_ACP_ID_MAP_MASTER_ID_TMC 0x00000800
#define | ALT_ACP_ID_MAP_MASTER_ID_DAP 0x00000004
#define | ALT_ACP_ID_MAP_MASTER_ID_SDMMC 0x00000805
#define | ALT_ACP_ID_MAP_MASTER_ID_F2H(var) (0x00000000 | (0x000007f8 & (var)))

## Typedefs
typedef enum ALT_ADDR_SPACE_MPU_ATTR_e | ALT_ADDR_SPACE_MPU_ATTR_t
typedef enum ALT_ADDR_SPACE_NONMPU_ATTR_e | ALT_ADDR_SPACE_NONMPU_ATTR_t
typedef enum ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_e | ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_t
typedef enum ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_e | ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_t
typedef enum ALT_ACP_ID_OUTPUT_ID_e | ALT_ACP_ID_OUTPUT_ID_t
typedef enum ALT_ACP_ID_MAP_PAGE_e | ALT_ACP_ID_MAP_PAGE_t

## Enumerations
enum | ALT_ADDR_SPACE_MPU_ATTR_e { ALT_ADDR_SPACE_MPU_ZERO_AT_BOOTROM , ALT_ADDR_SPACE_MPU_ZERO_AT_OCRAM }
enum | ALT_ADDR_SPACE_NONMPU_ATTR_e { ALT_ADDR_SPACE_NONMPU_ZERO_AT_SDRAM , ALT_ADDR_SPACE_NONMPU_ZERO_AT_OCRAM }
enum | ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_e { ALT_ADDR_SPACE_H2F_INACCESSIBLE , ALT_ADDR_SPACE_H2F_ACCESSIBLE }
enum | ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_e { ALT_ADDR_SPACE_LWH2F_INACCESSIBLE , ALT_ADDR_SPACE_LWH2F_ACCESSIBLE }
enum | ALT_ACP_ID_OUTPUT_ID_e { ALT_ACP_ID_OUT_FIXED_ID_2 = 2 , ALT_ACP_ID_OUT_DYNAM_ID_3 = 3 , ALT_ACP_ID_OUT_DYNAM_ID_4 = 4 , ALT_ACP_ID_OUT_DYNAM_ID_5 = 5 , ALT_ACP_ID_OUT_DYNAM_ID_6 = 6 , ALT_ACP_ID_OUT_DYNAM_ID_7 = 7 }
enum | ALT_ACP_ID_MAP_PAGE_e { ALT_ACP_ID_MAP_PAGE_0 = 0 , ALT_ACP_ID_MAP_PAGE_1 = 1 , ALT_ACP_ID_MAP_PAGE_2 = 2 , ALT_ACP_ID_MAP_PAGE_3 = 3 }

## Functions
ALT_STATUS_CODE | alt_addr_space_remap (ALT_ADDR_SPACE_MPU_ATTR_t mpu_attr, ALT_ADDR_SPACE_NONMPU_ATTR_t nonmpu_attr, ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_t h2f_attr, ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_t lwh2f_attr)
ALT_STATUS_CODE | alt_mpu_addr_space_remap_0_to_sdram (void)
ALT_STATUS_CODE | alt_l2_addr_filter_cfg_get (uint32_t *addr_filt_start, uint32_t *addr_filt_end)
ALT_STATUS_CODE | alt_l2_addr_filter_cfg_set (uint32_t addr_filt_start, uint32_t addr_filt_end)
ALT_STATUS_CODE | alt_acp_id_map_fixed_read_set (const uint32_t input_id, const uint32_t output_id, const ALT_ACP_ID_MAP_PAGE_t page, const uint32_t aruser)
ALT_STATUS_CODE | alt_acp_id_map_fixed_write_set (const uint32_t input_id, const uint32_t output_id, const ALT_ACP_ID_MAP_PAGE_t page, const uint32_t awuser)
ALT_STATUS_CODE | alt_acp_id_map_dynamic_read_set (const uint32_t output_id)
ALT_STATUS_CODE | alt_acp_id_map_dynamic_write_set (const uint32_t output_id)
ALT_STATUS_CODE | alt_acp_id_map_dynamic_read_options_set (const ALT_ACP_ID_MAP_PAGE_t page, const uint32_t aruser)
ALT_STATUS_CODE | alt_acp_id_map_dynamic_write_options_set (const ALT_ACP_ID_MAP_PAGE_t page, const uint32_t awuser)
ALT_STATUS_CODE | alt_acp_id_map_read_options_get (const uint32_t output_id, bool *fixed, uint32_t *input_id, ALT_ACP_ID_MAP_PAGE_t *page, uint32_t *aruser)
ALT_STATUS_CODE | alt_acp_id_map_write_options_get (const uint32_t output_id, bool *fixed, uint32_t *input_id, ALT_ACP_ID_MAP_PAGE_t *page, uint32_t *awuser)

## Detailed Description

Altera - SoC FPGA Address Space Manager