This code is actually for the old PIIX4 PCI host bridge, which requires to use legacy x86 IO instructions.