47000651b5
documentation found in those headers - this stuff should go into the Haiku Book instead (although I'm not even sure the USB_rle.h, and midi_driver.h are really needed any longer). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32901 a95241bf-73f2-0310-859d-f6bbb57e9c96
36 lines
560 B
C
36 lines
560 B
C
/*
|
|
* Copyright 2009, Haiku Inc. All Rights Reserved.
|
|
* Distributed under the terms of the MIT License.
|
|
*/
|
|
#ifndef _USB_RLE_H
|
|
#define _USB_RLE_H
|
|
|
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
struct _usbd_param_hdr;
|
|
|
|
|
|
/* Run length encoding for isochronous in transfers */
|
|
|
|
#define RLE_GOOD 1
|
|
#define RLE_BAD 2
|
|
#define RLE_MISSING 3
|
|
#define RLE_UNKNOWN 4
|
|
|
|
/* data buffer state */
|
|
typedef struct rle {
|
|
uint16 rle_status;
|
|
uint16 sample_count;
|
|
} rle;
|
|
|
|
typedef struct rlea {
|
|
uint16 length;
|
|
uint16 num_valid;
|
|
rle rles[1];
|
|
} rlea;
|
|
|
|
|
|
#endif /* _USB_RLE_H */
|