1 /******************************************************************************
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of version 2 of the GNU General Public License as
7 * published by the Free Software Foundation.
9 * This program is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
14 * You should have received a copy of the GNU General Public License along with
15 * this program; if not, write to the Free Software Foundation, Inc.,
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
19 ******************************************************************************/
20 #ifndef __USB_OSINTF_H
21 #define __USB_OSINTF_H
23 #include <osdep_service.h>
24 #include <drv_types.h>
25 #include <usb_vendor_req.h>
27 extern char *rtw_initmac;
28 extern int rtw_mc2u_disable;
30 #define USBD_HALTED(Status) ((u32)(Status) >> 30 == 3)
32 u8 usbvendorrequest(struct dvobj_priv *pdvobjpriv, enum bt_usb_request brequest,
33 enum rt_usb_wvalue wvalue, u8 windex, void *data,
34 u8 datalen, u8 isdirectionin);
35 int pm_netdev_open(struct net_device *pnetdev, u8 bnormal);
36 void netdev_br_init(struct net_device *netdev);
37 void dhcp_flag_bcast(struct adapter *priv, struct sk_buff *skb);
38 void *scdb_findEntry(struct adapter *priv, unsigned char *macAddr,
39 unsigned char *ipAddr);
40 void nat25_db_expire(struct adapter *priv);
41 int nat25_db_handle(struct adapter *priv, struct sk_buff *skb, int method);
43 int rtw_resume_process(struct adapter *padapter);