gaudi.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /* SPDX-License-Identifier: GPL-2.0
  2. *
  3. * Copyright 2018-2020 HabanaLabs, Ltd.
  4. * All Rights Reserved.
  5. *
  6. */
  7. #ifndef GAUDI_H
  8. #define GAUDI_H
  9. #define SRAM_BAR_ID 0
  10. #define CFG_BAR_ID 2
  11. #define HBM_BAR_ID 4
  12. #define SRAM_BAR_SIZE 0x4000000ull /* 64MB */
  13. #define CFG_BAR_SIZE 0x8000000ull /* 128MB */
  14. #define CFG_BASE 0x7FFC000000ull
  15. #define CFG_SIZE 0x4000000 /* 32MB CFG + 32MB DBG*/
  16. #define SRAM_BASE_ADDR 0x7FF0000000ull
  17. #define SRAM_SIZE 0x1400000 /* 20MB */
  18. #define SPI_FLASH_BASE_ADDR 0x7FF8000000ull
  19. #define PSOC_SCRATCHPAD_ADDR 0x7FFBFE0000ull
  20. #define PSOC_SCRATCHPAD_SIZE 0x10000 /* 64KB */
  21. #define PCIE_FW_SRAM_ADDR 0x7FFBFF0000ull
  22. #define PCIE_FW_SRAM_SIZE 0x8000 /* 32KB */
  23. #define DRAM_PHYS_BASE 0x0ull
  24. #define HOST_PHYS_BASE 0x8000000000ull /* 0.5TB */
  25. #define HOST_PHYS_SIZE 0x1000000000000ull /* 0.25PB (48 bits) */
  26. #define GAUDI_MSI_ENTRIES 32
  27. #define QMAN_PQ_ENTRY_SIZE 16 /* Bytes */
  28. #define MAX_ASID 2
  29. #define PROT_BITS_OFFS 0xF80
  30. #define MME_NUMBER_OF_MASTER_ENGINES 2
  31. #define MME_NUMBER_OF_SLAVE_ENGINES 2
  32. #define TPC_NUMBER_OF_ENGINES 8
  33. #define DMA_NUMBER_OF_CHANNELS 8
  34. #define NIC_NUMBER_OF_MACROS 5
  35. #define NIC_NUMBER_OF_ENGINES (NIC_NUMBER_OF_MACROS * 2)
  36. #define NUMBER_OF_IF 8
  37. #define DEVICE_CACHE_LINE_SIZE 128
  38. #endif /* GAUDI_H */