Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dumprequest.h
Go to the documentation of this file.
1 /*
2  * Line6 Linux USB driver - 0.9.1beta
3  *
4  * Copyright (C) 2004-2010 Markus Grabner ([email protected])
5  *
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.
9  *
10  */
11 
12 #ifndef DUMPREQUEST_H
13 #define DUMPREQUEST_H
14 
15 #include <linux/usb.h>
16 #include <linux/wait.h>
17 #include <sound/core.h>
18 
19 enum {
22 };
23 
28  unsigned char *buffer;
29 
33  size_t length;
34 };
35 
45 
53 
58 };
59 
60 extern void line6_dump_finished(struct line6_dump_request *l6dr);
61 extern int line6_dump_request_async(struct line6_dump_request *l6dr,
62  struct usb_line6 *line6, int num, int dest);
63 extern void line6_dump_started(struct line6_dump_request *l6dr, int dest);
64 extern void line6_dumpreq_destruct(struct line6_dump_request *l6dr);
65 extern void line6_dumpreq_destructbuf(struct line6_dump_request *l6dr, int num);
66 extern int line6_dumpreq_init(struct line6_dump_request *l6dr, const void *buf,
67  size_t len);
68 extern int line6_dumpreq_initbuf(struct line6_dump_request *l6dr,
69  const void *buf, size_t len, int num);
70 extern void line6_invalidate_current(struct line6_dump_request *l6dr);
71 extern void line6_dump_wait(struct line6_dump_request *l6dr);
72 extern int line6_dump_wait_interruptible(struct line6_dump_request *l6dr);
73 extern int line6_dump_wait_timeout(struct line6_dump_request *l6dr,
74  long timeout);
75 
76 #endif