> I am reading code about pci, and I can't understand some lines in > pci_check_direct(), in arch/i386/kernel/pci-pc.c > > the PCI spec v2.0 say: ( page32) > > "Anytime a host bridge sees a full DWORD I/O write from the host to > CONFIG_ADDRESS, the bridge must latch the data into its CONFIG_ADDRESS > register. On full DWORD I/O reads to CONFIG_ADDRESS,the bridge must return > the > data in CONFIG_ADDRESS. Any other types of accesses to this > address(non-DWORD) > have no effect on CONFIG_ADDRESS and are excuted as normal I/O transaction > on PCI bus......" > > CONFIG_ADDRESS = 0xcf8 > CONFIG_data = 0xcfc > > so , I wonder why need "outb (0x01, 0xCFB);" if check configuration type 1 ? > and why "outb (0x00, 0xCFB);" if check configuration type 2? It looks to me like a workaround for broken hardware, but I could be wrong. Incidently, wouldn't it be worth printing some debugging info, such as the values read from 0xCF8 and 0xCFA, when neither configuration type works? I've attached an, (untested), patch to do so. John.