summaryrefslogtreecommitdiff
path: root/ztdummy.h
diff options
context:
space:
mode:
Diffstat (limited to 'ztdummy.h')
-rwxr-xr-xztdummy.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/ztdummy.h b/ztdummy.h
index 2f1c102..19b306b 100755
--- a/ztdummy.h
+++ b/ztdummy.h
@@ -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;