Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /******************************************************************************
0003  *
0004  * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved.
0005  *
0006  * Modifications for inclusion into the Linux staging tree are
0007  * Copyright(c) 2010 Larry Finger. All rights reserved.
0008  *
0009  * Contact information:
0010  * WLAN FAE <wlanfae@realtek.com>
0011  * Larry Finger <Larry.Finger@lwfinger.net>
0012  *
0013  ******************************************************************************/
0014 #ifndef __OSDEP_INTF_H_
0015 #define __OSDEP_INTF_H_
0016 
0017 #include "osdep_service.h"
0018 #include "drv_types.h"
0019 
0020 #define RND4(x) (((x >> 2) + ((x & 3) != 0)) << 2)
0021 
0022 struct intf_priv {
0023     u8 *intf_dev;
0024     /* when in USB, IO is through interrupt in/out endpoints */
0025     struct usb_device *udev;
0026     struct urb *piorw_urb;
0027     struct completion io_retevt_comp;
0028 };
0029 
0030 int r871x_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
0031 
0032 #endif  /*_OSDEP_INTF_H_*/