require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_PCI_PCIIO_H_)) {
    eval 'sub _DEV_PCI_PCIIO_H_ () {1;}' unless defined(&_DEV_PCI_PCIIO_H_);
    require 'sys/ioccom.ph';
    eval 'sub PCI_IOC_CFGREAD () { &_IOWR(ord(\'P\'), 0, \'struct pciio_cfgreg\');}' unless defined(&PCI_IOC_CFGREAD);
    eval 'sub PCI_IOC_CFGWRITE () { &_IOW(ord(\'P\'), 1, \'struct pciio_cfgreg\');}' unless defined(&PCI_IOC_CFGWRITE);
    eval 'sub PCI_IOC_BDF_CFGREAD () { &_IOWR(ord(\'P\'), 2, \'struct pciio_bdf_cfgreg\');}' unless defined(&PCI_IOC_BDF_CFGREAD);
    eval 'sub PCI_IOC_BDF_CFGWRITE () { &_IOW(ord(\'P\'), 3, \'struct pciio_bdf_cfgreg\');}' unless defined(&PCI_IOC_BDF_CFGWRITE);
    eval 'sub PCI_IOC_BUSINFO () { &_IOR(ord(\'P\'), 4, \'struct pciio_businfo\');}' unless defined(&PCI_IOC_BUSINFO);
    eval 'sub PCI_IO_DRVNAME_LEN () {16;}' unless defined(&PCI_IO_DRVNAME_LEN);
    eval 'sub PCI_IOC_DRVNAME () { &_IOWR(ord(\'P\'), 5, \'struct pciio_drvname\');}' unless defined(&PCI_IOC_DRVNAME);
    eval 'sub PCI_IOC_DRVNAMEONBUS () { &_IOWR(ord(\'P\'), 5, \'struct pciio_drvnameonbus\');}' unless defined(&PCI_IOC_DRVNAMEONBUS);
}
1;
