summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-03-14 20:47:52 +0000
committerwdenk <wdenk>2003-03-14 20:47:52 +0000
commit06d01dbe000057e5df4af0f113242f0eba716340 (patch)
tree9188617ad1907e44f41910b99af9bde7258338f9 /common
parent09127c60964c47621937ada7b0ccbf0c26329376 (diff)
downloadu-boot-imx-06d01dbe000057e5df4af0f113242f0eba716340.zip
u-boot-imx-06d01dbe000057e5df4af0f113242f0eba716340.tar.gz
u-boot-imx-06d01dbe000057e5df4af0f113242f0eba716340.tar.bz2
* Avoid flicker on the TRAB's VFD by synchronizing the enable with
the HSYNC/VSYNC. Requires new CPLD code (Version 101 for Rev. 100 boards, version 153 for Rev. 200 boards). * Patch by Vladimir Gurevich, 12 Mar 2003: Fix relocation problem of statically initialized string pointers in common/cmd_pci.c * Patch by Kai-Uwe Blöm, 12 Mar 2003: Cleanup & bug fixes for JFFS2 code: - the memory mangement was broken. It caused havoc on malloc by writing beyond the block boundaries. - the length calculation for files was wrong, sometimes resulting in short file reads. - data copying now optionally takes fragment version numbers into account, to avoid copying from older data. See doc/README.JFFS2 for details.
Diffstat (limited to 'common')
-rw-r--r--common/cmd_pci.c79
1 files changed, 58 insertions, 21 deletions
diff --git a/common/cmd_pci.c b/common/cmd_pci.c
index 5a3b557..a26dedd 100644
--- a/common/cmd_pci.c
+++ b/common/cmd_pci.c
@@ -115,28 +115,65 @@ void pciinfo(int BusNum, int ShortPCIListing)
char* pci_classes_str(u8 class)
{
- static char *pci_classes[] = {
- "Build before PCI Rev2.0",
- "Mass storage controller",
- "Network controller ",
- "Display controller ",
- "Multimedia device ",
- "Memory controller ",
- "Bridge device ",
- "Simple comm. controller",
- "Base system peripheral ",
- "Input device ",
- "Docking station ",
- "Processor ",
- "Serial bus controller ",
- "Reserved entry ",
- "Does not fit any class "
- };
-
- if (class < (sizeof pci_classes / sizeof *pci_classes))
- return pci_classes[(int) class];
-
+ switch (class) {
+ case PCI_CLASS_NOT_DEFINED:
+ return "Build before PCI Rev2.0";
+ break;
+ case PCI_BASE_CLASS_STORAGE:
+ return "Mass storage controller";
+ break;
+ case PCI_BASE_CLASS_NETWORK:
+ return "Network controller ";
+ break;
+ case PCI_BASE_CLASS_DISPLAY:
+ return "Display controller ";
+ break;
+ case PCI_BASE_CLASS_MULTIMEDIA:
+ return "Multimedia device ";
+ break;
+ case PCI_BASE_CLASS_MEMORY:
+ return "Memory controller ";
+ break;
+ case PCI_BASE_CLASS_BRIDGE:
+ return "Bridge device ";
+ break;
+ case PCI_BASE_CLASS_COMMUNICATION:
+ return "Simple comm. controller";
+ break;
+ case PCI_BASE_CLASS_SYSTEM:
+ return "Base system peripheral ";
+ break;
+ case PCI_BASE_CLASS_INPUT:
+ return "Input device ";
+ break;
+ case PCI_BASE_CLASS_DOCKING:
+ return "Docking station ";
+ break;
+ case PCI_BASE_CLASS_PROCESSOR:
+ return "Processor ";
+ break;
+ case PCI_BASE_CLASS_SERIAL:
+ return "Serial bus controller ";
+ break;
+ case PCI_BASE_CLASS_INTELLIGENT:
+ return "Intelligent controller ";
+ break;
+ case PCI_BASE_CLASS_SATELLITE:
+ return "Satellite controller ";
+ break;
+ case PCI_BASE_CLASS_CRYPT:
+ return "Cryptographic device ";
+ break;
+ case PCI_BASE_CLASS_SIGNAL_PROCESSING:
+ return "DSP ";
+ break;
+ case PCI_CLASS_OTHERS:
+ return "Does not fit any class ";
+ break;
+ default:
return "??? ";
+ break;
+ };
}
/*