ipa_ram_mmap.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #ifndef _IPA_RAM_MMAP_H_
  13. #define _IPA_RAM_MMAP_H_
  14. /*
  15. * This header defines the memory map of the IPA RAM (not all 8K is available
  16. * for SW use)
  17. */
  18. #define IPA_RAM_NAT_OFST 0
  19. #define IPA_RAM_NAT_SIZE 0
  20. #define IPA_RAM_HDR_OFST (IPA_RAM_NAT_OFST + IPA_RAM_NAT_SIZE)
  21. #define IPA_RAM_HDR_SIZE 1664
  22. #define IPA_RAM_V4_FLT_OFST (IPA_RAM_HDR_OFST + IPA_RAM_HDR_SIZE)
  23. #define IPA_RAM_V4_FLT_SIZE 2176
  24. #define IPA_RAM_V4_RT_OFST (IPA_RAM_V4_FLT_OFST + IPA_RAM_V4_FLT_SIZE)
  25. #define IPA_RAM_V4_RT_SIZE 512
  26. #define IPA_RAM_V6_FLT_OFST (IPA_RAM_V4_RT_OFST + IPA_RAM_V4_RT_SIZE)
  27. #define IPA_RAM_V6_FLT_SIZE 1792
  28. #define IPA_RAM_V6_RT_OFST (IPA_RAM_V6_FLT_OFST + IPA_RAM_V6_FLT_SIZE)
  29. #define IPA_RAM_V6_RT_SIZE 512
  30. #define IPA_RAM_END_OFST (IPA_RAM_V6_RT_OFST + IPA_RAM_V6_RT_SIZE)
  31. #define IPA_RAM_V6_RT_SIZE_DDR 16384
  32. #define IPA_RAM_V4_RT_SIZE_DDR 16384
  33. #endif /* _IPA_RAM_MMAP_H_ */