require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_RADIOIO_H_)) {
    eval 'sub _SYS_RADIOIO_H_ () {1;}' unless defined(&_SYS_RADIOIO_H_);
    require 'sys/param.ph';
    eval 'sub MIN_FM_FREQ () {87500;}' unless defined(&MIN_FM_FREQ);
    eval 'sub MAX_FM_FREQ () {108000;}' unless defined(&MAX_FM_FREQ);
    eval 'sub MIN_TV_CHAN () {0;}' unless defined(&MIN_TV_CHAN);
    eval 'sub MAX_TV_CHAN () {150;}' unless defined(&MAX_TV_CHAN);
    eval 'sub IF_FREQ () {10700;}' unless defined(&IF_FREQ);
    eval 'sub RADIO_CAPS_DETECT_STEREO () {(1<<0);}' unless defined(&RADIO_CAPS_DETECT_STEREO);
    eval 'sub RADIO_CAPS_DETECT_SIGNAL () {(1<<1);}' unless defined(&RADIO_CAPS_DETECT_SIGNAL);
    eval 'sub RADIO_CAPS_SET_MONO () {(1<<2);}' unless defined(&RADIO_CAPS_SET_MONO);
    eval 'sub RADIO_CAPS_HW_SEARCH () {(1<<3);}' unless defined(&RADIO_CAPS_HW_SEARCH);
    eval 'sub RADIO_CAPS_HW_AFC () {(1<<4);}' unless defined(&RADIO_CAPS_HW_AFC);
    eval 'sub RADIO_CAPS_REFERENCE_FREQ () {(1<<5);}' unless defined(&RADIO_CAPS_REFERENCE_FREQ);
    eval 'sub RADIO_CAPS_LOCK_SENSITIVITY () {(1<<6);}' unless defined(&RADIO_CAPS_LOCK_SENSITIVITY);
    eval 'sub RADIO_CAPS_RESERVED1 () {(1<<7);}' unless defined(&RADIO_CAPS_RESERVED1);
    eval 'sub RADIO_CAPS_RESERVED2 () {(0xff<<8);}' unless defined(&RADIO_CAPS_RESERVED2);
    eval 'sub RADIO_CARD_TYPE () {(0xff<<16);}' unless defined(&RADIO_CARD_TYPE);
    eval 'sub RADIO_INFO_STEREO () {(1<<0);}' unless defined(&RADIO_INFO_STEREO);
    eval 'sub RADIO_INFO_SIGNAL () {(1<<1);}' unless defined(&RADIO_INFO_SIGNAL);
    eval 'sub RADIO_TUNER_MODE_RADIO () {(1<<0);}' unless defined(&RADIO_TUNER_MODE_RADIO);
    eval 'sub RADIO_TUNER_MODE_TV () {(1<<1);}' unless defined(&RADIO_TUNER_MODE_TV);
    eval 'sub RIOCGINFO () { &_IOR(ord(\'R\'), 21, \'struct radio_info\');}' unless defined(&RIOCGINFO);
    eval 'sub RIOCSINFO () { &_IOWR(ord(\'R\'), 22, \'struct radio_info\');}' unless defined(&RIOCSINFO);
    eval 'sub RIOCSSRCH () { &_IOW(ord(\'R\'), 23, \'int\');}' unless defined(&RIOCSSRCH);
}
1;
