mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-25 22:15:40 +07:00
a10e763b87
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation version 2 extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 135 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190531081036.435762997@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
32 lines
897 B
C
32 lines
897 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Line 6 Linux USB driver
|
|
*
|
|
* Copyright (C) 2004-2010 Markus Grabner (grabner@icg.tugraz.at)
|
|
*/
|
|
|
|
#ifndef MIDIBUF_H
|
|
#define MIDIBUF_H
|
|
|
|
struct midi_buffer {
|
|
unsigned char *buf;
|
|
int size;
|
|
int split;
|
|
int pos_read, pos_write;
|
|
int full;
|
|
int command_prev;
|
|
};
|
|
|
|
extern int line6_midibuf_bytes_used(struct midi_buffer *mb);
|
|
extern int line6_midibuf_bytes_free(struct midi_buffer *mb);
|
|
extern void line6_midibuf_destroy(struct midi_buffer *mb);
|
|
extern int line6_midibuf_ignore(struct midi_buffer *mb, int length);
|
|
extern int line6_midibuf_init(struct midi_buffer *mb, int size, int split);
|
|
extern int line6_midibuf_read(struct midi_buffer *mb, unsigned char *data,
|
|
int length);
|
|
extern void line6_midibuf_reset(struct midi_buffer *mb);
|
|
extern int line6_midibuf_write(struct midi_buffer *mb, unsigned char *data,
|
|
int length);
|
|
|
|
#endif
|