diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-05-19 10:48:00 +0200 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2018-05-21 20:27:20 +0000 |
commit | 1c56f2fe77ea9fb30f277e08a40245b0751471bd (patch) | |
tree | 35086b509f8d34132ea02d4bae252427263d0b17 /src/southbridge/sis/sis966/lpc.c | |
parent | 1df39c3aca25bd6822bbd1c3146a4880f9fe2620 (diff) |
sb/sis/sis966: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: I6002949fa90a46a2dd0e3519acbf2606bb679322
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/26398
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/sis/sis966/lpc.c')
-rw-r--r-- | src/southbridge/sis/sis966/lpc.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/southbridge/sis/sis966/lpc.c b/src/southbridge/sis/sis966/lpc.c index 82b850b361..51ee233a7f 100644 --- a/src/southbridge/sis/sis966/lpc.c +++ b/src/southbridge/sis/sis966/lpc.c @@ -52,7 +52,7 @@ #undef SLAVE_INIT -static void lpc_common_init(device_t dev) +static void lpc_common_init(struct device *dev) { uint8_t byte; void *ioapic_base; @@ -67,13 +67,13 @@ static void lpc_common_init(device_t dev) } #ifdef SLAVE_INIT -static void lpc_slave_init(device_t dev) +static void lpc_slave_init(struct device *dev) { lpc_common_init(dev); } #endif -static void lpc_usb_legacy_init(device_t dev) +static void lpc_usb_legacy_init(struct device *dev) { uint16_t acpi_base; @@ -83,7 +83,7 @@ static void lpc_usb_legacy_init(device_t dev) outb(inb(acpi_base + 0xba) |0x80, acpi_base + 0xba); } -static void lpc_init(device_t dev) +static void lpc_init(struct device *dev) { uint8_t byte; uint8_t byte_old; @@ -152,7 +152,7 @@ static void lpc_init(device_t dev) printk(BIOS_DEBUG, "LPC_INIT <--------\n"); } -static void sis966_lpc_read_resources(device_t dev) +static void sis966_lpc_read_resources(struct device *dev) { struct resource *res; @@ -183,7 +183,7 @@ static void sis966_lpc_read_resources(device_t dev) * * @param dev The device whose children's resources are to be enabled. */ -static void sis966_lpc_enable_childrens_resources(device_t dev) +static void sis966_lpc_enable_childrens_resources(struct device *dev) { struct bus *link; uint32_t reg, reg_var[4]; @@ -193,7 +193,7 @@ static void sis966_lpc_enable_childrens_resources(device_t dev) reg = pci_read_config32(dev, 0xa0); for (link = dev->link_list; link; link = link->next) { - device_t child; + struct device *child; for (child = link->children; child; child = child->sibling) { if (child->enabled && (child->path.type == DEVICE_PATH_PNP)) { struct resource *res; @@ -234,13 +234,14 @@ static void sis966_lpc_enable_childrens_resources(device_t dev) } -static void sis966_lpc_enable_resources(device_t dev) +static void sis966_lpc_enable_resources(struct device *dev) { pci_dev_enable_resources(dev); sis966_lpc_enable_childrens_resources(dev); } -static void lpci_set_subsystem(device_t dev, unsigned vendor, unsigned device) +static void lpci_set_subsystem(struct device *dev, unsigned vendor, + unsigned device) { pci_write_config32(dev, 0x40, ((device & 0xffff) << 16) | (vendor & 0xffff)); |