41 #ifndef __ALT_ADDRESS_SPACE_H__ 42 #define __ALT_ADDRESS_SPACE_H__ 67 #define L2_CACHE_ADDR_FILTERING_START_OFST 0xC00 68 #define L2_CACHE_ADDR_FILTERING_START_ADDR (ALT_MPUL2_OFST + L2_CACHE_ADDR_FILTERING_START_OFST) 70 #define L2_CACHE_ADDR_FILTERING_START_ADDR_MASK 0xFFF00000 72 #define L2_CACHE_ADDR_FILTERING_START_RESET 0x100000 74 #define L2_CACHE_ADDR_FILTERING_ENABLE_MASK 0x00000001 76 #define L2_CACHE_ADDR_FILTERING_ENABLE_RESET 0x1 87 #define L2_CACHE_ADDR_FILTERING_END_OFST 0xC04 88 #define L2_CACHE_ADDR_FILTERING_END_ADDR (ALT_MPUL2_OFST + L2_CACHE_ADDR_FILTERING_END_OFST) 90 #define L2_CACHE_ADDR_FILTERING_END_ADDR_MASK 0xFFF00000 92 #define L2_CACHE_ADDR_FILTERING_END_RESET 0xC0000000 275 ALT_ADDR_SPACE_NONMPU_ATTR_t nonmpu_attr,
276 ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_t h2f_attr,
277 ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_t lwh2f_attr);
356 uint32_t* addr_filt_end);
385 uint32_t addr_filt_end);
489 #define ALT_ACP_ID_MAP_MASTER_ID_MASK 0xfff 492 #define ALT_ACP_ID_MAP_MASTER_ID_L2M0(var) (0x00000002 | (0x000007f8 & (var))) 494 #define ALT_ACP_ID_MAP_MASTER_ID_DMA(var) (0x00000001 | (0x00000078 & (var))) 496 #define ALT_ACP_ID_MAP_MASTER_ID_EMAC0(var) (0x00000801 | (0x00000878 & (var))) 498 #define ALT_ACP_ID_MAP_MASTER_ID_EMAC1(var) (0x00000802 | (0x00000878 & (var))) 500 #define ALT_ACP_ID_MAP_MASTER_ID_USB0 0x00000803 502 #define ALT_ACP_ID_MAP_MASTER_ID_USB1 0x00000806 504 #define ALT_ACP_ID_MAP_MASTER_ID_NAND(var) (0x00000804 | (0x00000ff8 & (var))) 506 #define ALT_ACP_ID_MAP_MASTER_ID_TMC 0x00000800 508 #define ALT_ACP_ID_MAP_MASTER_ID_DAP 0x00000004 510 #define ALT_ACP_ID_MAP_MASTER_ID_SDMMC 0x00000805 512 #define ALT_ACP_ID_MAP_MASTER_ID_F2H(var) (0x00000000 | (0x000007f8 & (var))) 580 const uint32_t output_id,
582 const uint32_t aruser);
620 const uint32_t output_id,
622 const uint32_t awuser);
694 const uint32_t aruser);
720 const uint32_t awuser);
ALT_STATUS_CODE alt_l2_addr_filter_cfg_get(uint32_t *addr_filt_start, uint32_t *addr_filt_end)
Definition: alt_address_space.c:145
enum ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_e ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_t
Definition: alt_address_space.h:539
ALT_ACP_ID_OUTPUT_ID_e
Definition: alt_address_space.h:519
Definition: alt_address_space.h:541
ALT_ADDR_SPACE_H2F_BRIDGE_ATTR_e
Definition: alt_address_space.h:219
enum ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_e ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_t
Definition: alt_address_space.h:521
Definition: alt_address_space.h:526
ALT_ADDR_SPACE_LWH2F_BRIDGE_ATTR_e
Definition: alt_address_space.h:237
enum ALT_ACP_ID_OUTPUT_ID_e ALT_ACP_ID_OUTPUT_ID_t
Definition: alt_address_space.h:181
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)
Definition: alt_address_space.c:409
Definition: alt_address_space.h:525
Definition: alt_address_space.h:221
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)
Definition: alt_address_space.c:463
ALT_ACP_ID_MAP_PAGE_e
Definition: alt_address_space.h:536
ALT_ADDR_SPACE_MPU_ATTR_e
Definition: alt_address_space.h:170
Definition: alt_address_space.h:227
ALT_STATUS_CODE alt_l2_addr_filter_cfg_set(uint32_t addr_filt_start, uint32_t addr_filt_end)
Definition: alt_address_space.c:162
Definition: alt_address_space.h:540
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)
Definition: alt_address_space.c:194
ALT_STATUS_CODE alt_acp_id_map_dynamic_write_options_set(const ALT_ACP_ID_MAP_PAGE_t page, const uint32_t awuser)
Definition: alt_address_space.c:399
Definition: alt_address_space.h:204
ALT_ADDR_SPACE_NONMPU_ATTR_e
Definition: alt_address_space.h:199
Definition: alt_address_space.h:172
Definition: alt_address_space.h:527
Definition: alt_address_space.h:528
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)
Definition: alt_address_space.c:55
Definition: alt_address_space.h:245
ALT_STATUS_CODE alt_acp_id_map_dynamic_read_set(const uint32_t output_id)
Definition: alt_address_space.c:305
int32_t ALT_STATUS_CODE
Definition: hwlib.h:60
Definition: alt_address_space.h:239
Definition: alt_address_space.h:538
ALT_STATUS_CODE alt_mpu_addr_space_remap_0_to_sdram(void)
Definition: alt_address_space.c:135
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)
Definition: alt_address_space.c:249
Definition: alt_address_space.h:201
enum ALT_ACP_ID_MAP_PAGE_e ALT_ACP_ID_MAP_PAGE_t
enum ALT_ADDR_SPACE_MPU_ATTR_e ALT_ADDR_SPACE_MPU_ATTR_t
ALT_STATUS_CODE alt_acp_id_map_dynamic_read_options_set(const ALT_ACP_ID_MAP_PAGE_t page, const uint32_t aruser)
Definition: alt_address_space.c:389
Definition: alt_address_space.h:529
ALT_STATUS_CODE alt_acp_id_map_dynamic_write_set(const uint32_t output_id)
Definition: alt_address_space.c:347
enum ALT_ADDR_SPACE_NONMPU_ATTR_e ALT_ADDR_SPACE_NONMPU_ATTR_t