aboutsummaryrefslogtreecommitdiff
path: root/src/devices/pci_rom.c
diff options
context:
space:
mode:
authorLi-Ta Lo <ollie@lanl.gov>2005-01-19 23:19:26 +0000
committerLi-Ta Lo <ollie@lanl.gov>2005-01-19 23:19:26 +0000
commitbec039cb93b72b068370662933d961b1cd4aeaea (patch)
treefe17932d8215153fe84ea142072a2b956e2a5d0a /src/devices/pci_rom.c
parentaf021575308fffc104a7add2ba8183cef079876c (diff)
minor reformat
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1892 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/devices/pci_rom.c')
-rw-r--r--src/devices/pci_rom.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/devices/pci_rom.c b/src/devices/pci_rom.c
index 3639af7177..557553ab5a 100644
--- a/src/devices/pci_rom.c
+++ b/src/devices/pci_rom.c
@@ -13,18 +13,19 @@ struct rom_header * pci_rom_probe(struct device *dev)
rom_address = pci_read_config32(dev, PCI_ROM_ADDRESS);
if (rom_address == 0x00000000 || rom_address == 0xffffffff) {
- if(dev->on_mainboard && (dev->rom_address!=0) ) { // in case some device PCI_ROM_ADDRESS can not be set
+ if (dev->on_mainboard && (dev->rom_address!=0) ) {
+ // in case some device PCI_ROM_ADDRESS can not be set
rom_address = dev->rom_address;
- }
- else
+ } else {
return NULL;
+ }
}
- printk_debug("rom address for %s = %x\n",
- dev_path(dev), rom_address);
+ printk_debug("rom address for %s = %x\n", dev_path(dev), rom_address);
/* enable expansion ROM address decoding */
- pci_write_config32(dev, PCI_ROM_ADDRESS, rom_address|PCI_ROM_ADDRESS_ENABLE);
+ pci_write_config32(dev, PCI_ROM_ADDRESS,
+ rom_address|PCI_ROM_ADDRESS_ENABLE);
rom_header = rom_address;
printk_spew("PCI Expansion ROM, signature 0x%04x, \n\t"
@@ -38,10 +39,11 @@ struct rom_header * pci_rom_probe(struct device *dev)
}
rom_data = (unsigned char *) rom_header + le32_to_cpu(rom_header->data);
- printk_spew("PCI ROM Image, Vendor %04x, Device %04x,\n",
+ printk_spew("PCI ROM Image, Vendor %04x, Device %04x,\n",
rom_data->vendor, rom_data->device);
if (dev->vendor != rom_data->vendor || dev->device != rom_data->device) {
- printk_err("Device or Vendor ID mismatch Vendor %04x, Device %04x\n", rom_data->vendor, rom_data->device);
+ printk_err("Device or Vendor ID mismatch Vendor %04x, Device %04x\n",
+ rom_data->vendor, rom_data->device);
return NULL;
}