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:
parent
9ac8709cef
commit
e755ecb584
@ -6,8 +6,8 @@
|
||||
#define _USBKIT_H
|
||||
|
||||
#include <SupportDefs.h>
|
||||
#include <USB3.h>
|
||||
#include <USB_spec.h>
|
||||
#include <USB_isochronous.h>
|
||||
|
||||
|
||||
class BUSBRoster;
|
||||
|
@ -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
|
||||
|
||||
|
19
headers/os/drivers/USB_isochronous.h
Normal file
19
headers/os/drivers/USB_isochronous.h
Normal 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 */
|
Loading…
Reference in New Issue
Block a user