diff options
author | matteo <matteo@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-02-24 06:00:31 +0000 |
---|---|---|
committer | matteo <matteo@5390a7c7-147a-4af0-8ec9-7488f05a26cb> | 2003-02-24 06:00:31 +0000 |
commit | b574418782d181cbd69a271704d8d3f3a3d38fb6 (patch) | |
tree | ad59f16dc60d92c9e6c8371347a9ab96c09ebc42 /ztdummy.h | |
parent | 29117b53a69aac3bd45cec6138603e36cd265fd0 (diff) |
Mon Feb 24 07:00:01 CET 2003
git-svn-id: http://svn.digium.com/svn/zaptel/trunk@150 5390a7c7-147a-4af0-8ec9-7488f05a26cb
Diffstat (limited to 'ztdummy.h')
-rwxr-xr-x | ztdummy.h | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -24,6 +24,11 @@ * */ +#include <linux/version.h> +#if LINUX_VERSION_CODE > KERNEL_VERSION(2,4,19) +#define USB2420 +#endif + struct ztdummy { struct zt_span span; struct zt_chan chan; @@ -69,8 +74,13 @@ typedef struct { dma_addr_t setup_packet_dma; dma_addr_t transfer_buffer_dma; unsigned long started; - urb_t *next_queued_urb; // next queued urb for this EP - urb_t *prev_queued_urb; +#ifdef USB2420 + struct urb *next_queued_urb; // next queued urb for this EP + struct urb *prev_queued_urb; +#else + urb_t *next_queued_urb; + urb_t *prev_queued_urb; +#endif uhci_desc_t *bottom_qh; uhci_desc_t *next_qh; // next helper QH char use_loop; |