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.
16 #include <linux/usb.h>
17 #include <linux/wait.h>
19 #include <sound/core.h>
28 struct line6_dump_reqbuf {
30 Buffer for dump requests.
32 unsigned char *buffer;
41 Provides the functionality to request channel/model/... dump data from a
44 struct line6_dump_request {
46 Wait queue for access to program dump data.
48 wait_queue_head_t wait;
51 Indicates an unfinished program dump request.
53 1: dump current settings
54 Other device-specific values are also allowed.
59 Timer for delayed dump request.
61 struct timer_list timer;
64 Flag if initial dump request has been successful.
71 struct line6_dump_reqbuf reqbufs[1];
74 extern void line6_dump_finished(struct line6_dump_request *l6dr);
75 extern int line6_dump_request_async(struct line6_dump_request *l6dr,
76 struct usb_line6 *line6, int num);
77 extern void line6_dump_started(struct line6_dump_request *l6dr, int dest);
78 extern void line6_dumpreq_destruct(struct line6_dump_request *l6dr);
79 extern void line6_dumpreq_destructbuf(struct line6_dump_request *l6dr, int num);
80 extern int line6_dumpreq_init(struct line6_dump_request *l6dr, const void *buf,
82 extern int line6_dumpreq_initbuf(struct line6_dump_request *l6dr,
83 const void *buf, size_t len, int num);
84 extern void line6_invalidate_current(struct line6_dump_request *l6dr);
85 extern void line6_startup_delayed(struct line6_dump_request *l6dr, int seconds,
86 void (*function)(unsigned long), void *data);
87 extern int line6_wait_dump(struct line6_dump_request *l6dr, int nonblock);