root/drivers/staging/vt6656/usbpipe.h

/* [<][>][^][v][top][bottom][index][help] */

INCLUDED FROM


   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 #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 /* __USBPIPE_H__ */

/* [<][>][^][v][top][bottom][index][help] */