osdep_intf.h 1.8 KB

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