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 <no-reply+buildbot@haiku-os.org>
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
Augustin Cavalier 2021-09-01 15:33:26 -04:00 committed by waddlesplash
parent 9ac8709cef
commit e755ecb584
3 changed files with 21 additions and 7 deletions

View File

@ -6,8 +6,8 @@
#define _USBKIT_H
#include <SupportDefs.h>
#include <USB3.h>
#include <USB_spec.h>
#include <USB_isochronous.h>
class BUSBRoster;

View File

@ -13,6 +13,7 @@
#include <iovec.h>
#include <USB_spec.h>
#include <USB_isochronous.h>
#ifdef __cplusplus
extern "C" {
@ -73,12 +74,6 @@ struct usb_configuration_info {
usb_interface_list *interface;
};
typedef struct {
int16 request_length;
int16 actual_length;
status_t status;
} usb_iso_packet_descriptor;
// Flags for queue_isochronous
#define USB_ISO_ASAP 0x01

View File

@ -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 */