require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_PCI_TWEIO_H_)) {
    eval 'sub _DEV_PCI_TWEIO_H_ () {1;}' unless defined(&_DEV_PCI_TWEIO_H_);
    require 'sys/ioccom.ph';
    require 'dev/pci/twereg.ph';
    eval 'sub TWEIO_COMMAND () { &_IOWR(ord(\'T\'), 100, \'struct twe_usercommand\');}' unless defined(&TWEIO_COMMAND);
    eval 'sub TWEQ_FREE () {0;}' unless defined(&TWEQ_FREE);
    eval 'sub TWEQ_BIO () {1;}' unless defined(&TWEQ_BIO);
    eval 'sub TWEQ_READY () {2;}' unless defined(&TWEQ_READY);
    eval 'sub TWEQ_BUSY () {3;}' unless defined(&TWEQ_BUSY);
    eval 'sub TWEQ_COMPLETE () {4;}' unless defined(&TWEQ_COMPLETE);
    eval 'sub TWEQ_COUNT () {5;}' unless defined(&TWEQ_COUNT);
    eval 'sub TWEIO_STATS () { &_IOWR(ord(\'T\'), 101, \'union twe_statrequest\');}' unless defined(&TWEIO_STATS);
    eval 'sub TWEIO_AEN_POLL () { &_IOR(ord(\'T\'), 102, \'int\');}' unless defined(&TWEIO_AEN_POLL);
    eval 'sub TWEIO_AEN_WAIT () { &_IOR(ord(\'T\'), 103, \'int\');}' unless defined(&TWEIO_AEN_WAIT);
    eval 'sub TWEIO_SET_PARAM () { &_IOW(ord(\'T\'), 104, \'struct twe_paramcommand\');}' unless defined(&TWEIO_SET_PARAM);
    eval 'sub TWEIO_GET_PARAM () { &_IOW(ord(\'T\'), 105, \'struct twe_paramcommand\');}' unless defined(&TWEIO_GET_PARAM);
    eval 'sub TWEIO_RESET () { &_IO(ord(\'T\'), 106);}' unless defined(&TWEIO_RESET);
    eval 'sub TWEIO_ADD_UNIT () { &_IOW(ord(\'U\'), 107, \'struct twe_drivecommand\');}' unless defined(&TWEIO_ADD_UNIT);
    eval 'sub TWEIO_DEL_UNIT () { &_IOW(ord(\'U\'), 108, \'struct twe_drivecommand\');}' unless defined(&TWEIO_DEL_UNIT);
}
1;
