1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 #ifndef __USBPIPE_H__
17 #define __USBPIPE_H__
18
19 #include "device.h"
20
21 #define VNT_REG_BLOCK_SIZE 64
22
23 int vnt_control_out(struct vnt_private *priv, u8 request, u16 value,
24 u16 index, u16 length, u8 *buffer);
25 int vnt_control_in(struct vnt_private *priv, u8 request, u16 value,
26 u16 index, u16 length, u8 *buffer);
27
28 int vnt_control_out_u8(struct vnt_private *priv, u8 reg, u8 ref_off, u8 data);
29 int vnt_control_in_u8(struct vnt_private *priv, u8 reg, u8 reg_off, u8 *data);
30
31 int vnt_control_out_blocks(struct vnt_private *priv,
32 u16 block, u8 reg, u16 len, u8 *data);
33
34 int vnt_start_interrupt_urb(struct vnt_private *priv);
35 int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb);
36 int vnt_tx_context(struct vnt_private *priv,
37 struct vnt_usb_send_context *context);
38
39 #endif