Skip to content

Commit 50df822

Browse files
Sahil-Malpekarchetan-rathore
authored andcommitted
fix(baremetal): fix spelling mistake in PCIe struct
- Rename hb_enteries to hb_entries in PAL bare‑metal PCIe overrides and uses. Signed-off-by: Sahil Shakil Malpekar <Sahil.ShakilMalpekar@arm.com> Change-Id: I930d97b8f37239971cf871a0f2a5920f9c82831f
1 parent bfebd30 commit 50df822

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

pal/baremetal/base/src/pal_pcie_enumeration.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @file
2-
* Copyright (c) 2023-2025, Arm Limited or its affiliates. All rights reserved.
2+
* Copyright (c) 2023-2026, Arm Limited or its affiliates. All rights reserved.
33
* SPDX-License-Identifier : Apache-2.0
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -584,7 +584,7 @@ void pal_pcie_enumerate(void)
584584
print(ACS_PRINT_INFO, "\nStarting Enumeration\n", 0);
585585
while (pcie_index < g_pcie_info_table->num_entries)
586586
{
587-
hb_count = platform_root_pcie_cfg.block[pcie_index].hb_enteries;
587+
hb_count = platform_root_pcie_cfg.block[pcie_index].hb_entries;
588588
count = 0;
589589
while (count < hb_count)
590590
{

pal/baremetal/target/RDN2/include/platform_override_struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ typedef struct {
148148
} PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE;
149149

150150
typedef struct {
151-
uint32_t hb_enteries; ///< No. of HB's in the ECAM
151+
uint32_t hb_entries; ///< No. of HB's in the ECAM
152152
uint32_t segment_num[PLATFORM_MAX_HB_COUNT]; ///< Segment number of the ECAM
153153
uint32_t start_bus_num[PLATFORM_MAX_HB_COUNT]; ///< Start Bus number for this ecam space
154154
uint32_t end_bus_num[PLATFORM_MAX_HB_COUNT]; ///< Last Bus number

pal/baremetal/target/RDN2/src/platform_cfg_fvp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ PCIE_INFO_TABLE platform_pcie_cfg = {
307307
};
308308

309309
PCIE_ROOT_INFO_TABLE platform_root_pcie_cfg = {
310-
.block[0].hb_enteries = PLATFORM_OVERRIDE_PCIE_ECAM0_HB_COUNT,
310+
.block[0].hb_entries = PLATFORM_OVERRIDE_PCIE_ECAM0_HB_COUNT,
311311
.block[0].segment_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_SEG_NUM,
312312
.block[0].start_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_START_BUS_NUM,
313313
.block[0].end_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_END_BUS_NUM,

pal/baremetal/target/RDV3/include/platform_override_struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ typedef struct {
148148
} PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE;
149149

150150
typedef struct {
151-
uint32_t hb_enteries; ///< No. of HB's in the ECAM
151+
uint32_t hb_entries; ///< No. of HB's in the ECAM
152152
uint32_t segment_num[PLATFORM_MAX_HB_COUNT]; ///< Segment number of the ECAM
153153
uint32_t start_bus_num[PLATFORM_MAX_HB_COUNT]; ///< Start Bus number for this ecam space
154154
uint32_t end_bus_num[PLATFORM_MAX_HB_COUNT]; ///< Last Bus number

pal/baremetal/target/RDV3/src/platform_cfg_fvp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ PCIE_INFO_TABLE platform_pcie_cfg = {
304304
};
305305

306306
PCIE_ROOT_INFO_TABLE platform_root_pcie_cfg = {
307-
.block[0].hb_enteries = PLATFORM_OVERRIDE_PCIE_ECAM0_HB_COUNT,
307+
.block[0].hb_entries = PLATFORM_OVERRIDE_PCIE_ECAM0_HB_COUNT,
308308
.block[0].segment_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_SEG_NUM,
309309
.block[0].start_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_START_BUS_NUM,
310310
.block[0].end_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_END_BUS_NUM,
@@ -315,7 +315,7 @@ PCIE_ROOT_INFO_TABLE platform_root_pcie_cfg = {
315315
.block[0].rp_bar32_value[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_RP_BAR32,
316316

317317
/* Example: Populate multi RC info
318-
.block[1].hb_enteries = PLATFORM_OVERRIDE_PCIE_ECAM1_HB_COUNT,
318+
.block[1].hb_entries = PLATFORM_OVERRIDE_PCIE_ECAM1_HB_COUNT,
319319
.block[1].segment_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM1_SEG_NUM,
320320
.block[1].start_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM1_START_BUS_NUM,
321321
.block[1].end_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM1_END_BUS_NUM,

pal/baremetal/target/RDV3CFG1/include/platform_override_struct.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ typedef struct {
148148
} PLATFORM_OVERRIDE_IOVIRT_INFO_TABLE;
149149

150150
typedef struct {
151-
uint32_t hb_enteries; ///< No. of HB's in the ECAM
151+
uint32_t hb_entries; ///< No. of HB's in the ECAM
152152
uint32_t segment_num[PLATFORM_MAX_HB_COUNT]; ///< Segment number of the ECAM
153153
uint32_t start_bus_num[PLATFORM_MAX_HB_COUNT]; ///< Start Bus number for this ecam space
154154
uint32_t end_bus_num[PLATFORM_MAX_HB_COUNT]; ///< Last Bus number

pal/baremetal/target/RDV3CFG1/src/platform_cfg_fvp.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ PCIE_INFO_TABLE platform_pcie_cfg = {
241241
};
242242

243243
PCIE_ROOT_INFO_TABLE platform_root_pcie_cfg = {
244-
.block[0].hb_enteries = PLATFORM_OVERRIDE_PCIE_ECAM0_HB_COUNT,
244+
.block[0].hb_entries = PLATFORM_OVERRIDE_PCIE_ECAM0_HB_COUNT,
245245
.block[0].segment_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_SEG_NUM,
246246
.block[0].start_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_START_BUS_NUM,
247247
.block[0].end_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_END_BUS_NUM,
@@ -252,7 +252,7 @@ PCIE_ROOT_INFO_TABLE platform_root_pcie_cfg = {
252252
.block[0].rp_bar32_value[0] = PLATFORM_OVERRIDE_PCIE_ECAM0_RP_BAR32,
253253

254254
/* Placeholder: Multiple ECAM entries
255-
.block[1].hb_enteries = PLATFORM_OVERRIDE_PCIE_ECAM1_HB_COUNT,
255+
.block[1].hb_entries = PLATFORM_OVERRIDE_PCIE_ECAM1_HB_COUNT,
256256
.block[1].segment_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM1_SEG_NUM,
257257
.block[1].start_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM1_START_BUS_NUM,
258258
.block[1].end_bus_num[0] = PLATFORM_OVERRIDE_PCIE_ECAM1_END_BUS_NUM,

0 commit comments

Comments
 (0)