USB: Move usb_iso_packet_descriptor to a separate header.
The USB Kit uses it, so this allows the USB Kit to stop including USB3.h. Change-Id: Ifde025ec41bef92013fda0440d60b7216cfdbe4a Reviewed-on: https://review.haiku-os.org/c/haiku/+/4413 Tested-by: Commit checker robot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
9ac8709cef
commit
e755ecb584
@@ -6,8 +6,8 @@
|
|||||||
#define _USBKIT_H
|
#define _USBKIT_H
|
||||||
|
|
||||||
#include <SupportDefs.h>
|
#include <SupportDefs.h>
|
||||||
#include <USB3.h>
|
|
||||||
#include <USB_spec.h>
|
#include <USB_spec.h>
|
||||||
|
#include <USB_isochronous.h>
|
||||||
|
|
||||||
|
|
||||||
class BUSBRoster;
|
class BUSBRoster;
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
#include <iovec.h>
|
#include <iovec.h>
|
||||||
|
|
||||||
#include <USB_spec.h>
|
#include <USB_spec.h>
|
||||||
|
#include <USB_isochronous.h>
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -73,12 +74,6 @@ struct usb_configuration_info {
|
|||||||
usb_interface_list *interface;
|
usb_interface_list *interface;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
int16 request_length;
|
|
||||||
int16 actual_length;
|
|
||||||
status_t status;
|
|
||||||
} usb_iso_packet_descriptor;
|
|
||||||
|
|
||||||
// Flags for queue_isochronous
|
// Flags for queue_isochronous
|
||||||
#define USB_ISO_ASAP 0x01
|
#define USB_ISO_ASAP 0x01
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
/*
|
||||||
|
* Copyright 2021, Haiku, Inc. All rights reserved.
|
||||||
|
* Distributed under the terms of the MIT License.
|
||||||
|
*/
|
||||||
|
#ifndef _USB_ISOCHRONOUS_H
|
||||||
|
#define _USB_ISOCHRONOUS_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <SupportDefs.h>
|
||||||
|
|
||||||
|
|
||||||
|
typedef struct {
|
||||||
|
int16 request_length;
|
||||||
|
int16 actual_length;
|
||||||
|
status_t status;
|
||||||
|
} usb_iso_packet_descriptor;
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* _USB_ISOCHRONOUS_H */
|
||||||
Reference in New Issue
Block a user