1 /* SPDX-License-Identifier: GPL-2.0
3 * Copyright 2016-2019 HabanaLabs, Ltd.
8 #ifndef INCLUDE_PCI_GENERAL_H_
9 #define INCLUDE_PCI_GENERAL_H_
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)
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)
24 /* PCI revision ID 0 is not legal */
25 REV_ID_INVALID
= 0x00,
32 #endif /* INCLUDE_PCI_GENERAL_H_ */