lib/smbios: add segment_group parameter to smbios_write_type9
Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: I48b393913913db8436f5cbca04d7411e68a53cf7 Reviewed-on: https://review.coreboot.org/c/coreboot/+/79925 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Johnny Lin <Johnny_Lin@wiwynn.com> Reviewed-by: Patrick Rudolph <patrick.rudolph@9elements.com>
This commit is contained in:
parent
55380631f4
commit
d459403e65
|
@ -32,7 +32,8 @@ int smbios_write_type9(unsigned long *current, int *handle,
|
||||||
const enum slot_data_bus_bandwidth bandwidth,
|
const enum slot_data_bus_bandwidth bandwidth,
|
||||||
const enum misc_slot_usage usage,
|
const enum misc_slot_usage usage,
|
||||||
const enum misc_slot_length length,
|
const enum misc_slot_length length,
|
||||||
const u16 id, u8 slot_char1, u8 slot_char2, u8 bus, u8 dev_func);
|
const u16 id, u8 slot_char1, u8 slot_char2,
|
||||||
|
u8 segment_group, u8 bus, u8 dev_func);
|
||||||
enum smbios_bmc_interface_type;
|
enum smbios_bmc_interface_type;
|
||||||
int smbios_write_type38(unsigned long *current, int *handle,
|
int smbios_write_type38(unsigned long *current, int *handle,
|
||||||
const enum smbios_bmc_interface_type interface_type,
|
const enum smbios_bmc_interface_type interface_type,
|
||||||
|
|
|
@ -639,7 +639,8 @@ int smbios_write_type9(unsigned long *current, int *handle,
|
||||||
const enum slot_data_bus_bandwidth bandwidth,
|
const enum slot_data_bus_bandwidth bandwidth,
|
||||||
const enum misc_slot_usage usage,
|
const enum misc_slot_usage usage,
|
||||||
const enum misc_slot_length length,
|
const enum misc_slot_length length,
|
||||||
const u16 id, u8 slot_char1, u8 slot_char2, u8 bus, u8 dev_func)
|
const u16 id, u8 slot_char1, u8 slot_char2,
|
||||||
|
u8 segment_group, u8 bus, u8 dev_func)
|
||||||
{
|
{
|
||||||
struct smbios_type9 *t = smbios_carve_table(*current, SMBIOS_SYSTEM_SLOTS,
|
struct smbios_type9 *t = smbios_carve_table(*current, SMBIOS_SYSTEM_SLOTS,
|
||||||
sizeof(*t), *handle);
|
sizeof(*t), *handle);
|
||||||
|
@ -653,7 +654,7 @@ int smbios_write_type9(unsigned long *current, int *handle,
|
||||||
t->slot_length = length;
|
t->slot_length = length;
|
||||||
t->slot_characteristics_1 = slot_char1;
|
t->slot_characteristics_1 = slot_char1;
|
||||||
t->slot_characteristics_2 = slot_char2;
|
t->slot_characteristics_2 = slot_char2;
|
||||||
t->segment_group_number = 0;
|
t->segment_group_number = segment_group;
|
||||||
t->bus_number = bus;
|
t->bus_number = bus;
|
||||||
t->device_function_number = dev_func;
|
t->device_function_number = dev_func;
|
||||||
t->data_bus_width = SlotDataBusWidthOther;
|
t->data_bus_width = SlotDataBusWidthOther;
|
||||||
|
@ -1166,6 +1167,7 @@ static int smbios_generate_type9_from_devtree(struct device *dev, int *handle,
|
||||||
0,
|
0,
|
||||||
1,
|
1,
|
||||||
0,
|
0,
|
||||||
|
0,
|
||||||
dev->bus->secondary,
|
dev->bus->secondary,
|
||||||
dev->path.pci.devfn);
|
dev->path.pci.devfn);
|
||||||
}
|
}
|
||||||
|
|
|
@ -278,6 +278,7 @@ static int create_smbios_type9(int *handle, unsigned long *current)
|
||||||
slot_id,
|
slot_id,
|
||||||
characteristics_1,
|
characteristics_1,
|
||||||
characteristics_2,
|
characteristics_2,
|
||||||
|
0, /* segment group */
|
||||||
stack_busnos[slotinfo[index].stack],
|
stack_busnos[slotinfo[index].stack],
|
||||||
slotinfo[index].dev_func);
|
slotinfo[index].dev_func);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue