1 /* SPDX-License-Identifier: GPL-2.0
2  *
3  * Copyright 2016-2019 HabanaLabs, Ltd.
4  * All Rights Reserved.
5  *
6  */
7 
8 #ifndef INCLUDE_PCI_GENERAL_H_
9 #define INCLUDE_PCI_GENERAL_H_
10 
11 /* PCI CONFIGURATION SPACE */
12 #define mmPCI_CONFIG_ELBI_ADDR		0xFF0
13 #define mmPCI_CONFIG_ELBI_DATA		0xFF4
14 #define mmPCI_CONFIG_ELBI_CTRL		0xFF8
15 #define PCI_CONFIG_ELBI_CTRL_WRITE	(1 << 31)
16 
17 #define mmPCI_CONFIG_ELBI_STS		0xFFC
18 #define PCI_CONFIG_ELBI_STS_ERR		(1 << 30)
19 #define PCI_CONFIG_ELBI_STS_DONE	(1 << 31)
20 #define PCI_CONFIG_ELBI_STS_MASK	(PCI_CONFIG_ELBI_STS_ERR | \
21 					PCI_CONFIG_ELBI_STS_DONE)
22 
23 #endif /* INCLUDE_PCI_GENERAL_H_ */
24