blob: 3e96b8ffe47d66422daf9d25f426f9f9d997d414 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferrisba8d4f42014-09-03 19:56:49 -07007#ifndef _UAPI_LINUX_USBIP_H
8#define _UAPI_LINUX_USBIP_H
9enum usbip_device_status {
Tao Baod7db5942015-01-28 10:07:51 -080010 SDEV_ST_AVAILABLE = 0x01,
Tao Baod7db5942015-01-28 10:07:51 -080011 SDEV_ST_USED,
12 SDEV_ST_ERROR,
13 VDEV_ST_NULL,
14 VDEV_ST_NOTASSIGNED,
Tao Baod7db5942015-01-28 10:07:51 -080015 VDEV_ST_USED,
16 VDEV_ST_ERROR
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070017};
Christopher Ferris6cd53a52022-12-12 23:39:16 +000018#define USBIP_URB_SHORT_NOT_OK 0x0001
19#define USBIP_URB_ISO_ASAP 0x0002
20#define USBIP_URB_NO_TRANSFER_DMA_MAP 0x0004
21#define USBIP_URB_ZERO_PACKET 0x0040
22#define USBIP_URB_NO_INTERRUPT 0x0080
23#define USBIP_URB_FREE_BUFFER 0x0100
24#define USBIP_URB_DIR_IN 0x0200
25#define USBIP_URB_DIR_OUT 0
26#define USBIP_URB_DIR_MASK USBIP_URB_DIR_IN
27#define USBIP_URB_DMA_MAP_SINGLE 0x00010000
28#define USBIP_URB_DMA_MAP_PAGE 0x00020000
29#define USBIP_URB_DMA_MAP_SG 0x00040000
30#define USBIP_URB_MAP_LOCAL 0x00080000
31#define USBIP_URB_SETUP_MAP_SINGLE 0x00100000
32#define USBIP_URB_SETUP_MAP_LOCAL 0x00200000
33#define USBIP_URB_DMA_SG_COMBINED 0x00400000
34#define USBIP_URB_ALIGNED_TEMP_BUFFER 0x00800000
Christopher Ferrisba8d4f42014-09-03 19:56:49 -070035#endif