require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_DEV_DTV_DTVIO_FRONTEND_H)) {
    eval 'sub _DEV_DTV_DTVIO_FRONTEND_H () {1;}' unless defined(&_DEV_DTV_DTVIO_FRONTEND_H);
    require 'sys/types.ph';
    require 'sys/ioccom.ph';
    eval("sub FE_QPSK () { 0; }") unless defined(&FE_QPSK);
    eval("sub FE_QAM () { 1; }") unless defined(&FE_QAM);
    eval("sub FE_OFDM () { 2; }") unless defined(&FE_OFDM);
    eval("sub FE_ATSC () { 3; }") unless defined(&FE_ATSC);
    eval("sub FE_IS_STUPID () { 0; }") unless defined(&FE_IS_STUPID);
    eval("sub FE_CAN_INVERSION_AUTO () { 0x1; }") unless defined(&FE_CAN_INVERSION_AUTO);
    eval("sub FE_CAN_FEC_1_2 () { 0x2; }") unless defined(&FE_CAN_FEC_1_2);
    eval("sub FE_CAN_FEC_2_3 () { 0x4; }") unless defined(&FE_CAN_FEC_2_3);
    eval("sub FE_CAN_FEC_3_4 () { 0x8; }") unless defined(&FE_CAN_FEC_3_4);
    eval("sub FE_CAN_FEC_4_5 () { 0x10; }") unless defined(&FE_CAN_FEC_4_5);
    eval("sub FE_CAN_FEC_5_6 () { 0x20; }") unless defined(&FE_CAN_FEC_5_6);
    eval("sub FE_CAN_FEC_6_7 () { 0x40; }") unless defined(&FE_CAN_FEC_6_7);
    eval("sub FE_CAN_FEC_7_8 () { 0x80; }") unless defined(&FE_CAN_FEC_7_8);
    eval("sub FE_CAN_FEC_8_9 () { 0x100; }") unless defined(&FE_CAN_FEC_8_9);
    eval("sub FE_CAN_FEC_AUTO () { 0x200; }") unless defined(&FE_CAN_FEC_AUTO);
    eval("sub FE_CAN_QPSK () { 0x400; }") unless defined(&FE_CAN_QPSK);
    eval("sub FE_CAN_QAM_16 () { 0x800; }") unless defined(&FE_CAN_QAM_16);
    eval("sub FE_CAN_QAM_32 () { 0x1000; }") unless defined(&FE_CAN_QAM_32);
    eval("sub FE_CAN_QAM_64 () { 0x2000; }") unless defined(&FE_CAN_QAM_64);
    eval("sub FE_CAN_QAM_128 () { 0x4000; }") unless defined(&FE_CAN_QAM_128);
    eval("sub FE_CAN_QAM_256 () { 0x8000; }") unless defined(&FE_CAN_QAM_256);
    eval("sub FE_CAN_QAM_AUTO () { 0x10000; }") unless defined(&FE_CAN_QAM_AUTO);
    eval("sub FE_CAN_TRANSMISSION_MODE_AUTO () { 0x20000; }") unless defined(&FE_CAN_TRANSMISSION_MODE_AUTO);
    eval("sub FE_CAN_BANDWIDTH_AUTO () { 0x40000; }") unless defined(&FE_CAN_BANDWIDTH_AUTO);
    eval("sub FE_CAN_GUARD_INTERVAL_AUTO () { 0x80000; }") unless defined(&FE_CAN_GUARD_INTERVAL_AUTO);
    eval("sub FE_CAN_HIERARCHY_AUTO () { 0x100000; }") unless defined(&FE_CAN_HIERARCHY_AUTO);
    eval("sub FE_CAN_8VSB () { 0x200000; }") unless defined(&FE_CAN_8VSB);
    eval("sub FE_CAN_16VSB () { 0x400000; }") unless defined(&FE_CAN_16VSB);
    eval("sub FE_HAS_EXTENDED_CAPS () { 0x800000; }") unless defined(&FE_HAS_EXTENDED_CAPS);
    eval("sub FE_CAN_TURBO_FEC () { 0x8000000; }") unless defined(&FE_CAN_TURBO_FEC);
    eval("sub FE_CAN_2G_MODULATION () { 0x10000000; }") unless defined(&FE_CAN_2G_MODULATION);
    eval("sub FE_NEEDS_BENDING () { 0x20000000; }") unless defined(&FE_NEEDS_BENDING);
    eval("sub FE_CAN_RECOVER () { 0x40000000; }") unless defined(&FE_CAN_RECOVER);
    eval("sub FE_CAN_MUTE_TS () { 0x80000000; }") unless defined(&FE_CAN_MUTE_TS);
    eval("sub FE_HAS_SIGNAL () { 0x01; }") unless defined(&FE_HAS_SIGNAL);
    eval("sub FE_HAS_CARRIER () { 0x02; }") unless defined(&FE_HAS_CARRIER);
    eval("sub FE_HAS_VITERBI () { 0x04; }") unless defined(&FE_HAS_VITERBI);
    eval("sub FE_HAS_SYNC () { 0x08; }") unless defined(&FE_HAS_SYNC);
    eval("sub FE_HAS_LOCK () { 0x10; }") unless defined(&FE_HAS_LOCK);
    eval("sub FE_TIMEDOUT () { 0x20; }") unless defined(&FE_TIMEDOUT);
    eval("sub FE_REINIT () { 0x40; }") unless defined(&FE_REINIT);
    eval("sub INVERSION_OFF () { 0; }") unless defined(&INVERSION_OFF);
    eval("sub INVERSION_ON () { 1; }") unless defined(&INVERSION_ON);
    eval("sub INVERSION_AUTO () { 2; }") unless defined(&INVERSION_AUTO);
    eval("sub FEC_NONE () { 0; }") unless defined(&FEC_NONE);
    eval("sub FEC_1_2 () { 1; }") unless defined(&FEC_1_2);
    eval("sub FEC_2_3 () { 2; }") unless defined(&FEC_2_3);
    eval("sub FEC_3_4 () { 3; }") unless defined(&FEC_3_4);
    eval("sub FEC_4_5 () { 4; }") unless defined(&FEC_4_5);
    eval("sub FEC_5_6 () { 5; }") unless defined(&FEC_5_6);
    eval("sub FEC_6_7 () { 6; }") unless defined(&FEC_6_7);
    eval("sub FEC_7_8 () { 7; }") unless defined(&FEC_7_8);
    eval("sub FEC_8_9 () { 8; }") unless defined(&FEC_8_9);
    eval("sub FEC_AUTO () { 9; }") unless defined(&FEC_AUTO);
    eval("sub FEC_3_5 () { 10; }") unless defined(&FEC_3_5);
    eval("sub FEC_9_10 () { 11; }") unless defined(&FEC_9_10);
    eval("sub QPSK () { 0; }") unless defined(&QPSK);
    eval("sub QAM_16 () { 1; }") unless defined(&QAM_16);
    eval("sub QAM_32 () { 2; }") unless defined(&QAM_32);
    eval("sub QAM_64 () { 3; }") unless defined(&QAM_64);
    eval("sub QAM_128 () { 4; }") unless defined(&QAM_128);
    eval("sub QAM_256 () { 5; }") unless defined(&QAM_256);
    eval("sub QAM_AUTO () { 6; }") unless defined(&QAM_AUTO);
    eval("sub VSB_8 () { 7; }") unless defined(&VSB_8);
    eval("sub VSB_16 () { 8; }") unless defined(&VSB_16);
    eval("sub PSK_8 () { 9; }") unless defined(&PSK_8);
    eval("sub APSK_16 () { 10; }") unless defined(&APSK_16);
    eval("sub APSK_32 () { 11; }") unless defined(&APSK_32);
    eval("sub DQPSK () { 12; }") unless defined(&DQPSK);
    eval("sub TRANSMISSION_MODE_2K () { 0; }") unless defined(&TRANSMISSION_MODE_2K);
    eval("sub TRANSMISSION_MODE_8K () { 1; }") unless defined(&TRANSMISSION_MODE_8K);
    eval("sub TRANSMISSION_MODE_AUTO () { 2; }") unless defined(&TRANSMISSION_MODE_AUTO);
    eval("sub TRANSMISSION_MODE_4K () { 3; }") unless defined(&TRANSMISSION_MODE_4K);
    eval("sub TRANSMISSION_MODE_1K () { 4; }") unless defined(&TRANSMISSION_MODE_1K);
    eval("sub TRANSMISSION_MODE_16K () { 5; }") unless defined(&TRANSMISSION_MODE_16K);
    eval("sub TRANSMISSION_MODE_32K () { 6; }") unless defined(&TRANSMISSION_MODE_32K);
    eval("sub BANDWIDTH_8_MHZ () { 0; }") unless defined(&BANDWIDTH_8_MHZ);
    eval("sub BANDWIDTH_7_MHZ () { 1; }") unless defined(&BANDWIDTH_7_MHZ);
    eval("sub BANDWIDTH_6_MHZ () { 2; }") unless defined(&BANDWIDTH_6_MHZ);
    eval("sub BANDWIDTH_AUTO () { 3; }") unless defined(&BANDWIDTH_AUTO);
    eval("sub BANDWIDTH_5_MHZ () { 4; }") unless defined(&BANDWIDTH_5_MHZ);
    eval("sub BANDWIDTH_10_MHZ () { 5; }") unless defined(&BANDWIDTH_10_MHZ);
    eval("sub BANDWIDTH_1_172_MHZ () { 6; }") unless defined(&BANDWIDTH_1_172_MHZ);
    eval("sub GUARD_INTERVAL_1_32 () { 0; }") unless defined(&GUARD_INTERVAL_1_32);
    eval("sub GUARD_INTERVAL_1_16 () { 1; }") unless defined(&GUARD_INTERVAL_1_16);
    eval("sub GUARD_INTERVAL_1_8 () { 2; }") unless defined(&GUARD_INTERVAL_1_8);
    eval("sub GUARD_INTERVAL_1_4 () { 3; }") unless defined(&GUARD_INTERVAL_1_4);
    eval("sub GUARD_INTERVAL_AUTO () { 4; }") unless defined(&GUARD_INTERVAL_AUTO);
    eval("sub GUARD_INTERVAL_1_128 () { 5; }") unless defined(&GUARD_INTERVAL_1_128);
    eval("sub GUARD_INTERVAL_19_128 () { 6; }") unless defined(&GUARD_INTERVAL_19_128);
    eval("sub GUARD_INTERVAL_19_256 () { 7; }") unless defined(&GUARD_INTERVAL_19_256);
    eval("sub HIERARCHY_NONE () { 0; }") unless defined(&HIERARCHY_NONE);
    eval("sub HIERARCHY_1 () { 1; }") unless defined(&HIERARCHY_1);
    eval("sub HIERARCHY_2 () { 2; }") unless defined(&HIERARCHY_2);
    eval("sub HIERARCHY_4 () { 3; }") unless defined(&HIERARCHY_4);
    eval("sub HIERARCHY_AUTO () { 4; }") unless defined(&HIERARCHY_AUTO);
    eval("sub SEC_VOLTAGE_13 () { 0; }") unless defined(&SEC_VOLTAGE_13);
    eval("sub SEC_VOLTAGE_18 () { 1; }") unless defined(&SEC_VOLTAGE_18);
    eval("sub SEC_VOLTAGE_OFF () { 2; }") unless defined(&SEC_VOLTAGE_OFF);
    eval("sub SEC_TONE_ON () { 0; }") unless defined(&SEC_TONE_ON);
    eval("sub SEC_TONE_OFF () { 1; }") unless defined(&SEC_TONE_OFF);
    eval("sub SEC_MINI_A () { 0; }") unless defined(&SEC_MINI_A);
    eval("sub SEC_MINI_B () { 1; }") unless defined(&SEC_MINI_B);
    eval 'sub FE_READ_STATUS () { &_IOR(ord(\'D\'), 0,  &fe_status_t);}' unless defined(&FE_READ_STATUS);
    eval 'sub FE_READ_BER () { &_IOR(ord(\'D\'), 1,  &uint32_t);}' unless defined(&FE_READ_BER);
    eval 'sub FE_READ_SNR () { &_IOR(ord(\'D\'), 2,  &uint16_t);}' unless defined(&FE_READ_SNR);
    eval 'sub FE_READ_SIGNAL_STRENGTH () { &_IOR(ord(\'D\'), 3,  &uint16_t);}' unless defined(&FE_READ_SIGNAL_STRENGTH);
    eval 'sub FE_READ_UNCORRECTED_BLOCKS () { &_IOR(ord(\'D\'), 4,  &uint32_t);}' unless defined(&FE_READ_UNCORRECTED_BLOCKS);
    eval 'sub FE_SET_FRONTEND () { &_IOWR(ord(\'D\'), 5, \'struct dvb_frontend_parameters\');}' unless defined(&FE_SET_FRONTEND);
    eval 'sub FE_GET_FRONTEND () { &_IOR(ord(\'D\'), 6, \'struct dvb_frontend_parameters\');}' unless defined(&FE_GET_FRONTEND);
    eval 'sub FE_GET_EVENT () { &_IOR(ord(\'D\'), 7, \'struct dvb_frontend_event\');}' unless defined(&FE_GET_EVENT);
    eval 'sub FE_GET_INFO () { &_IOR(ord(\'D\'), 8, \'struct dvb_frontend_info\');}' unless defined(&FE_GET_INFO);
    eval 'sub FE_DISEQC_RESET_OVERLOAD () { &_IO(ord(\'D\'), 9);}' unless defined(&FE_DISEQC_RESET_OVERLOAD);
    eval 'sub FE_DISEQC_SEND_MASTER_CMD () { &_IOW(ord(\'D\'), 10, \'struct dvb_diseqc_master_cmd\');}' unless defined(&FE_DISEQC_SEND_MASTER_CMD);
    eval 'sub FE_DISEQC_RECV_SLAVE_REPLY () { &_IOR(ord(\'D\'), 11, \'struct dvb_diseqc_slave_reply\');}' unless defined(&FE_DISEQC_RECV_SLAVE_REPLY);
    eval 'sub FE_DISEQC_SEND_BURST () { &_IOW(ord(\'D\'), 12,  &fe_sec_mini_cmd_t);}' unless defined(&FE_DISEQC_SEND_BURST);
    eval 'sub FE_SET_TONE () { &_IOW(ord(\'D\'), 13,  &fe_sec_tone_mode_t);}' unless defined(&FE_SET_TONE);
    eval 'sub FE_SET_VOLTAGE () { &_IOW(ord(\'D\'), 14,  &fe_sec_voltage_t);}' unless defined(&FE_SET_VOLTAGE);
    eval 'sub FE_ENABLE_HIGH_LNB_VOLTAGE () { &_IOW(ord(\'D\'), 15, \'int\');}' unless defined(&FE_ENABLE_HIGH_LNB_VOLTAGE);
    eval 'sub FE_SET_FRONTEND_TUNE_MODE () { &_IOW(ord(\'D\'), 16, \'unsigned int\');}' unless defined(&FE_SET_FRONTEND_TUNE_MODE);
    eval 'sub FE_DISHNETWORK_SEND_LEGACY_CMD () { &_IOW(ord(\'D\'), 17, \'unsigned long\');}' unless defined(&FE_DISHNETWORK_SEND_LEGACY_CMD);
}
1;
