require '_h2ph_pre.ph';

unless(defined(&TELEPHONY_H)) {
    eval 'sub TELEPHONY_H () {1;}' unless defined(&TELEPHONY_H);
    eval 'sub TELEPHONY_VERSION () {3013;}' unless defined(&TELEPHONY_VERSION);
    eval 'sub PHONE_VENDOR_IXJ () {1;}' unless defined(&PHONE_VENDOR_IXJ);
    eval 'sub PHONE_VENDOR_QUICKNET () { &PHONE_VENDOR_IXJ;}' unless defined(&PHONE_VENDOR_QUICKNET);
    eval 'sub PHONE_VENDOR_VOICETRONIX () {2;}' unless defined(&PHONE_VENDOR_VOICETRONIX);
    eval 'sub PHONE_VENDOR_ACULAB () {3;}' unless defined(&PHONE_VENDOR_ACULAB);
    eval 'sub PHONE_VENDOR_DIGI () {4;}' unless defined(&PHONE_VENDOR_DIGI);
    eval 'sub PHONE_VENDOR_FRANKLIN () {5;}' unless defined(&PHONE_VENDOR_FRANKLIN);
    eval 'sub QTI_PHONEJACK () {100;}' unless defined(&QTI_PHONEJACK);
    eval 'sub QTI_LINEJACK () {300;}' unless defined(&QTI_LINEJACK);
    eval 'sub QTI_PHONEJACK_LITE () {400;}' unless defined(&QTI_PHONEJACK_LITE);
    eval 'sub QTI_PHONEJACK_PCI () {500;}' unless defined(&QTI_PHONEJACK_PCI);
    eval 'sub QTI_PHONECARD () {600;}' unless defined(&QTI_PHONECARD);
    eval("sub vendor () { 0; }") unless defined(&vendor);
    eval("sub device () { 1; }") unless defined(&device);
    eval("sub port () { 2; }") unless defined(&port);
    eval("sub codec () { 3; }") unless defined(&codec);
    eval("sub dsp () { 4; }") unless defined(&dsp);
    eval("sub pots () { 0; }") unless defined(&pots);
    eval("sub pstn () { 1; }") unless defined(&pstn);
    eval("sub handset () { 2; }") unless defined(&handset);
    eval("sub speaker () { 3; }") unless defined(&speaker);
    eval 'sub PHONE_CAPABILITIES () { &_IO (ord(\'q\'), 0x80);}' unless defined(&PHONE_CAPABILITIES);
    eval 'sub PHONE_CAPABILITIES_LIST () { &_IOR (ord(\'q\'), 0x81, \'struct phone_capability\' *);}' unless defined(&PHONE_CAPABILITIES_LIST);
    eval 'sub PHONE_CAPABILITIES_CHECK () { &_IOW (ord(\'q\'), 0x82, \'struct phone_capability\' *);}' unless defined(&PHONE_CAPABILITIES_CHECK);
    eval 'sub PHONE_RING () { &_IO (ord(\'q\'), 0x83);}' unless defined(&PHONE_RING);
    eval 'sub PHONE_HOOKSTATE () { &_IO (ord(\'q\'), 0x84);}' unless defined(&PHONE_HOOKSTATE);
    eval 'sub PHONE_MAXRINGS () { &_IOW (ord(\'q\'), 0x85, \'char\');}' unless defined(&PHONE_MAXRINGS);
    eval 'sub PHONE_RING_CADENCE () { &_IOW (ord(\'q\'), 0x86, \'short\');}' unless defined(&PHONE_RING_CADENCE);
    eval 'sub OLD_PHONE_RING_START () { &_IO (ord(\'q\'), 0x87);}' unless defined(&OLD_PHONE_RING_START);
    eval 'sub PHONE_RING_START () { &_IOW (ord(\'q\'), 0x87,  &PHONE_CID *);}' unless defined(&PHONE_RING_START);
    eval 'sub PHONE_RING_STOP () { &_IO (ord(\'q\'), 0x88);}' unless defined(&PHONE_RING_STOP);
    eval 'sub USA_RING_CADENCE () {0xc0c0;}' unless defined(&USA_RING_CADENCE);
    eval 'sub PHONE_REC_CODEC () { &_IOW (ord(\'q\'), 0x89, \'int\');}' unless defined(&PHONE_REC_CODEC);
    eval 'sub PHONE_REC_START () { &_IO (ord(\'q\'), 0x8a);}' unless defined(&PHONE_REC_START);
    eval 'sub PHONE_REC_STOP () { &_IO (ord(\'q\'), 0x8b);}' unless defined(&PHONE_REC_STOP);
    eval 'sub PHONE_REC_DEPTH () { &_IOW (ord(\'q\'), 0x8c, \'int\');}' unless defined(&PHONE_REC_DEPTH);
    eval 'sub PHONE_FRAME () { &_IOW (ord(\'q\'), 0x8d, \'int\');}' unless defined(&PHONE_FRAME);
    eval 'sub PHONE_REC_VOLUME () { &_IOW (ord(\'q\'), 0x8e, \'int\');}' unless defined(&PHONE_REC_VOLUME);
    eval 'sub PHONE_REC_VOLUME_LINEAR () { &_IOW (ord(\'q\'), 0xdb, \'int\');}' unless defined(&PHONE_REC_VOLUME_LINEAR);
    eval 'sub PHONE_REC_LEVEL () { &_IO (ord(\'q\'), 0x8f);}' unless defined(&PHONE_REC_LEVEL);
    eval 'sub PHONE_PLAY_CODEC () { &_IOW (ord(\'q\'), 0x90, \'int\');}' unless defined(&PHONE_PLAY_CODEC);
    eval 'sub PHONE_PLAY_START () { &_IO (ord(\'q\'), 0x91);}' unless defined(&PHONE_PLAY_START);
    eval 'sub PHONE_PLAY_STOP () { &_IO (ord(\'q\'), 0x92);}' unless defined(&PHONE_PLAY_STOP);
    eval 'sub PHONE_PLAY_DEPTH () { &_IOW (ord(\'q\'), 0x93, \'int\');}' unless defined(&PHONE_PLAY_DEPTH);
    eval 'sub PHONE_PLAY_VOLUME () { &_IOW (ord(\'q\'), 0x94, \'int\');}' unless defined(&PHONE_PLAY_VOLUME);
    eval 'sub PHONE_PLAY_VOLUME_LINEAR () { &_IOW (ord(\'q\'), 0xdc, \'int\');}' unless defined(&PHONE_PLAY_VOLUME_LINEAR);
    eval 'sub PHONE_PLAY_LEVEL () { &_IO (ord(\'q\'), 0x95);}' unless defined(&PHONE_PLAY_LEVEL);
    eval 'sub PHONE_DTMF_READY () { &_IOR (ord(\'q\'), 0x96, \'int\');}' unless defined(&PHONE_DTMF_READY);
    eval 'sub PHONE_GET_DTMF () { &_IOR (ord(\'q\'), 0x97, \'int\');}' unless defined(&PHONE_GET_DTMF);
    eval 'sub PHONE_GET_DTMF_ASCII () { &_IOR (ord(\'q\'), 0x98, \'int\');}' unless defined(&PHONE_GET_DTMF_ASCII);
    eval 'sub PHONE_DTMF_OOB () { &_IOW (ord(\'q\'), 0x99, \'int\');}' unless defined(&PHONE_DTMF_OOB);
    eval 'sub PHONE_EXCEPTION () { &_IOR (ord(\'q\'), 0x9a, \'int\');}' unless defined(&PHONE_EXCEPTION);
    eval 'sub PHONE_PLAY_TONE () { &_IOW (ord(\'q\'), 0x9b, \'char\');}' unless defined(&PHONE_PLAY_TONE);
    eval 'sub PHONE_SET_TONE_ON_TIME () { &_IOW (ord(\'q\'), 0x9c, \'int\');}' unless defined(&PHONE_SET_TONE_ON_TIME);
    eval 'sub PHONE_SET_TONE_OFF_TIME () { &_IOW (ord(\'q\'), 0x9d, \'int\');}' unless defined(&PHONE_SET_TONE_OFF_TIME);
    eval 'sub PHONE_GET_TONE_ON_TIME () { &_IO (ord(\'q\'), 0x9e);}' unless defined(&PHONE_GET_TONE_ON_TIME);
    eval 'sub PHONE_GET_TONE_OFF_TIME () { &_IO (ord(\'q\'), 0x9f);}' unless defined(&PHONE_GET_TONE_OFF_TIME);
    eval 'sub PHONE_GET_TONE_STATE () { &_IO (ord(\'q\'), 0xa0);}' unless defined(&PHONE_GET_TONE_STATE);
    eval 'sub PHONE_BUSY () { &_IO (ord(\'q\'), 0xa1);}' unless defined(&PHONE_BUSY);
    eval 'sub PHONE_RINGBACK () { &_IO (ord(\'q\'), 0xa2);}' unless defined(&PHONE_RINGBACK);
    eval 'sub PHONE_DIALTONE () { &_IO (ord(\'q\'), 0xa3);}' unless defined(&PHONE_DIALTONE);
    eval 'sub PHONE_CPT_STOP () { &_IO (ord(\'q\'), 0xa4);}' unless defined(&PHONE_CPT_STOP);
    eval 'sub PHONE_PSTN_SET_STATE () { &_IOW (ord(\'q\'), 0xa4, \'int\');}' unless defined(&PHONE_PSTN_SET_STATE);
    eval 'sub PHONE_PSTN_GET_STATE () { &_IO (ord(\'q\'), 0xa5);}' unless defined(&PHONE_PSTN_GET_STATE);
    eval 'sub PSTN_ON_HOOK () {0;}' unless defined(&PSTN_ON_HOOK);
    eval 'sub PSTN_RINGING () {1;}' unless defined(&PSTN_RINGING);
    eval 'sub PSTN_OFF_HOOK () {2;}' unless defined(&PSTN_OFF_HOOK);
    eval 'sub PSTN_PULSE_DIAL () {3;}' unless defined(&PSTN_PULSE_DIAL);
    eval 'sub PHONE_WINK_DURATION () { &_IOW (ord(\'q\'), 0xa6, \'int\');}' unless defined(&PHONE_WINK_DURATION);
    eval 'sub PHONE_WINK () { &_IOW (ord(\'q\'), 0xaa, \'int\');}' unless defined(&PHONE_WINK);
    eval("sub G723_63 () { 1; }") unless defined(&G723_63);
    eval("sub G723_53 () { 2; }") unless defined(&G723_53);
    eval("sub TS85 () { 3; }") unless defined(&TS85);
    eval("sub TS48 () { 4; }") unless defined(&TS48);
    eval("sub TS41 () { 5; }") unless defined(&TS41);
    eval("sub G728 () { 6; }") unless defined(&G728);
    eval("sub G729 () { 7; }") unless defined(&G729);
    eval("sub ULAW () { 8; }") unless defined(&ULAW);
    eval("sub ALAW () { 9; }") unless defined(&ALAW);
    eval("sub LINEAR16 () { 10; }") unless defined(&LINEAR16);
    eval("sub LINEAR8 () { 11; }") unless defined(&LINEAR8);
    eval("sub WSS () { 12; }") unless defined(&WSS);
    eval("sub G729B () { 13; }") unless defined(&G729B);
    eval 'sub PHONE_QUERY_CODEC () { &_IOWR (ord(\'q\'), 0xa7, \'struct phone_codec_data\' *);}' unless defined(&PHONE_QUERY_CODEC);
    eval 'sub PHONE_PSTN_LINETEST () { &_IO (ord(\'q\'), 0xa8);}' unless defined(&PHONE_PSTN_LINETEST);
    eval 'sub PHONE_VAD () { &_IOW (ord(\'q\'), 0xa9, \'int\');}' unless defined(&PHONE_VAD);
}
1;
