^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) // SPDX-License-Identifier: GPL-2.0+
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) // Copyright 2017 IBM Corp.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) #ifndef _OCXL_CONFIG_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) #define _OCXL_CONFIG_H_
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) * This file lists the various constants used to read the
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) * configuration space of an opencapi adapter.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) * It follows the specification for opencapi 3.0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) #define OCXL_EXT_CAP_ID_DVSEC 0x23
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) #define OCXL_DVSEC_VENDOR_OFFSET 0x4
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) #define OCXL_DVSEC_ID_OFFSET 0x8
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) #define OCXL_DVSEC_TL_ID 0xF000
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) #define OCXL_DVSEC_TL_BACKOFF_TIMERS 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) #define OCXL_DVSEC_TL_RECV_CAP 0x18
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) #define OCXL_DVSEC_TL_SEND_CAP 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) #define OCXL_DVSEC_TL_RECV_RATE 0x30
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) #define OCXL_DVSEC_TL_SEND_RATE 0x50
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) #define OCXL_DVSEC_FUNC_ID 0xF001
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) #define OCXL_DVSEC_FUNC_OFF_INDEX 0x08
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) #define OCXL_DVSEC_FUNC_OFF_ACTAG 0x0C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) #define OCXL_DVSEC_AFU_INFO_ID 0xF003
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) #define OCXL_DVSEC_AFU_INFO_AFU_IDX 0x0A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) #define OCXL_DVSEC_AFU_INFO_OFF 0x0C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) #define OCXL_DVSEC_AFU_INFO_DATA 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) #define OCXL_DVSEC_AFU_CTRL_ID 0xF004
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) #define OCXL_DVSEC_AFU_CTRL_AFU_IDX 0x0A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) #define OCXL_DVSEC_AFU_CTRL_TERM_PASID 0x0C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) #define OCXL_DVSEC_AFU_CTRL_ENABLE 0x0F
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34) #define OCXL_DVSEC_AFU_CTRL_PASID_SUP 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) #define OCXL_DVSEC_AFU_CTRL_PASID_EN 0x11
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 36) #define OCXL_DVSEC_AFU_CTRL_PASID_BASE 0x14
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 37) #define OCXL_DVSEC_AFU_CTRL_ACTAG_SUP 0x18
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 38) #define OCXL_DVSEC_AFU_CTRL_ACTAG_EN 0x1A
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 39) #define OCXL_DVSEC_AFU_CTRL_ACTAG_BASE 0x1C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 40) #define OCXL_DVSEC_VENDOR_ID 0xF0F0
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 41) #define OCXL_DVSEC_VENDOR_CFG_VERS 0x0C
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 42) #define OCXL_DVSEC_VENDOR_TLX_VERS 0x10
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 43) #define OCXL_DVSEC_VENDOR_DLX_VERS 0x20
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 44) #define OCXL_DVSEC_VENDOR_RESET_RELOAD 0x38
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 45)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 46) #endif /* _OCXL_CONFIG_H_ */