18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 28c2ecf20Sopenharmony_ci * 38c2ecf20Sopenharmony_ci * Copyright 2016-2019 HabanaLabs, Ltd. 48c2ecf20Sopenharmony_ci * All Rights Reserved. 58c2ecf20Sopenharmony_ci * 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef GOYA_H 98c2ecf20Sopenharmony_ci#define GOYA_H 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci#define SRAM_CFG_BAR_ID 0 128c2ecf20Sopenharmony_ci#define MSIX_BAR_ID 2 138c2ecf20Sopenharmony_ci#define DDR_BAR_ID 4 148c2ecf20Sopenharmony_ci 158c2ecf20Sopenharmony_ci#define CFG_BAR_SIZE 0x10000000ull /* 256MB */ 168c2ecf20Sopenharmony_ci#define MSIX_BAR_SIZE 0x1000ull /* 4KB */ 178c2ecf20Sopenharmony_ci 188c2ecf20Sopenharmony_ci#define CFG_BASE 0x7FFC000000ull 198c2ecf20Sopenharmony_ci#define CFG_SIZE 0x4000000 /* 32MB CFG + 32MB DBG*/ 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ci#define SRAM_BASE_ADDR 0x7FF0000000ull 228c2ecf20Sopenharmony_ci#define SRAM_SIZE 0x32A0000 /* 50.625MB */ 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#define DRAM_PHYS_BASE 0x0ull 258c2ecf20Sopenharmony_ci 268c2ecf20Sopenharmony_ci#define HOST_PHYS_BASE 0x8000000000ull /* 0.5TB */ 278c2ecf20Sopenharmony_ci#define HOST_PHYS_SIZE 0x1000000000000ull /* 0.25PB (48 bits) */ 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ci#define GOYA_MSIX_ENTRIES 8 308c2ecf20Sopenharmony_ci 318c2ecf20Sopenharmony_ci#define QMAN_PQ_ENTRY_SIZE 16 /* Bytes */ 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ci#define MAX_ASID 1024 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ci#define PROT_BITS_OFFS 0xF80 368c2ecf20Sopenharmony_ci 378c2ecf20Sopenharmony_ci#define DMA_MAX_NUM 5 388c2ecf20Sopenharmony_ci 398c2ecf20Sopenharmony_ci#define TPC_MAX_NUM 8 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ci#define MME_MAX_NUM 1 428c2ecf20Sopenharmony_ci 438c2ecf20Sopenharmony_ci#endif /* GOYA_H */ 44