1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /****************************************************************************** 3 * 4 * Copyright(c) 2007 - 2010 Realtek Corporation. All rights reserved. 5 * 6 * Modifications for inclusion into the Linux staging tree are 7 * Copyright(c) 2010 Larry Finger. All rights reserved. 8 * 9 * Contact information: 10 * WLAN FAE <wlanfae@realtek.com> 11 * Larry Finger <Larry.Finger@lwfinger.net> 12 * 13 ******************************************************************************/ 14 #ifndef __OSDEP_INTF_H_ 15 #define __OSDEP_INTF_H_ 16 17 #include "osdep_service.h" 18 #include "drv_types.h" 19 20 #define RND4(x) (((x >> 2) + (((x & 3) == 0) ? 0 : 1)) << 2) 21 22 struct intf_priv { 23 u8 *intf_dev; 24 /* when in USB, IO is through interrupt in/out endpoints */ 25 struct usb_device *udev; 26 struct urb *piorw_urb; 27 struct completion io_retevt_comp; 28 }; 29 30 int r871x_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 31 32 #endif /*_OSDEP_INTF_H_*/