lib/smbios: rename segment group parameter of smbios_write_type41

Rename the segment group parameter of smbios_write_type41 from 'segment'
to 'segment_group' to be in line with the PCI specification.

Signed-off-by: Felix Held <felix-coreboot@felixheld.de>
Change-Id: Ie6ca0ce8b6b3b0357df72bafa2b6069132d0937e
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79926
Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
Felix Held 2024-01-11 21:51:19 +01:00
parent d459403e65
commit 363ac8b6ae
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ int smbios_write_type38(unsigned long *current, int *handle,
const u64 base_addr, const u8 base_modifier, const u64 base_addr, const u8 base_modifier,
const u8 irq); const u8 irq);
int smbios_write_type41(unsigned long *current, int *handle, int smbios_write_type41(unsigned long *current, int *handle,
const char *name, u8 instance, u16 segment, const char *name, u8 instance, u16 segment_group,
u8 bus, u8 device, u8 function, u8 device_type); u8 bus, u8 device, u8 function, u8 device_type);
enum smbios_temp_location; enum smbios_temp_location;
enum smbios_temp_status; enum smbios_temp_status;

View File

@ -971,7 +971,7 @@ int smbios_write_type39(unsigned long *current, int *handle,
} }
int smbios_write_type41(unsigned long *current, int *handle, int smbios_write_type41(unsigned long *current, int *handle,
const char *name, u8 instance, u16 segment, const char *name, u8 instance, u16 segment_group,
u8 bus, u8 device, u8 function, u8 device_type) u8 bus, u8 device, u8 function, u8 device_type)
{ {
struct smbios_type41 *t = smbios_carve_table(*current, struct smbios_type41 *t = smbios_carve_table(*current,
@ -982,7 +982,7 @@ int smbios_write_type41(unsigned long *current, int *handle,
t->device_type = device_type; t->device_type = device_type;
t->device_status = 1; t->device_status = 1;
t->device_type_instance = instance; t->device_type_instance = instance;
t->segment_group_number = segment; t->segment_group_number = segment_group;
t->bus_number = bus; t->bus_number = bus;
t->device_number = device; t->device_number = device;
t->function_number = function; t->function_number = function;
@ -1114,7 +1114,7 @@ static int smbios_generate_type41_from_devtree(struct device *dev, int *handle,
return smbios_write_type41(current, handle, return smbios_write_type41(current, handle,
name, // name name, // name
instance_id, // inst instance_id, // inst
0, // segment 0, // segment group
dev->bus->secondary, //bus dev->bus->secondary, //bus
PCI_SLOT(dev->path.pci.devfn), // device PCI_SLOT(dev->path.pci.devfn), // device
PCI_FUNC(dev->path.pci.devfn), // func PCI_FUNC(dev->path.pci.devfn), // func