2 * Line6 Linux USB driver - 0.9.1beta
4 * Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License as
8 * published by the Free Software Foundation, version 2.
15 #include <linux/interrupt.h>
16 #include <linux/spinlock.h>
17 #include <linux/usb.h>
19 #include <sound/core.h>
22 #include "dumprequest.h"
27 #define PODXTLIVE_INTERFACE_POD 0
28 #define PODXTLIVE_INTERFACE_VARIAX 1
31 Locate name in binary program dump
33 #define POD_NAME_OFFSET 0
34 #define POD_NAME_LENGTH 16
39 #define POD_CONTROL_SIZE 0x80
40 #define POD_BUFSIZE_DUMPREQ 7
41 #define POD_STARTUP_DELAY 1000
44 Stages of POD startup procedure
49 POD_STARTUP_VERSIONREQ,
50 POD_STARTUP_WORKQUEUE,
52 POD_STARTUP_LAST = POD_STARTUP_SETUP - 1
55 struct usb_line6_pod {
57 Generic Line6 USB data.
59 struct usb_line6 line6;
62 Dump request structure.
64 struct line6_dump_request dumpreq;
67 Instrument monitor level.
72 Timer for device initializaton.
74 struct timer_list startup_timer;
77 Work handler for device initializaton.
79 struct work_struct startup_work;
82 Current progress in startup procedure.
89 unsigned long atomic_flags;
92 Serial number of device.
97 Firmware version (x 100).
107 extern void line6_pod_disconnect(struct usb_interface *interface);
108 extern int line6_pod_init(struct usb_interface *interface,
109 struct usb_line6_pod *pod);
110 extern void line6_pod_process_message(struct usb_line6_pod *pod);
111 extern void line6_pod_transmit_parameter(struct usb_line6_pod *pod, int param,