ARCv2: SLC: Make sure busy bit is set properly for region ops
[linux/fpc-iii.git] / sound / usb / line6 / midibuf.h
blob6ea21ffb662715a54dc5aa39bba78ff3196c671b
1 /*
2 * Line 6 Linux USB driver
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.
12 #ifndef MIDIBUF_H
13 #define MIDIBUF_H
15 struct midi_buffer {
16 unsigned char *buf;
17 int size;
18 int split;
19 int pos_read, pos_write;
20 int full;
21 int command_prev;
24 extern int line6_midibuf_bytes_used(struct midi_buffer *mb);
25 extern int line6_midibuf_bytes_free(struct midi_buffer *mb);
26 extern void line6_midibuf_destroy(struct midi_buffer *mb);
27 extern int line6_midibuf_ignore(struct midi_buffer *mb, int length);
28 extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split);
29 extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data,
30 int length);
31 extern void line6_midibuf_reset(struct midi_buffer *mb);
32 extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
33 int length);
35 #endif