summaryrefslogtreecommitdiff
path: root/common/cmd_pci.c
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-05-22 22:52:13 +0000
committerwdenk <wdenk>2003-05-22 22:52:13 +0000
commit5d232d0e7ea982d859d028ab482d95eb68460b19 (patch)
treea02c773fa4be5687f8f97d053ebd9afebbfaa54f /common/cmd_pci.c
parentc8c3a8be2dd09e51d7dc33f431e3a638ac5688f2 (diff)
downloadu-boot-imx-5d232d0e7ea982d859d028ab482d95eb68460b19.zip
u-boot-imx-5d232d0e7ea982d859d028ab482d95eb68460b19.tar.gz
u-boot-imx-5d232d0e7ea982d859d028ab482d95eb68460b19.tar.bz2
* Patch by Dave Ellis, 22 May 2003:
Fix problem with only partially cleared .bss segment * Patch by Rune Torgersen, 12 May 2003: get PCI to work on a MPC8266ADS board; incorporate change to cpu/mpc8260/pci.c to enable overrides of PCI memory parameters
Diffstat (limited to 'common/cmd_pci.c')
-rw-r--r--common/cmd_pci.c36
1 files changed, 18 insertions, 18 deletions
diff --git a/common/cmd_pci.c b/common/cmd_pci.c
index a26dedd..ca712ce 100644
--- a/common/cmd_pci.c
+++ b/common/cmd_pci.c
@@ -113,7 +113,7 @@ void pciinfo(int BusNum, int ShortPCIListing)
}
}
-char* pci_classes_str(u8 class)
+static char *pci_classes_str(u8 class)
{
switch (class) {
case PCI_CLASS_NOT_DEFINED:
@@ -123,55 +123,55 @@ char* pci_classes_str(u8 class)
return "Mass storage controller";
break;
case PCI_BASE_CLASS_NETWORK:
- return "Network controller ";
+ return "Network controller";
break;
case PCI_BASE_CLASS_DISPLAY:
- return "Display controller ";
+ return "Display controller";
break;
case PCI_BASE_CLASS_MULTIMEDIA:
- return "Multimedia device ";
+ return "Multimedia device";
break;
case PCI_BASE_CLASS_MEMORY:
- return "Memory controller ";
+ return "Memory controller";
break;
case PCI_BASE_CLASS_BRIDGE:
- return "Bridge device ";
+ return "Bridge device";
break;
case PCI_BASE_CLASS_COMMUNICATION:
return "Simple comm. controller";
break;
case PCI_BASE_CLASS_SYSTEM:
- return "Base system peripheral ";
+ return "Base system peripheral";
break;
case PCI_BASE_CLASS_INPUT:
- return "Input device ";
+ return "Input device";
break;
case PCI_BASE_CLASS_DOCKING:
- return "Docking station ";
+ return "Docking station";
break;
case PCI_BASE_CLASS_PROCESSOR:
- return "Processor ";
+ return "Processor";
break;
case PCI_BASE_CLASS_SERIAL:
- return "Serial bus controller ";
+ return "Serial bus controller";
break;
case PCI_BASE_CLASS_INTELLIGENT:
- return "Intelligent controller ";
+ return "Intelligent controller";
break;
case PCI_BASE_CLASS_SATELLITE:
- return "Satellite controller ";
+ return "Satellite controller";
break;
case PCI_BASE_CLASS_CRYPT:
- return "Cryptographic device ";
+ return "Cryptographic device";
break;
case PCI_BASE_CLASS_SIGNAL_PROCESSING:
- return "DSP ";
+ return "DSP";
break;
case PCI_CLASS_OTHERS:
- return "Does not fit any class ";
+ return "Does not fit any class";
break;
default:
- return "??? ";
+ return "???";
break;
};
}
@@ -197,7 +197,7 @@ void pci_header_show_brief(pci_dev_t dev)
pci_read_config_byte(dev, PCI_CLASS_CODE, &class);
pci_read_config_byte(dev, PCI_CLASS_SUB_CODE, &subclass);
- printf("0x%.4x 0x%.4x %s 0x%.2x\n",
+ printf("0x%.4x 0x%.4x %-23s 0x%.2x\n",
vendor, device,
pci_classes_str(class), subclass);
}