1 /****************************************************************************** 2 * 3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved. 4 * 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. 8 * 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 12 * more details. 13 * 14 ******************************************************************************/ 15 16 #ifndef __OSDEP_INTF_H_ 17 #define __OSDEP_INTF_H_ 18 19 #include <osdep_service.h> 20 #include <drv_types.h> 21 22 extern char *rtw_initmac; 23 extern int rtw_mc2u_disable; 24 25 u8 rtw_init_drv_sw(struct adapter *padapter); 26 u8 rtw_free_drv_sw(struct adapter *padapter); 27 u8 rtw_reset_drv_sw(struct adapter *padapter); 28 29 void rtw_stop_drv_threads (struct adapter *padapter); 30 void rtw_cancel_all_timer(struct adapter *padapter); 31 32 int rtw_ioctl(struct net_device *dev, struct ifreq *rq, int cmd); 33 34 int rtw_init_netdev_name(struct net_device *pnetdev, const char *ifname); 35 struct net_device *rtw_init_netdev(struct adapter *padapter); 36 u16 rtw_recv_select_queue(struct sk_buff *skb); 37 38 int pm_netdev_open(struct net_device *pnetdev, u8 bnormal); 39 void rtw_ips_dev_unload(struct adapter *padapter); 40 int rtw_ips_pwr_up(struct adapter *padapter); 41 void rtw_ips_pwr_down(struct adapter *padapter); 42 43 #endif /* _OSDEP_INTF_H_ */ 44