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 ******************************************************************************/
21 #ifndef __OSDEP_INTF_H_
22 #define __OSDEP_INTF_H_
24 #include <osdep_service.h>
25 #include <drv_types.h>
27 extern char *rtw_initmac;
28 extern int rtw_mc2u_disable;
30 u8 rtw_init_drv_sw(struct adapter *padapter);
31 u8 rtw_free_drv_sw(struct adapter *padapter);
32 u8 rtw_reset_drv_sw(struct adapter *padapter);
34 void rtw_stop_drv_threads (struct adapter *padapter);
35 void rtw_cancel_all_timer(struct adapter *padapter);
37 int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd);
39 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname);
40 struct net_device *rtw_init_netdev(struct adapter *padapter);
41 u16 rtw_recv_select_queue(struct sk_buff *skb);
42 void rtw_proc_remove_one(struct net_device *dev);
44 int pm_netdev_open(struct net_device *pnetdev, u8 bnormal);
45 void rtw_ips_dev_unload(struct adapter *padapter);
46 int rtw_ips_pwr_up(struct adapter *padapter);
47 void rtw_ips_pwr_down(struct adapter *padapter);
49 #endif /* _OSDEP_INTF_H_ */