rtw_mem.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 __RTW_MEM_H__
  21. #define __RTW_MEM_H__
  22. #include <drv_conf.h>
  23. #include <basic_types.h>
  24. #include <osdep_service.h>
  25. #ifdef CONFIG_PLATFORM_MSTAR_HIGH
  26. #define MAX_RTKM_RECVBUF_SZ (31744) /* 31k */
  27. #else
  28. #define MAX_RTKM_RECVBUF_SZ (15360) /* 15k */
  29. #endif /* CONFIG_PLATFORM_MSTAR_HIGH */
  30. #define MAX_RTKM_NR_PREALLOC_RECV_SKB 16
  31. u16 rtw_rtkm_get_buff_size(void);
  32. u8 rtw_rtkm_get_nr_recv_skb(void);
  33. struct u8 *rtw_alloc_revcbuf_premem(void);
  34. struct sk_buff *rtw_alloc_skb_premem(u16 in_size);
  35. int rtw_free_skb_premem(struct sk_buff *pskb);
  36. #endif /* __RTW_MEM_H__ */