GUI: Fix Tomato RAF theme for all builds. Compilation typo.
[tomato.git] / release / src-rt-6.x.4708 / linux / linux-2.6.36 / drivers / staging / line6 / variax.h
blobee330ba308986c3ce6f1f03ee2379fc069842731
1 /*
2 * Line6 Linux USB driver - 0.8.0
4 * Copyright (C) 2004-2009 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.
12 #ifndef VARIAX_H
13 #define VARIAX_H
16 #include "driver.h"
18 #include <linux/spinlock.h>
19 #include <linux/usb.h>
20 #include <linux/wait.h>
22 #include <sound/core.h>
24 #include "dumprequest.h"
27 #define VARIAX_ACTIVATE_DELAY 10
28 #define VARIAX_STARTUP_DELAY 3
31 enum {
32 VARIAX_DUMP_PASS1 = LINE6_DUMP_CURRENT,
33 VARIAX_DUMP_PASS2,
34 VARIAX_DUMP_PASS3
38 /**
39 Binary Variax model dump
41 struct variax_model {
42 /**
43 Header information (including program name).
45 unsigned char name[18];
47 /**
48 Model parameters.
50 unsigned char control[78 * 2];
53 struct usb_line6_variax {
54 /**
55 Generic Line6 USB data.
57 struct usb_line6 line6;
59 /**
60 Dump request structure.
61 Append two extra buffers for 3-pass data query.
63 struct line6_dump_request dumpreq; struct line6_dump_reqbuf extrabuf[2];
65 /**
66 Buffer for activation code.
68 unsigned char *buffer_activate;
70 /**
71 Model number.
73 int model;
75 /**
76 Current model settings.
78 struct variax_model model_data;
80 /**
81 Name of current model bank.
83 unsigned char bank[18];
85 /**
86 Position of volume dial.
88 int volume;
90 /**
91 Position of tone control dial.
93 int tone;
95 /**
96 Timer for delayed activation request.
98 struct timer_list activate_timer;
102 extern void variax_disconnect(struct usb_interface *interface);
103 extern int variax_init(struct usb_interface *interface,
104 struct usb_line6_variax *variax);
105 extern void variax_process_message(struct usb_line6_variax *variax);
108 #endif