soc/amd/*/root_complex: use unsigned long for resource index
Use an unsigned long as resource index type instead of an int to match the data type used for the index in the resource struct. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I0f58e32a535326116460545287cc59aaf94166a0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/80267 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-by: Varshit Pandya <pandyavarshit@gmail.com>
This commit is contained in:
@@ -104,7 +104,7 @@ struct dptc_input {
|
||||
static void read_resources(struct device *dev)
|
||||
{
|
||||
uint32_t mem_usable = (uintptr_t)cbmem_top();
|
||||
unsigned int idx = 0;
|
||||
unsigned long idx = 0;
|
||||
|
||||
uintptr_t early_reserved_dram_start, early_reserved_dram_end;
|
||||
const struct memmap_early_dram *e = memmap_get_early_dram_usage();
|
||||
|
@@ -27,6 +27,6 @@ const struct non_pci_mmio_reg *get_iohc_non_pci_mmio_regs(size_t *count);
|
||||
|
||||
signed int get_iohc_fabric_id(struct device *domain);
|
||||
|
||||
void read_fsp_resources(struct device *dev, unsigned int *idx);
|
||||
void read_fsp_resources(struct device *dev, unsigned long *idx);
|
||||
|
||||
#endif /* AMD_BLOCK_ROOT_COMPLEX_H */
|
||||
|
@@ -7,7 +7,7 @@
|
||||
#include <fsp/util.h>
|
||||
#include <types.h>
|
||||
|
||||
void read_fsp_resources(struct device *dev, unsigned int *idx)
|
||||
void read_fsp_resources(struct device *dev, unsigned long *idx)
|
||||
{
|
||||
const uint32_t mem_usable = (uintptr_t)cbmem_top();
|
||||
const struct hob_header *hob_iterator;
|
||||
|
@@ -119,7 +119,7 @@ struct dptc_input {
|
||||
static void read_resources(struct device *dev)
|
||||
{
|
||||
uint32_t mem_usable = (uintptr_t)cbmem_top();
|
||||
unsigned int idx = 0;
|
||||
unsigned long idx = 0;
|
||||
|
||||
uintptr_t early_reserved_dram_start, early_reserved_dram_end;
|
||||
const struct memmap_early_dram *e = memmap_get_early_dram_usage();
|
||||
|
@@ -147,7 +147,7 @@ struct dptc_input {
|
||||
static void read_resources(struct device *dev)
|
||||
{
|
||||
uint32_t mem_usable = (uintptr_t)cbmem_top();
|
||||
unsigned int idx = 0;
|
||||
unsigned long idx = 0;
|
||||
|
||||
uintptr_t early_reserved_dram_start, early_reserved_dram_end;
|
||||
const struct memmap_early_dram *e = memmap_get_early_dram_usage();
|
||||
|
@@ -119,7 +119,7 @@ struct dptc_input {
|
||||
static void read_resources(struct device *dev)
|
||||
{
|
||||
uint32_t mem_usable = (uintptr_t)cbmem_top();
|
||||
unsigned int idx = 0;
|
||||
unsigned long idx = 0;
|
||||
|
||||
uintptr_t early_reserved_dram_start, early_reserved_dram_end;
|
||||
const struct memmap_early_dram *e = memmap_get_early_dram_usage();
|
||||
|
@@ -104,7 +104,7 @@ struct dptc_input {
|
||||
static void read_resources(struct device *dev)
|
||||
{
|
||||
uint32_t mem_usable = (uintptr_t)cbmem_top();
|
||||
unsigned int idx = 0;
|
||||
unsigned long idx = 0;
|
||||
|
||||
uintptr_t early_reserved_dram_start, early_reserved_dram_end;
|
||||
const struct memmap_early_dram *e = memmap_get_early_dram_usage();
|
||||
|
Reference in New Issue
Block a user