require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_PCIIO_H_)) {
    eval 'sub _SYS_PCIIO_H_ () {1;}' unless defined(&_SYS_PCIIO_H_);
    require 'sys/ioccom.ph';
    eval 'sub PCIOCREAD () { &_IOWR(ord(\'p\'), 2, \'struct pci_io\');}' unless defined(&PCIOCREAD);
    eval 'sub PCIOCWRITE () { &_IOWR(ord(\'p\'), 3, \'struct pci_io\');}' unless defined(&PCIOCWRITE);
    eval 'sub PCIOCGETROMLEN () { &_IOWR(ord(\'p\'), 4, \'struct pci_rom\');}' unless defined(&PCIOCGETROMLEN);
    eval 'sub PCIOCGETROM () { &_IOWR(ord(\'p\'), 5, \'struct pci_rom\');}' unless defined(&PCIOCGETROM);
}
1;
