goya.h 854 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Copyright 2016-2019 HabanaLabs, Ltd.
  4. * All Rights Reserved.
  5. *
  6. */
  7. #ifndef GOYA_H
  8. #define GOYA_H
  9. #define SRAM_CFG_BAR_ID 0
  10. #define MSIX_BAR_ID 2
  11. #define DDR_BAR_ID 4
  12. #define CFG_BAR_SIZE 0x10000000ull /* 256MB */
  13. #define MSIX_BAR_SIZE 0x1000ull /* 4KB */
  14. #define CFG_BASE 0x7FFC000000ull
  15. #define CFG_SIZE 0x4000000 /* 32MB CFG + 32MB DBG*/
  16. #define SRAM_BASE_ADDR 0x7FF0000000ull
  17. #define SRAM_SIZE 0x32A0000 /* 50.625MB */
  18. #define DRAM_PHYS_BASE 0x0ull
  19. #define HOST_PHYS_BASE 0x8000000000ull /* 0.5TB */
  20. #define HOST_PHYS_SIZE 0x1000000000000ull /* 0.25PB (48 bits) */
  21. #define GOYA_MSIX_ENTRIES 8
  22. #define QMAN_PQ_ENTRY_SIZE 16 /* Bytes */
  23. #define MAX_ASID 2
  24. #define PROT_BITS_OFFS 0xF80
  25. #define DMA_MAX_NUM 5
  26. #define TPC_MAX_NUM 8
  27. #define MME_MAX_NUM 1
  28. #endif /* GOYA_H */