Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0
0002  *
0003  * Copyright 2016-2019 HabanaLabs, Ltd.
0004  * All Rights Reserved.
0005  *
0006  */
0007 
0008 #ifndef INCLUDE_PCI_GENERAL_H_
0009 #define INCLUDE_PCI_GENERAL_H_
0010 
0011 /* PCI CONFIGURATION SPACE */
0012 #define mmPCI_CONFIG_ELBI_ADDR      0xFF0
0013 #define mmPCI_CONFIG_ELBI_DATA      0xFF4
0014 #define mmPCI_CONFIG_ELBI_CTRL      0xFF8
0015 #define PCI_CONFIG_ELBI_CTRL_WRITE  (1 << 31)
0016 
0017 #define mmPCI_CONFIG_ELBI_STS       0xFFC
0018 #define PCI_CONFIG_ELBI_STS_ERR     (1 << 30)
0019 #define PCI_CONFIG_ELBI_STS_DONE    (1 << 31)
0020 #define PCI_CONFIG_ELBI_STS_MASK    (PCI_CONFIG_ELBI_STS_ERR | \
0021                     PCI_CONFIG_ELBI_STS_DONE)
0022 
0023 #endif /* INCLUDE_PCI_GENERAL_H_ */