This change adds uid parameter to drivers_ipmi_config that can be used by ipmi_ssdt() to store the uid value to be used by ipmi_write_acpi_tables. This allows to remove the requirement in ipmi_ssdt() to update dev->command. This is being done in preparation to make the struct device * parameter to fill_ssdt as const. Change-Id: Ieb41771c75aae902191bba5d220796e6c343f8e0 Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40705 Reviewed-by: Aaron Durbin <adurbin@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
29 lines
700 B
C
29 lines
700 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/* This file is part of the coreboot project. */
|
|
|
|
#ifndef _IMPI_CHIP_H_
|
|
#define _IPMI_CHIP_H_
|
|
|
|
struct drivers_ipmi_config {
|
|
u8 bmc_i2c_address;
|
|
u8 have_nv_storage;
|
|
u8 nv_storage_device_address;
|
|
u8 have_gpe;
|
|
u8 gpe_interrupt;
|
|
u8 have_apic;
|
|
u32 apic_interrupt;
|
|
/*
|
|
* Wait for BMC to boot.
|
|
* This can be used if the BMC takes a long time to boot after PoR:
|
|
* AST2400 on Supermicro X11SSH: 34 s
|
|
*/
|
|
bool wait_for_bmc;
|
|
/*
|
|
* The timeout in seconds to wait for the IPMI service to be loaded.
|
|
* Will be used if wait_for_bmc is true.
|
|
*/
|
|
u16 bmc_boot_timeout;
|
|
unsigned int uid; /* Auto-filled by ipmi_ssdt() */
|
|
};
|
|
|
|
#endif /* _IMPI_CHIP_H_ */
|