> On my x86 system i do that using iopl() call n then accessing PCI Conf space > through ADDRESS port(0xCF8) and DATA port(0xCFC). Here i have no problems > accessing the IO ports. This is wrong. If the kernel does a PCI config access between your two accesses you will break the system. See pcilib as used by lspci