halmac_88xx_cfg.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /******************************************************************************
  2. *
  3. * Copyright(c) 2016 - 2018 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. #ifndef _HALMAC_88XX_CFG_H_
  16. #define _HALMAC_88XX_CFG_H_
  17. #include "../halmac_api.h"
  18. #if HALMAC_88XX_SUPPORT
  19. #define TX_PAGE_SIZE_88XX 128
  20. #define TX_PAGE_SIZE_SHIFT_88XX 7 /* 128 = 2^7 */
  21. #define TX_ALIGN_SIZE_88XX 8
  22. #define SDIO_TX_MAX_SIZE_88XX 31744
  23. #define RX_BUF_FW_88XX 12288
  24. #define TX_DESC_SIZE_88XX 48
  25. #define RX_DESC_SIZE_88XX 24
  26. #define H2C_PKT_SIZE_88XX 32 /* Only support 32 byte packet now */
  27. #define H2C_PKT_HDR_SIZE_88XX 8
  28. #define C2H_DATA_OFFSET_88XX 10
  29. #define C2H_PKT_BUF_88XX 256
  30. /* HW memory address */
  31. #define OCPBASE_TXBUF_88XX 0x18780000
  32. #define OCPBASE_DMEM_88XX 0x00200000
  33. #define OCPBASE_EMEM_88XX 0x00100000
  34. #endif /* HALMAC_88XX_SUPPORT */
  35. #endif