summaryrefslogtreecommitdiff
path: root/src/southbridge/amd/amd8132
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 14:56:13 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 20:08:53 +0000
commitd0f3e17bfed7f5a28b26fcf06abf3ff4b666e687 (patch)
treec58bbb22be7f67efefb9578cf97fd0b8b87f841d /src/southbridge/amd/amd8132
parentf854822fe0ad25d022648284a7de9aa9f25d7bd1 (diff)
sb/amd/amd8132: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: Ia4be6e9b81fe4627d84c9ed7589a3e6ef2bcede2 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26411 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/amd/amd8132')
-rw-r--r--src/southbridge/amd/amd8132/bridge.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/southbridge/amd/amd8132/bridge.c b/src/southbridge/amd/amd8132/bridge.c
index b546ef3c27..52306ab697 100644
--- a/src/southbridge/amd/amd8132/bridge.c
+++ b/src/southbridge/amd/amd8132/bridge.c
@@ -29,9 +29,9 @@
#define NPUMB 0xD8 /* Non prefetchable upper memory base */
static void amd8132_walk_children(struct bus *bus,
- void (*visit)(device_t dev, void *ptr), void *ptr)
+ void (*visit)(struct device *dev, void *ptr), void *ptr)
{
- device_t child;
+ struct device *child;
for (child = bus->children; child; child = child->sibling) {
if (child->path.type != DEVICE_PATH_PCI) {
continue;
@@ -50,7 +50,7 @@ struct amd8132_bus_info {
int max_func;
};
-static void amd8132_count_dev(device_t dev, void *ptr)
+static void amd8132_count_dev(struct device *dev, void *ptr)
{
struct amd8132_bus_info *info = ptr;
/* Don't count pci bridges */
@@ -63,7 +63,7 @@ static void amd8132_count_dev(device_t dev, void *ptr)
}
-static void amd8132_pcix_tune_dev(device_t dev, void *ptr)
+static void amd8132_pcix_tune_dev(struct device *dev, void *ptr)
{
struct amd8132_bus_info *info = ptr;
unsigned cap;
@@ -189,13 +189,13 @@ static void amd8132_scan_bus(struct bus *bus,
amd8132_walk_children(bus, amd8132_pcix_tune_dev, &info);
}
-static void amd8132_scan_bridge(device_t dev)
+static void amd8132_scan_bridge(struct device *dev)
{
do_pci_scan_bridge(dev, amd8132_scan_bus);
}
-static void amd8132_pcix_init(device_t dev)
+static void amd8132_pcix_init(struct device *dev)
{
uint32_t dword;
uint8_t byte;
@@ -354,7 +354,7 @@ static const struct pci_driver pcix_driver __pci_driver = {
.device = 0x7458,
};
-static void ioapic_enable(device_t dev)
+static void ioapic_enable(struct device *dev)
{
uint32_t value;
@@ -366,7 +366,7 @@ static void ioapic_enable(device_t dev)
}
pci_write_config32(dev, 0x44, value);
}
-static void amd8132_ioapic_init(device_t dev)
+static void amd8132_ioapic_init(struct device *dev)
{
uint32_t dword;
unsigned chip_rev;