nb/intel/i945: Get rid of device_t

Use of `device_t`has been abandoned in ramstage.

Change-Id: I2cc938958097e416b85f6592cb8a4e645a3746ed
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/23654
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
This commit is contained in:
Elyes HAOUAS
2018-02-08 14:46:22 +01:00
committed by Patrick Georgi
parent 6dcdaaf205
commit 658a9348f0
3 changed files with 11 additions and 11 deletions

View File

@@ -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;

View File

@@ -746,7 +746,7 @@ static void gma_func1_init(struct device *dev)
pci_write_config8(dev, 0xf4, 0xff); pci_write_config8(dev, 0xf4, 0xff);
} }
static void gma_set_subsystem(device_t dev, unsigned int vendor, static void gma_set_subsystem(struct device *dev, unsigned int vendor,
unsigned int device) unsigned int device)
{ {
if (!vendor || !device) { if (!vendor || !device) {
@@ -761,7 +761,7 @@ static void gma_set_subsystem(device_t dev, unsigned int vendor,
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;
struct northbridge_intel_i945_config *chip = dev->chip_info; struct northbridge_intel_i945_config *chip = dev->chip_info;
@@ -770,7 +770,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)
@@ -779,7 +779,7 @@ static void gma_ssdt(device_t device)
drivers_intel_gma_displays_ssdt_generate(gfx); drivers_intel_gma_displays_ssdt_generate(gfx);
} }
static void gma_func0_read_resources(device_t dev) static void gma_func0_read_resources(struct device *dev)
{ {
u8 reg8; u8 reg8;

View File

@@ -28,7 +28,7 @@
static int get_pcie_bar(u32 *base) static int get_pcie_bar(u32 *base)
{ {
device_t dev; struct device *dev;
u32 pciexbar_reg; u32 pciexbar_reg;
*base = 0; *base = 0;
@@ -57,7 +57,7 @@ static int get_pcie_bar(u32 *base)
return 0; return 0;
} }
static void pci_domain_set_resources(device_t dev) static void pci_domain_set_resources(struct device *dev)
{ {
uint32_t pci_tolm; uint32_t pci_tolm;
uint8_t tolud, reg8; uint8_t tolud, reg8;
@@ -149,7 +149,7 @@ static struct device_operations pci_domain_ops = {
.ops_pci_bus = pci_bus_default_ops, .ops_pci_bus = pci_bus_default_ops,
}; };
static void mc_read_resources(device_t dev) static void mc_read_resources(struct device *dev)
{ {
u32 pcie_config_base; u32 pcie_config_base;
int buses; int buses;
@@ -163,7 +163,7 @@ static void mc_read_resources(device_t dev)
} }
} }
static void intel_set_subsystem(device_t dev, unsigned int vendor, static void intel_set_subsystem(struct device *dev, unsigned int vendor,
unsigned int device) unsigned int device)
{ {
if (!vendor || !device) { if (!vendor || !device) {
@@ -199,7 +199,7 @@ static const struct pci_driver mc_driver __pci_driver = {
.devices = pci_device_ids, .devices = pci_device_ids,
}; };
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);
} }
@@ -212,7 +212,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)