xref: /linux/include/misc/ocxl-config.h (revision 87db7579ebd5ded337056eb765542eb2608f16e3)
12cb3d64bSFrederic Barrat // SPDX-License-Identifier: GPL-2.0+
22cb3d64bSFrederic Barrat // Copyright 2017 IBM Corp.
32cb3d64bSFrederic Barrat #ifndef _OCXL_CONFIG_H_
42cb3d64bSFrederic Barrat #define _OCXL_CONFIG_H_
52cb3d64bSFrederic Barrat 
62cb3d64bSFrederic Barrat /*
72cb3d64bSFrederic Barrat  * This file lists the various constants used to read the
82cb3d64bSFrederic Barrat  * configuration space of an opencapi adapter.
92cb3d64bSFrederic Barrat  *
102cb3d64bSFrederic Barrat  * It follows the specification for opencapi 3.0
112cb3d64bSFrederic Barrat  */
122cb3d64bSFrederic Barrat 
132cb3d64bSFrederic Barrat #define OCXL_EXT_CAP_ID_DVSEC                 0x23
142cb3d64bSFrederic Barrat 
152cb3d64bSFrederic Barrat #define OCXL_DVSEC_VENDOR_OFFSET              0x4
162cb3d64bSFrederic Barrat #define OCXL_DVSEC_ID_OFFSET                  0x8
172cb3d64bSFrederic Barrat #define OCXL_DVSEC_TL_ID                      0xF000
182cb3d64bSFrederic Barrat #define   OCXL_DVSEC_TL_BACKOFF_TIMERS          0x10
192cb3d64bSFrederic Barrat #define   OCXL_DVSEC_TL_RECV_CAP                0x18
202cb3d64bSFrederic Barrat #define   OCXL_DVSEC_TL_SEND_CAP                0x20
212cb3d64bSFrederic Barrat #define   OCXL_DVSEC_TL_RECV_RATE               0x30
222cb3d64bSFrederic Barrat #define   OCXL_DVSEC_TL_SEND_RATE               0x50
232cb3d64bSFrederic Barrat #define OCXL_DVSEC_FUNC_ID                    0xF001
242cb3d64bSFrederic Barrat #define   OCXL_DVSEC_FUNC_OFF_INDEX             0x08
252cb3d64bSFrederic Barrat #define   OCXL_DVSEC_FUNC_OFF_ACTAG             0x0C
262cb3d64bSFrederic Barrat #define OCXL_DVSEC_AFU_INFO_ID                0xF003
272cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_INFO_AFU_IDX           0x0A
282cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_INFO_OFF               0x0C
292cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_INFO_DATA              0x10
302cb3d64bSFrederic Barrat #define OCXL_DVSEC_AFU_CTRL_ID                0xF004
312cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_AFU_IDX           0x0A
322cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_TERM_PASID        0x0C
332cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_ENABLE            0x0F
342cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_PASID_SUP         0x10
352cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_PASID_EN          0x11
362cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_PASID_BASE        0x14
372cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_ACTAG_SUP         0x18
382cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_ACTAG_EN          0x1A
392cb3d64bSFrederic Barrat #define   OCXL_DVSEC_AFU_CTRL_ACTAG_BASE        0x1C
402cb3d64bSFrederic Barrat #define OCXL_DVSEC_VENDOR_ID                  0xF0F0
412cb3d64bSFrederic Barrat #define   OCXL_DVSEC_VENDOR_CFG_VERS            0x0C
422cb3d64bSFrederic Barrat #define   OCXL_DVSEC_VENDOR_TLX_VERS            0x10
432cb3d64bSFrederic Barrat #define   OCXL_DVSEC_VENDOR_DLX_VERS            0x20
44*87db7579SPhilippe Bergheaud #define   OCXL_DVSEC_VENDOR_RESET_RELOAD        0x38
452cb3d64bSFrederic Barrat 
462cb3d64bSFrederic Barrat #endif /* _OCXL_CONFIG_H_ */
47