1 // SPDX-License-Identifier: GPL-2.0+ 2 /* 3 * Copyright (c) 1996, 2003 VIA Networking Technologies, Inc. 4 * All rights reserved. 5 * 6 * File: usbpipe.h 7 * 8 * Purpose: 9 * 10 * Author: Warren Hsu 11 * 12 * Date: Mar. 30, 2005 13 * 14 */ 15 16 #ifndef __USBPIPE_H__ 17 #define __USBPIPE_H__ 18 19 #include "device.h" 20 21 int vnt_control_out(struct vnt_private *priv, u8 request, u16 value, 22 u16 index, u16 length, u8 *buffer); 23 int vnt_control_in(struct vnt_private *priv, u8 request, u16 value, 24 u16 index, u16 length, u8 *buffer); 25 26 void vnt_control_out_u8(struct vnt_private *priv, u8 reg, u8 ref_off, u8 data); 27 void vnt_control_in_u8(struct vnt_private *priv, u8 reg, u8 reg_off, u8 *data); 28 29 int vnt_start_interrupt_urb(struct vnt_private *priv); 30 int vnt_submit_rx_urb(struct vnt_private *priv, struct vnt_rcb *rcb); 31 int vnt_tx_context(struct vnt_private *priv, 32 struct vnt_usb_send_context *context); 33 34 #endif /* __USBPIPE_H__ */ 35