device_ops: add device_t argument to acpi_inject_dsdt_generator

`device_t device` is missing as argument. Every device_op function
should have a `device_t device` argument.

Change-Id: I3fc8e0339fa46fe92cc39f7afa896ffd38c26c8d
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
Reviewed-on: http://review.coreboot.org/9597
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
Alexander Couzens 2015-04-12 21:49:46 +02:00 committed by Stefan Reinauer
parent 113ef81bf4
commit a90dad1bf0
16 changed files with 17 additions and 16 deletions

View File

@ -824,7 +824,7 @@ unsigned long write_acpi_tables(unsigned long start)
acpigen_set_current((char *) current);
for (dev = all_devices; dev; dev = dev->next)
if (dev->ops && dev->ops->acpi_inject_dsdt_generator) {
dev->ops->acpi_inject_dsdt_generator();
dev->ops->acpi_inject_dsdt_generator(dev);
}
current = (unsigned long) acpigen_get_current();
memcpy((char *)current,

View File

@ -58,7 +58,7 @@ struct device_operations {
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
unsigned long (*write_acpi_tables)(unsigned long start, struct acpi_rsdp *rsdp);
void (*acpi_fill_ssdt_generator)(void);
void (*acpi_inject_dsdt_generator)(void);
void (*acpi_inject_dsdt_generator)(device_t dev);
#endif
const struct pci_operations *ops_pci;
const struct smbus_bus_operations *ops_smbus_bus;

View File

@ -91,7 +91,7 @@ unsigned long acpi_fill_madt(unsigned long current)
return current;
}
void mainboard_inject_dsdt(void)
void mainboard_inject_dsdt(device_t device)
{
global_vars_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, GLOBAL_VARS_SIZE);

View File

@ -1 +1 @@
void mainboard_inject_dsdt(void);
void mainboard_inject_dsdt(device_t device);

View File

@ -513,7 +513,7 @@ void southcluster_enable_dev(device_t dev)
}
}
static void southcluster_inject_dsdt(void)
static void southcluster_inject_dsdt(device_t device)
{
global_nvs_t *gnvs;

View File

@ -611,7 +611,7 @@ static void pch_lpc_read_resources(device_t dev)
memset(gnvs, 0, sizeof(global_nvs_t));
}
static void southcluster_inject_dsdt(void)
static void southcluster_inject_dsdt(device_t device)
{
global_nvs_t *gnvs;

View File

@ -596,7 +596,7 @@ unsigned long southcluster_write_acpi_tables(unsigned long current,
return current;
}
void southcluster_inject_dsdt(void)
void southcluster_inject_dsdt(device_t device)
{
global_nvs_t *gnvs;

View File

@ -23,6 +23,7 @@
#include <arch/acpi.h>
#include <baytrail/nvs.h>
#include <device/device.h>
void acpi_create_intel_hpet(acpi_hpet_t * hpet);
void acpi_create_serialio_ssdt(acpi_header_t *ssdt);
@ -31,6 +32,6 @@ unsigned long acpi_madt_irq_overrides(unsigned long current);
void acpi_init_gnvs(global_nvs_t *gnvs);
unsigned long southcluster_write_acpi_tables(unsigned long current,
struct acpi_rsdp *rsdp);
void southcluster_inject_dsdt(void);
void southcluster_inject_dsdt(device_t device);
#endif /* _BAYTRAIL_ACPI_H_ */

View File

@ -628,7 +628,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));
void *opregion;

View File

@ -590,7 +590,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));
void *opregion;

View File

@ -431,7 +431,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));

View File

@ -629,7 +629,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));

View File

@ -540,7 +540,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));

View File

@ -621,7 +621,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));
void *opregion;

View File

@ -744,7 +744,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs;

View File

@ -189,7 +189,7 @@ static void set_subsystem(device_t dev, unsigned vendor, unsigned device)
}
}
static void southbridge_inject_dsdt(void)
static void southbridge_inject_dsdt(device_t dev)
{
global_nvs_t *gnvs = cbmem_add (CBMEM_ID_ACPI_GNVS, sizeof (*gnvs));