Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pal/baremetal/base/src/pal_dma.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @file
* Copyright (c) 2023-2025, Arm Limited or its affiliates. All rights reserved.
* Copyright (c) 2023-2026, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -21,7 +21,7 @@
#include "pal_pcie_enum.h"


extern DMA_INFO_TABLE platform_dma_cfg;
extern const DMA_INFO_TABLE platform_dma_cfg;


/**
Expand Down
4 changes: 2 additions & 2 deletions pal/baremetal/base/src/pal_gic.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @file
* Copyright (c) 2023-2025, Arm Limited or its affiliates. All rights reserved.
* Copyright (c) 2023-2026, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,7 +18,7 @@
#include "pal_common_support.h"
#include "platform_override_struct.h"

extern PLATFORM_OVERRIDE_GIC_INFO_TABLE platform_gic_cfg;
extern const PLATFORM_OVERRIDE_GIC_INFO_TABLE platform_gic_cfg;

/**
@brief Populate information about the GIC sub-system at the input address.
Expand Down
4 changes: 2 additions & 2 deletions pal/baremetal/base/src/pal_hmat.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#include "pal_pcie_enum.h"
#include "platform_override_struct.h"

extern PLATFORM_OVERRIDE_HMAT_INFO_TABLE platform_hmat_cfg;
extern PLATFORM_OVERRIDE_HMAT_MEM_TABLE platform_hmat_mem_cfg;
extern const PLATFORM_OVERRIDE_HMAT_INFO_TABLE platform_hmat_cfg;
extern const PLATFORM_OVERRIDE_HMAT_MEM_TABLE platform_hmat_mem_cfg;

/**
@brief This API prints hmat info table entries.
Expand Down
12 changes: 6 additions & 6 deletions pal/baremetal/base/src/pal_iovirt.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
#include "platform_override_fvp.h"
#include "platform_override_struct.h"

extern PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE platform_iovirt_cfg;
extern PLATFORM_OVERRIDE_NODE_DATA platform_node_type;
extern PLATFORM_OVERRIDE_PMCG_NODE_DATA platform_pmcg_node_data;
extern PLATFORM_OVERRIDE_NAMED_NODE_DATA platform_named_node_data;
extern PLATFORM_OVERRIDE_CS_COMP_NODE_DATA platform_cs_comp_node_data;
extern const PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE platform_iovirt_cfg;
extern const PLATFORM_OVERRIDE_NODE_DATA platform_node_type;
extern const PLATFORM_OVERRIDE_PMCG_NODE_DATA platform_pmcg_node_data;
extern const PLATFORM_OVERRIDE_NAMED_NODE_DATA platform_named_node_data;
extern const PLATFORM_OVERRIDE_CS_COMP_NODE_DATA platform_cs_comp_node_data;

uint64_t
pal_iovirt_get_rc_smmu_base (
Expand Down Expand Up @@ -102,7 +102,7 @@ pal_iovirt_get_rc_smmu_base (
@return 1 if the IDs are unique else 0
**/
static uint8_t
smmu_ctx_int_distinct(uint64_t *ctx_int, uint8_t ctx_int_cnt) {
smmu_ctx_int_distinct(const uint64_t *ctx_int, uint8_t ctx_int_cnt) {
uint8_t i, j;
for(i = 0; i < ctx_int_cnt - 1; i++) {
for(j = i + 1; j < ctx_int_cnt; j++) {
Expand Down
6 changes: 3 additions & 3 deletions pal/baremetal/base/src/pal_mpam.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
#include "pal_common_support.h"
#include "pal_pcie_enum.h"

extern SRAT_INFO_TABLE platform_srat_cfg;
extern PLATFORM_OVERRIDE_SRAT_NODE_INFO_TABLE platform_srat_node_type;
extern PLATFORM_OVERRIDE_MPAM_INFO_TABLE platform_mpam_cfg;
extern const SRAT_INFO_TABLE platform_srat_cfg;
extern const PLATFORM_OVERRIDE_SRAT_NODE_INFO_TABLE platform_srat_node_type;
extern const PLATFORM_OVERRIDE_MPAM_INFO_TABLE platform_mpam_cfg;

/**
@brief Display MPAM info table details
Expand Down
2 changes: 1 addition & 1 deletion pal/baremetal/base/src/pal_pcc.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "pal_pcie_enum.h"
#include "platform_override_struct.h"

extern PLATFORM_OVERRIDE_PCC_INFO_TABLE platform_pcc_cfg;
extern const PLATFORM_OVERRIDE_PCC_INFO_TABLE platform_pcc_cfg;

/**
@brief This API prints cache info table and cache entry indices for each pe.
Expand Down
6 changes: 3 additions & 3 deletions pal/baremetal/base/src/pal_pcie.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @file
* Copyright (c) 2023-2025, Arm Limited or its affiliates. All rights reserved.
* Copyright (c) 2023-2026, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0

* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -20,8 +20,8 @@
#include "platform_override_struct.h"

extern pcie_device_bdf_table *g_pcie_bdf_table;
extern PCIE_INFO_TABLE platform_pcie_cfg;
extern PCIE_READ_TABLE platform_pcie_device_hierarchy;
extern const PCIE_INFO_TABLE platform_pcie_cfg;
extern const PCIE_READ_TABLE platform_pcie_device_hierarchy;
extern PERIPHERAL_INFO_TABLE *g_peripheral_info_table;

uint64_t
Expand Down
2 changes: 1 addition & 1 deletion pal/baremetal/base/src/pal_pcie_enumeration.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "platform_override_struct.h"

extern PCIE_INFO_TABLE *g_pcie_info_table;
extern PCIE_ROOT_INFO_TABLE platform_root_pcie_cfg;
extern const PCIE_ROOT_INFO_TABLE platform_root_pcie_cfg;

uint32_t pcie_index = 0, enumerate = 1;
/*64-bit address initialisation*/
Expand Down
4 changes: 2 additions & 2 deletions pal/baremetal/base/src/pal_pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
#include "platform_override_struct.h"


extern PE_INFO_TABLE platform_pe_cfg;
extern PE_SMBIOS_PROCESSOR_INFO_TABLE platform_smbios_cfg;
extern const PE_INFO_TABLE platform_pe_cfg;
extern const PE_SMBIOS_PROCESSOR_INFO_TABLE platform_smbios_cfg;
extern PE_INFO_TABLE *g_pe_info_table;
extern int32_t gPsciConduit;

Expand Down
8 changes: 4 additions & 4 deletions pal/baremetal/base/src/pal_peripherals.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
#include "pal_common_support.h"
#include "platform_override_struct.h"

extern PLATFORM_OVERRIDE_UART_INFO_TABLE platform_uart_cfg;
extern PLATFORM_OVERRIDE_SATA_INFO_TABLE platform_sata_cfg;
extern PLATFORM_OVERRIDE_MEMORY_INFO_TABLE platform_mem_cfg;
extern PCIE_INFO_TABLE platform_pcie_cfg;
extern const PLATFORM_OVERRIDE_UART_INFO_TABLE platform_uart_cfg;
extern const PLATFORM_OVERRIDE_SATA_INFO_TABLE platform_sata_cfg;
extern const PLATFORM_OVERRIDE_MEMORY_INFO_TABLE platform_mem_cfg;
extern const PCIE_INFO_TABLE platform_pcie_cfg;

#define USB_CLASSCODE 0x0C0300
#define SATA_CLASSCODE 0x010600
Expand Down
4 changes: 2 additions & 2 deletions pal/baremetal/base/src/pal_pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include "platform_override_struct.h"
#include "pal_common_support.h"

extern PLATFORM_OVERRIDE_PMU_INFO_TABLE platform_pmu_cfg;
extern PLATFORM_OVERRIDE_EVENT_DETAILS event_list[];
extern const PLATFORM_OVERRIDE_PMU_INFO_TABLE platform_pmu_cfg;
extern const PLATFORM_OVERRIDE_EVENT_DETAILS event_list[];

/**
@brief Display PMU info table details
Expand Down
4 changes: 2 additions & 2 deletions pal/baremetal/base/src/pal_pptt.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include "pal_pcie_enum.h"
#include "platform_override_struct.h"

extern PLATFORM_OVERRIDE_CACHE_INFO_TABLE platform_cache_cfg;
extern PLATFORM_OVERRIDE_PPTT_INFO_TABLE platform_pptt_cfg;
extern const PLATFORM_OVERRIDE_CACHE_INFO_TABLE platform_cache_cfg;
extern const PLATFORM_OVERRIDE_PPTT_INFO_TABLE platform_pptt_cfg;

/**
@brief This API prints cache info table and cache entry indices for each pe.
Expand Down
10 changes: 5 additions & 5 deletions pal/baremetal/base/src/pal_ras.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
#include "pal_common_support.h"
#include "platform_override_struct.h"

extern RAS_INFO_TABLE platform_ras_cfg;
extern PLATFORM_OVERRIDE_RAS_NODE_DATA_INFO platform_ras_node_data;
extern PLATFORM_OVERRIDE_RAS_NODE_INTERFACE_INFO platform_ras_node_interface;
extern PLATFORM_OVERRIDE_RAS_NODE_INTERRUPT_INFO platform_ras_node_interrupt;
extern const RAS_INFO_TABLE platform_ras_cfg;
extern const PLATFORM_OVERRIDE_RAS_NODE_DATA_INFO platform_ras_node_data;
extern const PLATFORM_OVERRIDE_RAS_NODE_INTERFACE_INFO platform_ras_node_interface;
extern const PLATFORM_OVERRIDE_RAS_NODE_INTERRUPT_INFO platform_ras_node_interrupt;

extern PLATFORM_OVERRIDE_RAS2_INFO_TABLE platform_ras2_cfg;
extern const PLATFORM_OVERRIDE_RAS2_INFO_TABLE platform_ras2_cfg;

/**
@brief Platform Defined way of Timeout/Wait loop
Expand Down
6 changes: 3 additions & 3 deletions pal/baremetal/base/src/pal_timer_wd.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @file
* Copyright (c) 2024-2025, Arm Limited or its affiliates. All rights reserved.
* Copyright (c) 2024-2026, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0

* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,8 +18,8 @@
#include "platform_override_struct.h"
#include "pal_common_support.h"

extern PLATFORM_OVERRIDE_TIMER_INFO_TABLE platform_timer_cfg;
extern WD_INFO_TABLE platform_wd_cfg;
extern const PLATFORM_OVERRIDE_TIMER_INFO_TABLE platform_timer_cfg;
extern const WD_INFO_TABLE platform_wd_cfg;


/**
Expand Down
4 changes: 2 additions & 2 deletions pal/baremetal/base/src/pal_tpm2.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/** @file
* Copyright (c) 2025, Arm Limited or its affiliates. All rights reserved.
* Copyright (c) 2025-2026, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
* Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -18,7 +18,7 @@
#include "pal_common_support.h"
#include "platform_override_struct.h"

extern PLATFORM_OVERRIDE_TPM2_INFO_TABLE platform_tpm2_cfg;
extern const PLATFORM_OVERRIDE_TPM2_INFO_TABLE platform_tpm2_cfg;

/**
@brief Populate the TPM2 info table from platform configuration.
Expand Down
18 changes: 9 additions & 9 deletions pal/baremetal/target/RDN2/src/pal_bsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
#define CONDUIT_HVC 1
#define CONDUIT_NONE -2

extern PLATFORM_OVERRIDE_GIC_INFO_TABLE platform_gic_cfg;
extern PLATFORM_OVERRIDE_TIMER_INFO_TABLE platform_timer_cfg;
extern PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE platform_iovirt_cfg;
extern PLATFORM_OVERRIDE_NODE_DATA platform_node_type;
extern PLATFORM_OVERRIDE_UART_INFO_TABLE platform_uart_cfg;
extern PLATFORM_OVERRIDE_MEMORY_INFO_TABLE platform_mem_cfg;
extern PCIE_INFO_TABLE platform_pcie_cfg;
extern WD_INFO_TABLE platform_wd_cfg;
extern DMA_INFO_TABLE platform_dma_cfg;
extern const PLATFORM_OVERRIDE_GIC_INFO_TABLE platform_gic_cfg;
extern const PLATFORM_OVERRIDE_TIMER_INFO_TABLE platform_timer_cfg;
extern const PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE platform_iovirt_cfg;
extern const PLATFORM_OVERRIDE_NODE_DATA platform_node_type;
extern const PLATFORM_OVERRIDE_UART_INFO_TABLE platform_uart_cfg;
extern const PLATFORM_OVERRIDE_MEMORY_INFO_TABLE platform_mem_cfg;
extern const PCIE_INFO_TABLE platform_pcie_cfg;
extern const WD_INFO_TABLE platform_wd_cfg;
extern const DMA_INFO_TABLE platform_dma_cfg;

extern addr_t __TEXT_START__, __TEXT_END__;
#define TEXT_START ((addr_t)&__TEXT_START__)
Expand Down
17 changes: 8 additions & 9 deletions pal/baremetal/target/RDN2/src/pal_sbsa.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
#include "pal_common_support.h"
#include "pal_pcie_enum.h"

extern PLATFORM_OVERRIDE_GIC_INFO_TABLE platform_gic_cfg;
extern PLATFORM_OVERRIDE_TIMER_INFO_TABLE platform_timer_cfg;
extern PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE platform_iovirt_cfg;
extern PLATFORM_OVERRIDE_NODE_DATA platform_node_type;
extern PLATFORM_OVERRIDE_UART_INFO_TABLE platform_uart_cfg;
extern PLATFORM_OVERRIDE_MEMORY_INFO_TABLE platform_mem_cfg;
extern PCIE_INFO_TABLE platform_pcie_cfg;
extern WD_INFO_TABLE platform_wd_cfg;
extern const PLATFORM_OVERRIDE_GIC_INFO_TABLE platform_gic_cfg;
extern const PLATFORM_OVERRIDE_TIMER_INFO_TABLE platform_timer_cfg;
extern const PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE platform_iovirt_cfg;
extern const PLATFORM_OVERRIDE_NODE_DATA platform_node_type;
extern const PLATFORM_OVERRIDE_UART_INFO_TABLE platform_uart_cfg;
extern const PLATFORM_OVERRIDE_MEMORY_INFO_TABLE platform_mem_cfg;
extern const PCIE_INFO_TABLE platform_pcie_cfg;
extern const WD_INFO_TABLE platform_wd_cfg;

/** SMMU API's **/
/**
Expand Down Expand Up @@ -172,4 +172,3 @@ pal_ras_inject_error(RAS_ERR_IN_t in_param, RAS_ERR_OUT_t *out_param)
pal_warn_not_implemented(__func__);
return PAL_STATUS_NOT_IMPLEMENTED;
}

Loading
Loading