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