forked from cezanne/usbip-win
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstub_usbd.h
29 lines (20 loc) · 1.33 KB
/
stub_usbd.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include "stub_dev.h"
#include "usbip_proto.h"
#include "usb_util.h"
BOOLEAN get_usb_status(usbip_stub_dev_t *devstub, USHORT op, USHORT idx, PVOID buff, PUCHAR plen);
BOOLEAN get_usb_device_desc(usbip_stub_dev_t *devstub, PUSB_DEVICE_DESCRIPTOR pdesc);
BOOLEAN get_usb_desc(usbip_stub_dev_t *devstub, UCHAR descType, UCHAR idx, USHORT idLang, PVOID buff, ULONG *pbufflen);
BOOLEAN select_usb_conf(usbip_stub_dev_t *devstub, USHORT idx);
BOOLEAN select_usb_intf(usbip_stub_dev_t *devstub, UCHAR intf_num, USHORT alt_setting);
BOOLEAN reset_pipe(usbip_stub_dev_t *devstub, USBD_PIPE_HANDLE hPipe);
int set_feature(usbip_stub_dev_t *devstub, USHORT func, USHORT feature, USHORT index);
int submit_class_vendor_req(usbip_stub_dev_t *devstub, BOOLEAN is_in, USHORT cmd,
UCHAR rv, UCHAR request, USHORT value, USHORT index, PVOID data, PULONG plen);
NTSTATUS
submit_bulk_intr_transfer(usbip_stub_dev_t *devstub, USBD_PIPE_HANDLE hPipe, unsigned long seqnum, PVOID data, ULONG pdatalen, BOOLEAN is_in);
NTSTATUS
submit_iso_transfer(usbip_stub_dev_t *devstub, USBD_PIPE_HANDLE hPipe, unsigned long seqnum, ULONG usbd_flags, ULONG n_pkts, ULONG start_frame,
struct usbip_iso_packet_descriptor *iso_descs, PVOID data, ULONG datalen);
BOOLEAN
submit_control_transfer(usbip_stub_dev_t *devstub, usb_cspkt_t *csp, PVOID data, PULONG pdata_len);