X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Ftelephony%2Fixj.h;h=ad23b28e6f7ff81a6cf52b789f4a10e48ef4956d;hb=9bf4aaab3e101692164d49b7ca357651eb691cb6;hp=aa51222316f848582699674d79b6112246ed5648;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/drivers/telephony/ixj.h b/drivers/telephony/ixj.h index aa5122231..ad23b28e6 100644 --- a/drivers/telephony/ixj.h +++ b/drivers/telephony/ixj.h @@ -1166,6 +1166,12 @@ typedef struct { * ******************************************************************************/ +typedef struct { + int elements_used; + IXJ_CADENCE_TERM termination; + IXJ_CADENCE_ELEMENT *ce; +} ixj_cadence; + typedef struct { struct phone_device p; struct timer_list timer; @@ -1198,22 +1204,13 @@ typedef struct { int aec_level; int cid_play_aec_level; int readers, writers; -#if LINUX_VERSION_CODE < 0x020400 - struct wait_queue *poll_q; - struct wait_queue *read_q; -#else wait_queue_head_t poll_q; wait_queue_head_t read_q; -#endif char *read_buffer, *read_buffer_end; char *read_convert_buffer; size_t read_buffer_size; unsigned int read_buffer_ready; -#if LINUX_VERSION_CODE < 0x020400 - struct wait_queue *write_q; -#else wait_queue_head_t write_q; -#endif char *write_buffer, *write_buffer_end; char *write_convert_buffer; size_t write_buffer_size; @@ -1229,8 +1226,8 @@ typedef struct { char tone_index; char tone_state; char maxrings; - IXJ_CADENCE *cadence_t; - IXJ_CADENCE *cadence_r; + ixj_cadence *cadence_t; + ixj_cadence *cadence_r; int tone_cadence_state; IXJ_CADENCE_F cadence_f[6]; DTMF dtmf;