xref: /freebsd/sys/dev/qat/include/common/adf_cfg_strings.h (revision 1c4ee7dfb8affed302171232b0f612e6bcba3c10)
1 /* SPDX-License-Identifier: BSD-3-Clause */
2 /* Copyright(c) 2007-2022 Intel Corporation */
3 #ifndef ADF_CFG_STRINGS_H_
4 #define ADF_CFG_STRINGS_H_
5 
6 #define ADF_GENERAL_SEC "GENERAL"
7 #define ADF_KERNEL_SEC "KERNEL"
8 #define ADF_ACCEL_SEC "Accelerator"
9 #define ADF_SAL_SEC "SSL"
10 #define ADF_NUM_CY "NumberCyInstances"
11 #define ADF_NUM_DC "NumberDcInstances"
12 #define ADF_RING_SYM_SIZE "NumConcurrentSymRequests"
13 #define ADF_RING_ASYM_SIZE "NumConcurrentAsymRequests"
14 #define ADF_RING_DC_SIZE "NumConcurrentRequests"
15 #define ADF_RING_ASYM_TX "RingAsymTx"
16 #define ADF_RING_SYM_TX "RingSymTx"
17 #define ADF_RING_RND_TX "RingNrbgTx"
18 #define ADF_RING_ASYM_RX "RingAsymRx"
19 #define ADF_RING_SYM_RX "RingSymRx"
20 #define ADF_RING_RND_RX "RingNrbgRx"
21 #define ADF_RING_DC_TX "RingTx"
22 #define ADF_RING_DC_RX "RingRx"
23 #define ADF_ETRMGR_BANK "Bank"
24 #define ADF_RING_BANK_NUM "BankNumber"
25 #define ADF_RING_BANK_NUM_ASYM "BankNumberAsym"
26 #define ADF_RING_BANK_NUM_SYM "BankNumberSym"
27 #define ADF_CY "Cy"
28 #define ADF_DC "Dc"
29 #define ADF_DC_EXTENDED_FEATURES "Device_DcExtendedFeatures"
30 #define ADF_ETRMGR_COALESCING_ENABLED "InterruptCoalescingEnabled"
31 #define ADF_ETRMGR_COALESCING_ENABLED_FORMAT                                   \
32 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCING_ENABLED
33 #define ADF_ETRMGR_COALESCE_TIMER "InterruptCoalescingTimerNs"
34 #define ADF_ETRMGR_COALESCE_TIMER_FORMAT                                       \
35 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCE_TIMER
36 #define ADF_ETRMGR_COALESCING_MSG_ENABLED "InterruptCoalescingNumResponses"
37 #define ADF_ETRMGR_COALESCING_MSG_ENABLED_FORMAT                               \
38 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_COALESCING_MSG_ENABLED
39 #define ADF_ETRMGR_CORE_AFFINITY "CoreAffinity"
40 #define ADF_ETRMGR_CORE_AFFINITY_FORMAT                                        \
41 	ADF_ETRMGR_BANK "%d" ADF_ETRMGR_CORE_AFFINITY
42 #define ADF_ACCEL_STR "Accelerator%d"
43 #define ADF_INLINE_SEC "INLINE"
44 #define ADF_NUM_CY_ACCEL_UNITS "NumCyAccelUnits"
45 #define ADF_NUM_DC_ACCEL_UNITS "NumDcAccelUnits"
46 #define ADF_NUM_INLINE_ACCEL_UNITS "NumInlineAccelUnits"
47 #define ADF_INLINE_INGRESS "InlineIngress"
48 #define ADF_INLINE_EGRESS "InlineEgress"
49 #define ADF_INLINE_CONGEST_MNGT_PROFILE "InlineCongestionManagmentProfile"
50 #define ADF_INLINE_IPSEC_ALGO_GROUP "InlineIPsecAlgoGroup"
51 #define ADF_SERVICE_CY "cy"
52 #define ADF_SERVICE_SYM "sym"
53 #define ADF_SERVICE_DC "dc"
54 #define ADF_CFG_CY "cy"
55 #define ADF_CFG_DC "dc"
56 #define ADF_CFG_ASYM "asym"
57 #define ADF_CFG_SYM "sym"
58 #define ADF_CFG_SYM_ASYM "sym;asym"
59 #define ADF_CFG_SYM_DC "sym;dc"
60 #define ADF_CFG_KERNEL_USER "ks;us"
61 #define ADF_CFG_KERNEL "ks"
62 #define ADF_CFG_USER "us"
63 #define ADF_SERVICE_INLINE "inline"
64 #define ADF_SERVICES_ENABLED "ServicesEnabled"
65 #define ADF_SERVICES_SEPARATOR ";"
66 
67 #define ADF_DEV_SSM_WDT_BULK "CySymAndDcWatchDogTimer"
68 #define ADF_DEV_SSM_WDT_PKE "CyAsymWatchDogTimer"
69 #define ADF_DH895XCC_AE_FW_NAME "icp_qat_ae.uof"
70 #define ADF_CXXX_AE_FW_NAME "icp_qat_ae.suof"
71 #define ADF_HEARTBEAT_TIMER "HeartbeatTimer"
72 #define ADF_MMP_VER_KEY "Firmware_MmpVer"
73 #define ADF_UOF_VER_KEY "Firmware_UofVer"
74 #define ADF_HW_REV_ID_KEY "HW_RevId"
75 #define ADF_STORAGE_FIRMWARE_ENABLED "StorageEnabled"
76 #define ADF_DEV_MAX_BANKS "Device_Max_Banks"
77 #define ADF_DEV_CAPABILITIES_MASK "Device_Capabilities_Mask"
78 #define ADF_DEV_NODE_ID "Device_NodeId"
79 #define ADF_DEV_PKG_ID "Device_PkgId"
80 #define ADF_FIRST_USER_BUNDLE "FirstUserBundle"
81 #define ADF_INTERNAL_USERSPACE_SEC_SUFF "_INT_"
82 #define ADF_LIMIT_DEV_ACCESS "LimitDevAccess"
83 #define DEV_LIMIT_CFG_ACCESS_TMPL "_D_L_ACC"
84 #define ADF_DEV_MAX_RINGS_PER_BANK "Device_Max_Rings_Per_Bank"
85 #define ADF_NUM_PROCESSES "NumProcesses"
86 #define ADF_DH895XCC_AE_FW_NAME_COMPRESSION "compression.uof"
87 #define ADF_DH895XCC_AE_FW_NAME_CRYPTO "crypto.uof"
88 #define ADF_DH895XCC_AE_FW_NAME_CUSTOM1 "custom1.uof"
89 #define ADF_CXXX_AE_FW_NAME_COMPRESSION "compression.suof"
90 #define ADF_CXXX_AE_FW_NAME_CRYPTO "crypto.suof"
91 #define ADF_CXXX_AE_FW_NAME_CUSTOM1 "custom1.suof"
92 #define ADF_DC_EXTENDED_FEATURES "Device_DcExtendedFeatures"
93 #define ADF_PKE_DISABLED "PkeServiceDisabled"
94 #define ADF_INTER_BUF_SIZE "DcIntermediateBufferSizeInKB"
95 #define ADF_AUTO_RESET_ON_ERROR "AutoResetOnError"
96 #define ADF_KERNEL_SAL_SEC "KERNEL_QAT"
97 #define ADF_CFG_DEF_CY_RING_ASYM_SIZE 64
98 #define ADF_CFG_DEF_CY_RING_SYM_SIZE 512
99 #define ADF_CFG_DEF_DC_RING_SIZE 512
100 #define ADF_NUM_PROCESSES "NumProcesses"
101 #define ADF_SERVICES_ENABLED "ServicesEnabled"
102 #define ADF_CFG_CY "cy"
103 #define ADF_CFG_SYM "sym"
104 #define ADF_CFG_ASYM "asym"
105 #define ADF_CFG_DC "dc"
106 #define ADF_POLL_MODE "IsPolled"
107 #define ADF_DEV_KPT_ENABLE "KptEnabled"
108 #define ADF_STORAGE_FIRMWARE_ENABLED "StorageEnabled"
109 #define ADF_RL_FIRMWARE_ENABLED "RateLimitingEnabled"
110 #define ADF_SERVICES_PROFILE "ServicesProfile"
111 #define ADF_SERVICES_DEFAULT "DEFAULT"
112 #define ADF_SERVICES_CRYPTO "CRYPTO"
113 #define ADF_SERVICES_COMPRESSION "COMPRESSION"
114 #define ADF_SERVICES_CUSTOM1 "CUSTOM1"
115 
116 #define ADF_DC_RING_SIZE (ADF_DC ADF_RING_DC_SIZE)
117 #define ADF_CY_RING_SYM_SIZE (ADF_CY ADF_RING_SYM_SIZE)
118 #define ADF_CY_RING_ASYM_SIZE (ADF_CY ADF_RING_ASYM_SIZE)
119 #define ADF_CY_CORE_AFFINITY_FORMAT ADF_CY "%d" ADF_ETRMGR_CORE_AFFINITY
120 #define ADF_DC_CORE_AFFINITY_FORMAT ADF_DC "%d" ADF_ETRMGR_CORE_AFFINITY
121 #define ADF_CY_BANK_NUM_FORMAT ADF_CY "%d" ADF_RING_BANK_NUM
122 #define ADF_CY_ASYM_BANK_NUM_FORMAT ADF_CY "%d" ADF_RING_BANK_NUM_ASYM
123 #define ADF_CY_SYM_BANK_NUM_FORMAT ADF_CY "%d" ADF_RING_BANK_NUM_SYM
124 #define ADF_DC_BANK_NUM_FORMAT ADF_DC "%d" ADF_RING_BANK_NUM
125 #define ADF_CY_ASYM_TX_FORMAT ADF_CY "%d" ADF_RING_ASYM_TX
126 #define ADF_CY_SYM_TX_FORMAT ADF_CY "%d" ADF_RING_SYM_TX
127 #define ADF_CY_ASYM_RX_FORMAT ADF_CY "%d" ADF_RING_ASYM_RX
128 #define ADF_CY_SYM_RX_FORMAT ADF_CY "%d" ADF_RING_SYM_RX
129 #define ADF_DC_TX_FORMAT ADF_DC "%d" ADF_RING_DC_TX
130 #define ADF_DC_RX_FORMAT ADF_DC "%d" ADF_RING_DC_RX
131 #define ADF_CY_RING_SYM_SIZE_FORMAT ADF_CY "%d" ADF_RING_SYM_SIZE
132 #define ADF_CY_RING_ASYM_SIZE_FORMAT ADF_CY "%d" ADF_RING_ASYM_SIZE
133 #define ADF_DC_RING_SIZE_FORMAT ADF_DC "%d" ADF_RING_DC_SIZE
134 #define ADF_CY_NAME_FORMAT ADF_CY "%dName"
135 #define ADF_DC_NAME_FORMAT ADF_DC "%dName"
136 #define ADF_CY_POLL_MODE_FORMAT ADF_CY "%d" ADF_POLL_MODE
137 #define ADF_DC_POLL_MODE_FORMAT ADF_DC "%d" ADF_POLL_MODE
138 #define ADF_USER_SECTION_NAME_FORMAT "%s_INT_%d"
139 #define ADF_LIMITED_USER_SECTION_NAME_FORMAT "%s_DEV%d_INT_%d"
140 #define ADF_CONFIG_VERSION "ConfigVersion"
141 #endif
142