nb/intel/gm45: Get rid of device_t
Use of `device_t` has been abandoned in ramstage. Change-Id: If064a4027265e8fc2ea919d9742a554abf29b8db Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/23667 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
parent
a8bb6c10c5
commit
6dcdaaf205
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
unsigned long acpi_fill_mcfg(unsigned long current)
|
unsigned long acpi_fill_mcfg(unsigned long current)
|
||||||
{
|
{
|
||||||
device_t dev;
|
struct device *dev;
|
||||||
u32 pciexbar = 0;
|
u32 pciexbar = 0;
|
||||||
u32 pciexbar_reg;
|
u32 pciexbar_reg;
|
||||||
int max_buses;
|
int max_buses;
|
||||||
|
@ -105,7 +105,7 @@ static unsigned long acpi_fill_dmar(unsigned long current)
|
||||||
return current;
|
return current;
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned long northbridge_write_acpi_tables(device_t device,
|
unsigned long northbridge_write_acpi_tables(struct device *device,
|
||||||
unsigned long start,
|
unsigned long start,
|
||||||
struct acpi_rsdp *rsdp)
|
struct acpi_rsdp *rsdp)
|
||||||
{
|
{
|
||||||
|
|
|
@ -448,7 +448,7 @@ int get_blc_values(const struct blc_pwm_t **entries);
|
||||||
#include <device/device.h>
|
#include <device/device.h>
|
||||||
|
|
||||||
struct acpi_rsdp;
|
struct acpi_rsdp;
|
||||||
unsigned long northbridge_write_acpi_tables(device_t device, unsigned long start, struct acpi_rsdp *rsdp);
|
unsigned long northbridge_write_acpi_tables(struct device *device, unsigned long start, struct acpi_rsdp *rsdp);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* !__ACPI__ */
|
#endif /* !__ACPI__ */
|
||||||
|
|
|
@ -778,7 +778,7 @@ static void gma_func0_init(struct device *dev)
|
||||||
intel_gma_restore_opregion();
|
intel_gma_restore_opregion();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gma_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
static void gma_set_subsystem(struct device *dev, unsigned vendor, unsigned device)
|
||||||
{
|
{
|
||||||
if (!vendor || !device) {
|
if (!vendor || !device) {
|
||||||
pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
|
pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID,
|
||||||
|
@ -793,7 +793,7 @@ static void gma_set_subsystem(device_t dev, unsigned vendor, unsigned device)
|
||||||
const struct i915_gpu_controller_info *
|
const struct i915_gpu_controller_info *
|
||||||
intel_gma_get_controller_info(void)
|
intel_gma_get_controller_info(void)
|
||||||
{
|
{
|
||||||
device_t dev = dev_find_slot(0, PCI_DEVFN(0x2,0));
|
struct device *dev = dev_find_slot(0, PCI_DEVFN(0x2,0));
|
||||||
if (!dev) {
|
if (!dev) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -801,7 +801,7 @@ intel_gma_get_controller_info(void)
|
||||||
return &chip->gfx;
|
return &chip->gfx;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void gma_ssdt(device_t device)
|
static void gma_ssdt(struct device *device)
|
||||||
{
|
{
|
||||||
const struct i915_gpu_controller_info *gfx = intel_gma_get_controller_info();
|
const struct i915_gpu_controller_info *gfx = intel_gma_get_controller_info();
|
||||||
if (!gfx) {
|
if (!gfx) {
|
||||||
|
|
|
@ -41,7 +41,7 @@ static int decode_pcie_bar(u32 *const base, u32 *const len)
|
||||||
*base = 0;
|
*base = 0;
|
||||||
*len = 0;
|
*len = 0;
|
||||||
|
|
||||||
const device_t dev = dev_find_slot(0, PCI_DEVFN(0, 0));
|
struct device *dev = dev_find_slot(0, PCI_DEVFN(0, 0));
|
||||||
if (!dev)
|
if (!dev)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
@ -68,7 +68,7 @@ static int decode_pcie_bar(u32 *const base, u32 *const len)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mch_domain_read_resources(device_t dev)
|
static void mch_domain_read_resources(struct device *dev)
|
||||||
{
|
{
|
||||||
u64 tom, touud;
|
u64 tom, touud;
|
||||||
u32 tomk, tolud, uma_sizek = 0;
|
u32 tomk, tolud, uma_sizek = 0;
|
||||||
|
@ -166,7 +166,7 @@ static void mch_domain_read_resources(device_t dev)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mch_domain_set_resources(device_t dev)
|
static void mch_domain_set_resources(struct device *dev)
|
||||||
{
|
{
|
||||||
struct resource *resource;
|
struct resource *resource;
|
||||||
int i;
|
int i;
|
||||||
|
@ -181,7 +181,7 @@ static void mch_domain_set_resources(device_t dev)
|
||||||
assign_resources(dev->link_list);
|
assign_resources(dev->link_list);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mch_domain_init(device_t dev)
|
static void mch_domain_init(struct device *dev)
|
||||||
{
|
{
|
||||||
u32 reg32;
|
u32 reg32;
|
||||||
|
|
||||||
|
@ -203,7 +203,7 @@ static struct device_operations pci_domain_ops = {
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
static void cpu_bus_init(device_t dev)
|
static void cpu_bus_init(struct device *dev)
|
||||||
{
|
{
|
||||||
initialize_cpus(dev->link_list);
|
initialize_cpus(dev->link_list);
|
||||||
}
|
}
|
||||||
|
@ -216,7 +216,7 @@ static struct device_operations cpu_bus_ops = {
|
||||||
.scan_bus = 0,
|
.scan_bus = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void enable_dev(device_t dev)
|
static void enable_dev(struct device *dev)
|
||||||
{
|
{
|
||||||
/* Set the operations if it is a special bus type */
|
/* Set the operations if it is a special bus type */
|
||||||
if (dev->path.type == DEVICE_PATH_DOMAIN) {
|
if (dev->path.type == DEVICE_PATH_DOMAIN) {
|
||||||
|
|
Loading…
Reference in New Issue