[coreboot-gerrit] Change in coreboot[master]: sb/amd/amd8131: Get rid of device_t
Elyes HAOUAS (Code Review)
gerrit at coreboot.org
Sat May 19 14:53:52 CEST 2018
Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/26410
Change subject: sb/amd/amd8131: Get rid of device_t
......................................................................
sb/amd/amd8131: Get rid of device_t
Use of device_t has been abandoned in ramstage.
Change-Id: Iac87af2f1a1e331fee70b89548a0d6bbc5839ea0
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/southbridge/amd/amd8131/bridge.c
1 file changed, 8 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/26410/1
diff --git a/src/southbridge/amd/amd8131/bridge.c b/src/southbridge/amd/amd8131/bridge.c
index 07f4a6a..c97fba8 100644
--- a/src/southbridge/amd/amd8131/bridge.c
+++ b/src/southbridge/amd/amd8131/bridge.c
@@ -16,9 +16,9 @@
#define NPUMB 0xD8 /* Non prefetchable upper memory base */
static void amd8131_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;
@@ -38,7 +38,7 @@
int max_func;
};
-static void amd8131_count_dev(device_t dev, void *ptr)
+static void amd8131_count_dev(struct device *dev, void *ptr)
{
struct amd8131_bus_info *info = ptr;
/* Don't count pci bridges */
@@ -51,14 +51,14 @@
}
-static void amd8131_pcix_tune_dev(device_t dev, void *ptr)
+static void amd8131_pcix_tune_dev(struct device *dev, void *ptr)
{
struct amd8131_bus_info *info = ptr;
unsigned cap;
unsigned status, cmd, orig_cmd;
unsigned max_read, max_tran;
int sib_funcs, sibs;
- device_t sib;
+ struct device *sib;
if (dev->hdr_type != PCI_HEADER_TYPE_NORMAL) {
return;
@@ -264,13 +264,13 @@
}
}
-static void amd8131_scan_bridge(device_t dev)
+static void amd8131_scan_bridge(struct device *dev)
{
do_pci_scan_bridge(dev, amd8131_scan_bus);
}
-static void amd8131_pcix_init(device_t dev)
+static void amd8131_pcix_init(struct device *dev)
{
uint32_t dword;
uint16_t word;
@@ -395,7 +395,7 @@
};
-static void ioapic_enable(device_t dev)
+static void ioapic_enable(struct device *dev)
{
uint32_t value;
--
To view, visit https://review.coreboot.org/26410
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iac87af2f1a1e331fee70b89548a0d6bbc5839ea0
Gerrit-Change-Number: 26410
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180519/c41fe25d/attachment.html>
More information about the coreboot-gerrit
mailing list