1 /*
2  * Copyright (c) 2018 Intel Corporation
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef ZEPHYR_INCLUDE_USB_DEVICE_BOS_DESC_H_
8 #define ZEPHYR_INCLUDE_USB_DEVICE_BOS_DESC_H_
9 
10 #include <stdint.h>
11 #include <zephyr/usb/usb_ch9.h>
12 
13 size_t usb_bos_get_length(void);
14 
15 void usb_bos_fix_total_length(void);
16 
17 const void *usb_bos_get_header(void);
18 
19 #if defined(CONFIG_USB_DEVICE_BOS)
20 int usb_handle_bos(struct usb_setup_packet *setup, int32_t *len, uint8_t **data);
21 #else
22 #define usb_handle_bos(x, y, z)		-ENOTSUP
23 #endif
24 
25 #endif	/* ZEPHYR_INCLUDE_USB_DEVICE_BOS_DESC_H_ */
26