device: Constify struct device * parameter to write_acpi_tables
.write_acpi_tables() should not be updating the device structure. This change makes the struct device * argument to it as const. Change-Id: I50d013e83a404e0a0e3837ca16fa75c7eaa0e14a Signed-off-by: Furquan Shaikh <furquan@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/40701 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
@ -758,9 +758,9 @@ void acpi_create_hpet(acpi_hpet_t *hpet)
|
||||
header->checksum = acpi_checksum((void *)hpet, sizeof(acpi_hpet_t));
|
||||
}
|
||||
|
||||
void acpi_create_vfct(struct device *device,
|
||||
void acpi_create_vfct(const struct device *device,
|
||||
acpi_vfct_t *vfct,
|
||||
unsigned long (*acpi_fill_vfct)(struct device *device,
|
||||
unsigned long (*acpi_fill_vfct)(const struct device *device,
|
||||
acpi_vfct_t *vfct_struct, unsigned long current))
|
||||
{
|
||||
acpi_header_t *header = &(vfct->header);
|
||||
@ -791,7 +791,7 @@ void acpi_create_vfct(struct device *device,
|
||||
header->checksum = acpi_checksum((void *)vfct, header->length);
|
||||
}
|
||||
|
||||
void acpi_create_ipmi(struct device *device,
|
||||
void acpi_create_ipmi(const struct device *device,
|
||||
struct acpi_spmi *spmi,
|
||||
const u16 ipmi_revision,
|
||||
const acpi_addr_t *addr,
|
||||
@ -871,7 +871,7 @@ void acpi_create_ivrs(acpi_ivrs_t *ivrs,
|
||||
header->checksum = acpi_checksum((void *)ivrs, header->length);
|
||||
}
|
||||
|
||||
unsigned long acpi_write_hpet(struct device *device, unsigned long current,
|
||||
unsigned long acpi_write_hpet(const struct device *device, unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
acpi_hpet_t *hpet;
|
||||
|
@ -906,13 +906,13 @@ void acpi_create_srat(acpi_srat_t *srat,
|
||||
void acpi_create_slit(acpi_slit_t *slit,
|
||||
unsigned long (*acpi_fill_slit)(unsigned long current));
|
||||
|
||||
void acpi_create_vfct(struct device *device,
|
||||
void acpi_create_vfct(const struct device *device,
|
||||
acpi_vfct_t *vfct,
|
||||
unsigned long (*acpi_fill_vfct)(struct device *device,
|
||||
unsigned long (*acpi_fill_vfct)(const struct device *device,
|
||||
acpi_vfct_t *vfct_struct,
|
||||
unsigned long current));
|
||||
|
||||
void acpi_create_ipmi(struct device *device,
|
||||
void acpi_create_ipmi(const struct device *device,
|
||||
struct acpi_spmi *spmi,
|
||||
const u16 ipmi_revision,
|
||||
const acpi_addr_t *addr,
|
||||
@ -926,7 +926,7 @@ void acpi_create_ivrs(acpi_ivrs_t *ivrs,
|
||||
unsigned long current));
|
||||
|
||||
void acpi_create_hpet(acpi_hpet_t *hpet);
|
||||
unsigned long acpi_write_hpet(struct device *device, unsigned long start,
|
||||
unsigned long acpi_write_hpet(const struct device *device, unsigned long start,
|
||||
acpi_rsdp_t *rsdp);
|
||||
|
||||
/* cpu/intel/speedstep/acpi.c */
|
||||
|
@ -16,7 +16,7 @@
|
||||
void __weak map_oprom_vendev_rev(u32 *vendev, u8 *rev) { return; }
|
||||
u32 __weak map_oprom_vendev(u32 vendev) { return vendev; }
|
||||
|
||||
struct rom_header *pci_rom_probe(struct device *dev)
|
||||
struct rom_header *pci_rom_probe(const struct device *dev)
|
||||
{
|
||||
struct rom_header *rom_header = NULL;
|
||||
struct pci_data *rom_data;
|
||||
@ -174,7 +174,7 @@ struct rom_header *pci_rom_load(struct device *dev,
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
|
||||
/* VBIOS may be modified after oprom init so use the copy if present. */
|
||||
static struct rom_header *check_initialized(struct device *dev)
|
||||
static struct rom_header *check_initialized(const struct device *dev)
|
||||
{
|
||||
struct rom_header *run_rom;
|
||||
struct pci_data *rom_data;
|
||||
@ -198,7 +198,7 @@ static struct rom_header *check_initialized(struct device *dev)
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
pci_rom_acpi_fill_vfct(struct device *device, acpi_vfct_t *vfct_struct,
|
||||
pci_rom_acpi_fill_vfct(const struct device *device, acpi_vfct_t *vfct_struct,
|
||||
unsigned long current)
|
||||
{
|
||||
acpi_vfct_image_hdr_t *header = &vfct_struct->image_hdr;
|
||||
@ -233,7 +233,7 @@ pci_rom_acpi_fill_vfct(struct device *device, acpi_vfct_t *vfct_struct,
|
||||
}
|
||||
|
||||
unsigned long
|
||||
pci_rom_write_acpi_tables(struct device *device, unsigned long current,
|
||||
pci_rom_write_acpi_tables(const struct device *device, unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
/* Only handle VGA devices */
|
||||
|
@ -165,7 +165,7 @@ static void ipmi_kcs_init(struct device *dev)
|
||||
static uint32_t uid_cnt = 0;
|
||||
|
||||
static unsigned long
|
||||
ipmi_write_acpi_tables(struct device *dev, unsigned long current,
|
||||
ipmi_write_acpi_tables(const struct device *dev, unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
struct drivers_ipmi_config *conf = NULL;
|
||||
|
@ -48,7 +48,7 @@ struct device_operations {
|
||||
void (*get_smbios_strings)(struct device *dev, struct smbios_type11 *t);
|
||||
#endif
|
||||
#if CONFIG(HAVE_ACPI_TABLES)
|
||||
unsigned long (*write_acpi_tables)(struct device *dev,
|
||||
unsigned long (*write_acpi_tables)(const struct device *dev,
|
||||
unsigned long start, struct acpi_rsdp *rsdp);
|
||||
void (*acpi_fill_ssdt)(struct device *dev);
|
||||
void (*acpi_inject_dsdt)(struct device *dev);
|
||||
|
@ -34,12 +34,12 @@ struct pci_data {
|
||||
uint16_t reserved_2;
|
||||
};
|
||||
|
||||
struct rom_header *pci_rom_probe(struct device *dev);
|
||||
struct rom_header *pci_rom_probe(const struct device *dev);
|
||||
struct rom_header *pci_rom_load(struct device *dev,
|
||||
struct rom_header *rom_header);
|
||||
|
||||
unsigned long
|
||||
pci_rom_write_acpi_tables(struct device *device,
|
||||
pci_rom_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp);
|
||||
|
||||
|
@ -63,7 +63,7 @@ static long acpi_create_ecdt(acpi_ecdt_t * ecdt)
|
||||
return header->length;
|
||||
}
|
||||
|
||||
unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||
unsigned long mainboard_write_acpi_tables(const struct device *device,
|
||||
unsigned long start,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -3,6 +3,6 @@
|
||||
|
||||
struct acpi_rsdp;
|
||||
|
||||
unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||
unsigned long mainboard_write_acpi_tables(const struct device *device,
|
||||
unsigned long start,
|
||||
struct acpi_rsdp *rsdp);
|
||||
|
@ -26,7 +26,7 @@ static void mainboard_dev_init(struct device *dev)
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
return current;
|
||||
}
|
||||
|
@ -21,7 +21,7 @@ static void mainboard_init(struct device *dev)
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
uintptr_t end_addr;
|
||||
|
@ -187,7 +187,7 @@ static void mainboard_init(struct device *dev)
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
const char *oem_id = NULL;
|
||||
const char *oem_table_id = NULL;
|
||||
|
@ -38,7 +38,7 @@ static uint8_t max_codec_enable(void)
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
uintptr_t end_addr;
|
||||
|
@ -71,7 +71,7 @@ static void mainboard_init(void *chip_info)
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
uintptr_t end_addr;
|
||||
|
@ -16,7 +16,7 @@ static void mainboard_init(struct device *dev)
|
||||
mainboard_ec_init();
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||
static unsigned long mainboard_write_acpi_tables(const struct device *device,
|
||||
unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
|
@ -95,7 +95,7 @@ void __weak variant_nhlt_oem_overrides(const char **oem_id,
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
uintptr_t end_addr;
|
||||
|
@ -19,7 +19,7 @@ static void mainboard_init(void *chip_info)
|
||||
gpio_configure_pads(pads, num);
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||
static unsigned long mainboard_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ static void mainboard_init(void *chip_info)
|
||||
gpio_configure_pads(pads, num);
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(struct device *device,
|
||||
static unsigned long mainboard_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -30,7 +30,7 @@ static void mainboard_init(void *chip_info)
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
uintptr_t end_addr;
|
||||
|
@ -26,7 +26,7 @@ static uint8_t select_audio_codec(void)
|
||||
}
|
||||
|
||||
static unsigned long mainboard_write_acpi_tables(
|
||||
struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
const struct device *device, unsigned long current, acpi_rsdp_t *rsdp)
|
||||
{
|
||||
uintptr_t start_addr;
|
||||
uintptr_t end_addr;
|
||||
|
@ -714,7 +714,7 @@ static void patch_ssdt_processor_scope(acpi_header_t *ssdt)
|
||||
ssdt->checksum = acpi_checksum((void *)ssdt, ssdt->length);
|
||||
}
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -453,7 +453,7 @@ static void patch_ssdt_processor_scope(acpi_header_t *ssdt)
|
||||
ssdt->checksum = acpi_checksum((void *)ssdt, ssdt->length);
|
||||
}
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -453,7 +453,7 @@ static void patch_ssdt_processor_scope(acpi_header_t *ssdt)
|
||||
ssdt->checksum = acpi_checksum((void *)ssdt, ssdt->length);
|
||||
}
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -451,7 +451,7 @@ static void patch_ssdt_processor_scope(acpi_header_t *ssdt)
|
||||
ssdt->checksum = acpi_checksum((void *)ssdt, ssdt->length);
|
||||
}
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -439,7 +439,7 @@ static void patch_ssdt_processor_scope(acpi_header_t *ssdt)
|
||||
ssdt->checksum = acpi_checksum((void *)ssdt, ssdt->length);
|
||||
}
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -763,7 +763,7 @@ static void patch_ssdt_processor_scope(acpi_header_t *ssdt)
|
||||
ssdt->checksum = acpi_checksum((void *)ssdt, ssdt->length);
|
||||
}
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -96,7 +96,7 @@ static unsigned long acpi_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long start,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -438,7 +438,8 @@ u16 get_blc_pwm_freq_value(const char *edid_ascii_string);
|
||||
#include <device/device.h>
|
||||
|
||||
struct acpi_rsdp;
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device, unsigned long start, struct acpi_rsdp *rsdp);
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device, unsigned long start,
|
||||
struct acpi_rsdp *rsdp);
|
||||
|
||||
#endif /* !__ACPI__ */
|
||||
#endif /* __NORTHBRIDGE_INTEL_GM45_GM45_H__ */
|
||||
|
@ -216,7 +216,7 @@ static void gma_generate_ssdt(struct device *device)
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
gma_write_acpi_tables(struct device *const dev,
|
||||
gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
|
@ -93,7 +93,8 @@ static unsigned long acpi_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long northbridge_write_acpi_tables(struct device *const dev, unsigned long current,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
/* Create DMAR table only if we have VT-d capability. */
|
||||
|
@ -520,7 +520,8 @@ static void gma_generate_ssdt(struct device *dev)
|
||||
drivers_intel_gma_displays_ssdt_generate(&chip->gfx);
|
||||
}
|
||||
|
||||
static unsigned long gma_write_acpi_tables(struct device *const dev, unsigned long current,
|
||||
static unsigned long gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion = (igd_opregion_t *)current;
|
||||
|
@ -200,7 +200,7 @@ void report_platform_info(void);
|
||||
#include <device/device.h>
|
||||
|
||||
struct acpi_rsdp;
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device, unsigned long start,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device, unsigned long start,
|
||||
struct acpi_rsdp *rsdp);
|
||||
|
||||
#endif /* __ASSEMBLER__ */
|
||||
|
@ -765,7 +765,7 @@ static void gma_func0_read_resources(struct device *dev)
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
gma_write_acpi_tables(struct device *const dev,
|
||||
gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
|
@ -211,7 +211,7 @@ static void gma_generate_ssdt(struct device *device)
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
gma_write_acpi_tables(struct device *const dev,
|
||||
gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
|
@ -278,7 +278,8 @@ static void gma_func0_init(struct device *dev)
|
||||
intel_gma_restore_opregion();
|
||||
}
|
||||
|
||||
static unsigned long gma_write_acpi_tables(struct device *const dev, unsigned long current,
|
||||
static unsigned long gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion = (igd_opregion_t *)current;
|
||||
|
@ -108,7 +108,8 @@ static unsigned long acpi_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long northbridge_write_acpi_tables(struct device *const dev, unsigned long current,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
const u32 capid0_a = pci_read_config32(dev, CAPID0_A);
|
||||
|
@ -647,7 +647,8 @@ static void gma_generate_ssdt(struct device *device)
|
||||
drivers_intel_gma_displays_ssdt_generate(&chip->gfx);
|
||||
}
|
||||
|
||||
static unsigned long gma_write_acpi_tables(struct device *const dev, unsigned long current,
|
||||
static unsigned long gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion = (igd_opregion_t *)current;
|
||||
|
@ -231,7 +231,7 @@ enum platform_type get_platform_type(void);
|
||||
#include <device/device.h>
|
||||
|
||||
struct acpi_rsdp;
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device, unsigned long start,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device, unsigned long start,
|
||||
struct acpi_rsdp *rsdp);
|
||||
|
||||
#endif
|
||||
|
@ -22,7 +22,7 @@ unsigned long acpi_fill_mcfg(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long start,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -88,7 +88,7 @@ static void gma_generate_ssdt(struct device *device)
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
gma_write_acpi_tables(struct device *const dev,
|
||||
gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
|
@ -403,7 +403,7 @@ extern const u16 ddr3_c2_x23c[3][6];
|
||||
|
||||
#include <device/device.h>
|
||||
struct acpi_rsdp;
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long start, struct acpi_rsdp *rsdp);
|
||||
|
||||
#endif /* __NORTHBRIDGE_INTEL_X4X_H__ */
|
||||
|
@ -238,7 +238,7 @@ void generate_cpu_entries(struct device *device)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@
|
||||
#define FADT_PM_PROFILE PM_UNSPECIFIED
|
||||
#endif
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current, struct acpi_rsdp *rsdp);
|
||||
|
||||
void southbridge_inject_dsdt(struct device *device);
|
||||
|
@ -180,7 +180,7 @@ static void northbridge_fill_ssdt_generator(struct device *device)
|
||||
acpigen_pop_len();
|
||||
}
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -243,7 +243,7 @@ void generate_cpu_entries(struct device *device)
|
||||
}
|
||||
}
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -16,7 +16,7 @@
|
||||
#define FADT_PM_PROFILE PM_UNSPECIFIED
|
||||
#endif
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current, struct acpi_rsdp *rsdp);
|
||||
|
||||
void southbridge_inject_dsdt(struct device *device);
|
||||
|
@ -232,7 +232,7 @@ static void patch_ssdt_processor_scope(acpi_header_t *ssdt)
|
||||
}
|
||||
|
||||
|
||||
static unsigned long agesa_write_acpi_tables(struct device *device,
|
||||
static unsigned long agesa_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
acpi_rsdp_t *rsdp)
|
||||
{
|
||||
|
@ -225,7 +225,7 @@ static unsigned long soc_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long sa_write_acpi_tables(struct device *const dev,
|
||||
unsigned long sa_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ void graphics_soc_init(struct device *const dev)
|
||||
}
|
||||
}
|
||||
|
||||
uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
|
||||
uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||
uintptr_t current, struct acpi_rsdp *rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion;
|
||||
|
@ -394,7 +394,7 @@ static void gma_generate_ssdt(struct device *dev)
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
gma_write_acpi_tables(struct device *const dev,
|
||||
gma_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
|
@ -469,7 +469,7 @@ static int update_igd_opregion(igd_opregion_t *opregion)
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned long southcluster_write_acpi_tables(struct device *device, unsigned long current,
|
||||
unsigned long southcluster_write_acpi_tables(const struct device *device, unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
acpi_header_t *ssdt2;
|
||||
|
@ -12,7 +12,7 @@ void acpi_fill_in_fadt(acpi_fadt_t *fadt);
|
||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||
void acpi_init_gnvs(global_nvs_t *gnvs);
|
||||
void southcluster_inject_dsdt(struct device *device);
|
||||
unsigned long southcluster_write_acpi_tables(struct device *device,
|
||||
unsigned long southcluster_write_acpi_tables(const struct device *device,
|
||||
unsigned long current, struct acpi_rsdp *rsdp);
|
||||
|
||||
#endif /* _SOC_ACPI_H_ */
|
||||
|
@ -586,7 +586,7 @@ static unsigned long acpi_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long northbridge_write_acpi_tables(struct device *const dev,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
|
@ -592,7 +592,7 @@ static void igd_init(struct device *dev)
|
||||
}
|
||||
|
||||
static unsigned long
|
||||
gma_write_acpi_tables(struct device *const dev, unsigned long current,
|
||||
gma_write_acpi_tables(const struct device *const dev, unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion = (igd_opregion_t *)current;
|
||||
|
@ -16,6 +16,6 @@
|
||||
void acpi_fill_in_fadt(acpi_fadt_t *fadt);
|
||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||
void acpi_init_gnvs(global_nvs_t *gnvs);
|
||||
unsigned long northbridge_write_acpi_tables(struct device *dev,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *dev,
|
||||
unsigned long current, struct acpi_rsdp *rsdp);
|
||||
#endif
|
||||
|
@ -596,7 +596,7 @@ static void southcluster_inject_dsdt(struct device *device)
|
||||
}
|
||||
}
|
||||
|
||||
static unsigned long broadwell_write_acpi_tables(struct device *device,
|
||||
static unsigned long broadwell_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -335,7 +335,7 @@ static unsigned long soc_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long sa_write_acpi_tables(struct device *dev, unsigned long current,
|
||||
unsigned long sa_write_acpi_tables(const struct device *dev, unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
acpi_dmar_t *const dmar = (acpi_dmar_t *)current;
|
||||
|
@ -74,7 +74,7 @@ void graphics_soc_init(struct device *dev)
|
||||
}
|
||||
}
|
||||
|
||||
uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
|
||||
uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||
uintptr_t current, struct acpi_rsdp *rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion;
|
||||
|
@ -181,7 +181,7 @@ void acpi_fill_fadt(acpi_fadt_t *fadt)
|
||||
soc_fill_fadt(fadt);
|
||||
}
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -40,7 +40,7 @@ void soc_write_sci_irq_select(uint32_t scis);
|
||||
* Calls acpi_write_hpet which creates and fills HPET table and
|
||||
* adds it to the RSDT (and XSDT) structure.
|
||||
*/
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp);
|
||||
|
||||
@ -80,7 +80,7 @@ uint32_t acpi_fill_soc_wake(uint32_t generic_pm1_en,
|
||||
void soc_fill_fadt(acpi_fadt_t *fadt);
|
||||
|
||||
/* Chipset specific settings for filling up dmar table */
|
||||
unsigned long sa_write_acpi_tables(struct device *dev,
|
||||
unsigned long sa_write_acpi_tables(const struct device *dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp);
|
||||
|
||||
|
@ -30,7 +30,7 @@ void graphics_soc_init(struct device *dev);
|
||||
* End address of graphics opregion so that the called
|
||||
* can use the same for future calls to write_acpi_tables
|
||||
*/
|
||||
uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
|
||||
uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||
uintptr_t current, struct acpi_rsdp *rsdp);
|
||||
|
||||
/* i915 controller info for ACPI backlight controls */
|
||||
|
@ -34,7 +34,7 @@ __weak int soc_get_uncore_prmmr_base_and_mask(uint64_t *base,
|
||||
return -1;
|
||||
}
|
||||
|
||||
__weak unsigned long sa_write_acpi_tables(struct device *dev,
|
||||
__weak unsigned long sa_write_acpi_tables(const struct device *dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -264,7 +264,7 @@ int soc_madt_sci_irq_polarity(int sci)
|
||||
return MP_IRQ_POLARITY_HIGH;
|
||||
}
|
||||
|
||||
unsigned long southcluster_write_acpi_tables(struct device *device,
|
||||
unsigned long southcluster_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -10,7 +10,7 @@
|
||||
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
|
||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||
void acpi_init_gnvs(global_nvs_t *gnvs);
|
||||
unsigned long southcluster_write_acpi_tables(struct device *device,
|
||||
unsigned long southcluster_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp);
|
||||
void southcluster_inject_dsdt(struct device *device);
|
||||
|
@ -51,7 +51,7 @@ void graphics_soc_init(struct device *dev)
|
||||
pci_dev_init(dev);
|
||||
}
|
||||
|
||||
uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
|
||||
uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||
uintptr_t current, struct acpi_rsdp *rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion;
|
||||
|
@ -251,7 +251,7 @@ static unsigned long soc_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long sa_write_acpi_tables(struct device *dev, unsigned long current,
|
||||
unsigned long sa_write_acpi_tables(const struct device *dev, unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
acpi_dmar_t *const dmar = (acpi_dmar_t *)current;
|
||||
|
@ -51,7 +51,7 @@ void graphics_soc_init(struct device *dev)
|
||||
pci_dev_init(dev);
|
||||
}
|
||||
|
||||
uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
|
||||
uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||
uintptr_t current, struct acpi_rsdp *rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion;
|
||||
|
@ -588,7 +588,7 @@ static unsigned long acpi_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long northbridge_write_acpi_tables(struct device *const dev,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *const dev,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *const rsdp)
|
||||
{
|
||||
@ -630,7 +630,7 @@ unsigned long acpi_madt_irq_overrides(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -147,7 +147,7 @@ static void update_igd_opregion(igd_opregion_t *opregion)
|
||||
/* FIXME: Add platform specific mailbox initialization */
|
||||
}
|
||||
|
||||
uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
|
||||
uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||
uintptr_t current, struct acpi_rsdp *rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion;
|
||||
|
@ -17,9 +17,9 @@ void acpi_fill_in_fadt(acpi_fadt_t *fadt);
|
||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||
void acpi_mainboard_gnvs(global_nvs_t *gnvs);
|
||||
void southbridge_inject_dsdt(struct device *device);
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current, struct acpi_rsdp *rsdp);
|
||||
unsigned long northbridge_write_acpi_tables(struct device *,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *,
|
||||
unsigned long current, struct acpi_rsdp *);
|
||||
|
||||
#endif /* _SOC_ACPI_H_ */
|
||||
|
@ -251,7 +251,7 @@ static unsigned long soc_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long sa_write_acpi_tables(struct device *dev, unsigned long current,
|
||||
unsigned long sa_write_acpi_tables(const struct device *dev, unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
acpi_dmar_t *const dmar = (acpi_dmar_t *)current;
|
||||
|
@ -57,7 +57,7 @@ void graphics_soc_init(struct device *dev)
|
||||
pci_dev_init(dev);
|
||||
}
|
||||
|
||||
uintptr_t graphics_soc_write_acpi_opregion(struct device *device,
|
||||
uintptr_t graphics_soc_write_acpi_opregion(const struct device *device,
|
||||
uintptr_t current, struct acpi_rsdp *rsdp)
|
||||
{
|
||||
igd_opregion_t *opregion;
|
||||
|
@ -18,7 +18,7 @@
|
||||
|
||||
#define SCI_INT_NUM 9
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device, unsigned long current,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device, unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
current = acpi_write_hpet(device, current, rsdp);
|
||||
|
@ -498,7 +498,7 @@ int soc_madt_sci_irq_polarity(int sci)
|
||||
return MP_IRQ_POLARITY_HIGH;
|
||||
}
|
||||
|
||||
unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
@ -871,7 +871,7 @@ static unsigned long acpi_fill_dmar(unsigned long current)
|
||||
return current;
|
||||
}
|
||||
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
@ -28,7 +28,7 @@ typedef struct {
|
||||
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
|
||||
unsigned long acpi_madt_irq_overrides(unsigned long current);
|
||||
void acpi_init_gnvs(global_nvs_t *gnvs);
|
||||
unsigned long northbridge_write_acpi_tables(struct device *device,
|
||||
unsigned long northbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long current, struct acpi_rsdp *rsdp);
|
||||
void uncore_inject_dsdt(void);
|
||||
void motherboard_fill_fadt(acpi_fadt_t *fadt);
|
||||
|
@ -882,7 +882,7 @@ static void southbridge_fill_ssdt(struct device *dev)
|
||||
intel_acpi_gen_def_acpi_pirq(dev);
|
||||
}
|
||||
|
||||
static unsigned long southbridge_write_acpi_tables(struct device *device,
|
||||
static unsigned long southbridge_write_acpi_tables(const struct device *device,
|
||||
unsigned long start,
|
||||
struct acpi_rsdp *rsdp)
|
||||
{
|
||||
|
Reference in New Issue
Block a user