summaryrefslogtreecommitdiff
path: root/src/devices/smbus_ops.c
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2004-12-23 21:48:01 +0000
committerLi-Ta Lo <ollie@lanl.gov>2004-12-23 21:48:01 +0000
commit9a5b4962a7202ac9ba6eeef8ac9550c7907cfb2a (patch)
tree1308b20c0b7f3347f9f4de296534a43121c656b1 /src/devices/smbus_ops.c
parenta804a713a23ec9662933f7452f1d3235f7a69474 (diff)
downloadcoreboot-9a5b4962a7202ac9ba6eeef8ac9550c7907cfb2a.tar.xz
Allocating resource for Expansion ROM
More correct resource allocation for legacy VGA on K8 git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1829 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/smbus_ops.c')
-rw-r--r--src/devices/smbus_ops.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/devices/smbus_ops.c b/src/devices/smbus_ops.c
index e721bfbfb3..8d32a66b8f 100644
--- a/src/devices/smbus_ops.c
+++ b/src/devices/smbus_ops.c
@@ -7,7 +7,7 @@
struct bus *get_pbus_smbus(device_t dev)
{
struct bus *pbus = dev->bus;
- while(pbus && pbus->dev && !ops_smbus_bus(pbus)) {
+ while (pbus && pbus->dev && !ops_smbus_bus(pbus)) {
pbus = pbus->dev->bus;
}
if (!pbus || !pbus->dev || !pbus->dev->ops || !pbus->dev->ops->ops_smbus_bus) {
@@ -18,9 +18,10 @@ struct bus *get_pbus_smbus(device_t dev)
return pbus;
}
- /*multi level i2c MUX??? may need to find the first i2c device and then set link down to current dev
- 1 store get_pbus_smbus list link
- 2 reverse the link and call set link */
+/*multi level i2c MUX??? may need to find the first i2c device and then set link
+ * down to current dev
+ 1 store get_pbus_smbus list link
+ 2 reverse the link and call set link */
int smbus_set_link(device_t dev)
{
@@ -33,10 +34,10 @@ int smbus_set_link(device_t dev)
pbus = pbus->dev->bus;
}
// printk_info("smbus_set_link: ");
- for(i=pbus_num-1; i>=0; i--) {
+ for (i=pbus_num-1; i>=0; i--) {
// printk_info(" %s[%d] -> ", dev_path(pbus_a[i]->dev), pbus_a[i]->link);
- if(ops_smbus_bus(get_pbus_smbus(pbus_a[i]->dev))) {
- if(pbus_a[i]->dev->ops && pbus_a[i]->dev->ops->set_link)
+ if (ops_smbus_bus(get_pbus_smbus(pbus_a[i]->dev))) {
+ if (pbus_a[i]->dev->ops && pbus_a[i]->dev->ops->set_link)
pbus_a[i]->dev->ops->set_link(pbus_a[i]->dev, pbus_a[i]->link);
}
}