require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_DEV_IRDAIO_H_)) {
    eval 'sub _SYS_DEV_IRDAIO_H_ () {1;}' unless defined(&_SYS_DEV_IRDAIO_H_);
    require 'sys/ioccom.ph';
    eval 'sub IRDA_SPEED_2400 () {0x1;}' unless defined(&IRDA_SPEED_2400);
    eval 'sub IRDA_SPEED_9600 () {0x2;}' unless defined(&IRDA_SPEED_9600);
    eval 'sub IRDA_SPEED_19200 () {0x4;}' unless defined(&IRDA_SPEED_19200);
    eval 'sub IRDA_SPEED_38400 () {0x8;}' unless defined(&IRDA_SPEED_38400);
    eval 'sub IRDA_SPEED_57600 () {0x10;}' unless defined(&IRDA_SPEED_57600);
    eval 'sub IRDA_SPEED_115200 () {0x20;}' unless defined(&IRDA_SPEED_115200);
    eval 'sub IRDA_SPEED_576000 () {0x40;}' unless defined(&IRDA_SPEED_576000);
    eval 'sub IRDA_SPEED_1152000 () {0x80;}' unless defined(&IRDA_SPEED_1152000);
    eval 'sub IRDA_SPEED_4000000 () {0x100;}' unless defined(&IRDA_SPEED_4000000);
    eval 'sub IRDA_SPEED_16000000 () {0x200;}' unless defined(&IRDA_SPEED_16000000);
    eval 'sub IRDA_SPEEDS_SIR () {0x3f;}' unless defined(&IRDA_SPEEDS_SIR);
    eval 'sub IRDA_SPEEDS_MIR () {0xc0;}' unless defined(&IRDA_SPEEDS_MIR);
    eval 'sub IRDA_SPEEDS_FIR () {0x100;}' unless defined(&IRDA_SPEEDS_FIR);
    eval 'sub IRDA_SPEEDS_VFIR () {0x200;}' unless defined(&IRDA_SPEEDS_VFIR);
    eval 'sub IRDA_TURNT_10000 () {0x1;}' unless defined(&IRDA_TURNT_10000);
    eval 'sub IRDA_TURNT_5000 () {0x2;}' unless defined(&IRDA_TURNT_5000);
    eval 'sub IRDA_TURNT_1000 () {0x4;}' unless defined(&IRDA_TURNT_1000);
    eval 'sub IRDA_TURNT_500 () {0x8;}' unless defined(&IRDA_TURNT_500);
    eval 'sub IRDA_TURNT_100 () {0x10;}' unless defined(&IRDA_TURNT_100);
    eval 'sub IRDA_TURNT_50 () {0x20;}' unless defined(&IRDA_TURNT_50);
    eval 'sub IRDA_TURNT_10 () {0x40;}' unless defined(&IRDA_TURNT_10);
    eval 'sub IRDA_TURNT_0 () {0x80;}' unless defined(&IRDA_TURNT_0);
    eval 'sub IRDA_RESET_PARAMS () { &_IO (ord(\'I\'), 1);}' unless defined(&IRDA_RESET_PARAMS);
    eval 'sub IRDA_SET_PARAMS () { &_IOW(ord(\'I\'), 2, \'struct irda_params\');}' unless defined(&IRDA_SET_PARAMS);
    eval 'sub IRDA_GET_SPEEDMASK () { &_IOR(ord(\'I\'), 3, \'unsigned int\');}' unless defined(&IRDA_GET_SPEEDMASK);
    eval 'sub IRDA_GET_TURNAROUNDMASK () { &_IOR(ord(\'I\'), 4, \'unsigned int\');}' unless defined(&IRDA_GET_TURNAROUNDMASK);
    eval 'sub IRFRAMETTY_GET_DEVICE () { &_IOR(ord(\'I\'), 100, \'unsigned int\');}' unless defined(&IRFRAMETTY_GET_DEVICE);
    eval 'sub IRFRAMETTY_GET_DONGLE () { &_IOR(ord(\'I\'), 101, \'unsigned int\');}' unless defined(&IRFRAMETTY_GET_DONGLE);
    eval 'sub IRFRAMETTY_SET_DONGLE () { &_IOW(ord(\'I\'), 102, \'unsigned int\');}' unless defined(&IRFRAMETTY_SET_DONGLE);
    eval 'sub DONGLE_NONE () {0;}' unless defined(&DONGLE_NONE);
    eval 'sub DONGLE_TEKRAM () {1;}' unless defined(&DONGLE_TEKRAM);
    eval 'sub DONGLE_JETEYE () {2;}' unless defined(&DONGLE_JETEYE);
    eval 'sub DONGLE_ACTISYS () {3;}' unless defined(&DONGLE_ACTISYS);
    eval 'sub DONGLE_ACTISYS_PLUS () {4;}' unless defined(&DONGLE_ACTISYS_PLUS);
    eval 'sub DONGLE_LITELINK () {5;}' unless defined(&DONGLE_LITELINK);
    eval 'sub DONGLE_GIRBIL () {6;}' unless defined(&DONGLE_GIRBIL);
    eval 'sub DONGLE_MAX () {7;}' unless defined(&DONGLE_MAX);
}
1;
