Lines Matching +full:0 +full:x278
41 #define DPAA2_MCP_MEM_WIDTH 0x40 /* Minimal size of the MC portal. */
49 #define DPAA2_PORTAL_DEF 0x0u
50 #define DPAA2_PORTAL_NOWAIT_ALLOC 0x2u /* Do not sleep during init */
51 #define DPAA2_PORTAL_LOCKED 0x4000u /* Wait till portal's unlocked */
52 #define DPAA2_PORTAL_DESTROYED 0x8000u /* Terminate any operations */
55 #define DPAA2_CMD_DEF 0x0u
56 #define DPAA2_CMD_HIGH_PRIO 0x80u /* High priority command */
57 #define DPAA2_CMD_INTR_DIS 0x100u /* Disable cmd finished intr */
58 #define DPAA2_CMD_NOWAIT_ALLOC 0x8000u /* Do not sleep during init */
61 #define DPAA2_CMD_STAT_OK 0x0 /* Set by MC on success */
62 #define DPAA2_CMD_STAT_READY 0x1 /* Ready to be processed */
63 #define DPAA2_CMD_STAT_AUTH_ERR 0x3 /* Illegal object-portal-icid */
64 #define DPAA2_CMD_STAT_NO_PRIVILEGE 0x4 /* No privilege */
65 #define DPAA2_CMD_STAT_DMA_ERR 0x5 /* DMA or I/O error */
66 #define DPAA2_CMD_STAT_CONFIG_ERR 0x6 /* Invalid/conflicting params */
67 #define DPAA2_CMD_STAT_TIMEOUT 0x7 /* Command timed out */
68 #define DPAA2_CMD_STAT_NO_RESOURCE 0x8 /* No DPAA2 resources */
69 #define DPAA2_CMD_STAT_NO_MEMORY 0x9 /* No memory available */
70 #define DPAA2_CMD_STAT_BUSY 0xA /* Device is busy */
71 #define DPAA2_CMD_STAT_UNSUPPORTED_OP 0xB /* Unsupported operation */
72 #define DPAA2_CMD_STAT_INVALID_STATE 0xC /* Invalid state */
74 #define DPAA2_CMD_STAT_UNKNOWN_OBJ 0xFD /* Unknown DPAA2 object. */
75 #define DPAA2_CMD_STAT_EINVAL 0xFE /* Invalid argument */
76 #define DPAA2_CMD_STAT_ERR 0xFF /* General error */
79 #define DPAA2_RC_REG_CACHEABLE 0x1 /* Cacheable memory mapping */
81 #define DPAA2_HW_FLAG_HIGH_PRIO 0x80u
82 #define DPAA2_SW_FLAG_INTR_DIS 0x01u
93 #define CMDID_MNG_GET_VER CMD_MNG(0x831)
94 #define CMDID_MNG_GET_SOC_VER CMD_MNG(0x832)
95 #define CMDID_MNG_GET_CONT_ID CMD_MNG(0x830)
107 #define CMDID_RC_OPEN CMD_RC(0x805)
108 #define CMDID_RC_CLOSE CMD_RC(0x800)
109 #define CMDID_RC_GET_API_VERSION CMD_RC(0xA05)
110 #define CMDID_RC_GET_ATTR CMD_RC(0x004)
111 #define CMDID_RC_RESET_CONT CMD_RC(0x005)
112 #define CMDID_RC_RESET_CONT_V2 CMD_RC_V2(0x005)
113 #define CMDID_RC_SET_IRQ CMD_RC(0x010)
114 #define CMDID_RC_SET_IRQ_ENABLE CMD_RC(0x012)
115 #define CMDID_RC_SET_IRQ_MASK CMD_RC(0x014)
116 #define CMDID_RC_GET_IRQ_STATUS CMD_RC(0x016)
117 #define CMDID_RC_CLEAR_IRQ_STATUS CMD_RC(0x017)
118 #define CMDID_RC_GET_CONT_ID CMD_RC(0x830)
119 #define CMDID_RC_GET_OBJ_COUNT CMD_RC(0x159)
120 #define CMDID_RC_GET_OBJ CMD_RC(0x15A)
121 #define CMDID_RC_GET_OBJ_DESC CMD_RC(0x162)
122 #define CMDID_RC_GET_OBJ_REG CMD_RC(0x15E)
123 #define CMDID_RC_GET_OBJ_REG_V2 CMD_RC_V2(0x15E)
124 #define CMDID_RC_GET_OBJ_REG_V3 CMD_RC_V3(0x15E)
125 #define CMDID_RC_SET_OBJ_IRQ CMD_RC(0x15F)
126 #define CMDID_RC_GET_CONN CMD_RC(0x16C)
134 #define CMDID_IO_OPEN CMD_IO(0x803)
135 #define CMDID_IO_CLOSE CMD_IO(0x800)
136 #define CMDID_IO_ENABLE CMD_IO(0x002)
137 #define CMDID_IO_DISABLE CMD_IO(0x003)
138 #define CMDID_IO_GET_ATTR CMD_IO(0x004)
139 #define CMDID_IO_RESET CMD_IO(0x005)
140 #define CMDID_IO_SET_IRQ_ENABLE CMD_IO(0x012)
141 #define CMDID_IO_SET_IRQ_MASK CMD_IO(0x014)
142 #define CMDID_IO_GET_IRQ_STATUS CMD_IO(0x016)
143 #define CMDID_IO_ADD_STATIC_DQ_CHAN CMD_IO(0x122)
155 #define CMDID_NI_OPEN CMD_NI(0x801)
156 #define CMDID_NI_CLOSE CMD_NI(0x800)
157 #define CMDID_NI_ENABLE CMD_NI(0x002)
158 #define CMDID_NI_DISABLE CMD_NI(0x003)
159 #define CMDID_NI_GET_API_VER CMD_NI(0xA01)
160 #define CMDID_NI_RESET CMD_NI(0x005)
161 #define CMDID_NI_GET_ATTR CMD_NI(0x004)
162 #define CMDID_NI_SET_BUF_LAYOUT CMD_NI(0x265)
163 #define CMDID_NI_GET_TX_DATA_OFF CMD_NI(0x212)
164 #define CMDID_NI_GET_PORT_MAC_ADDR CMD_NI(0x263)
165 #define CMDID_NI_SET_PRIM_MAC_ADDR CMD_NI(0x224)
166 #define CMDID_NI_GET_PRIM_MAC_ADDR CMD_NI(0x225)
167 #define CMDID_NI_SET_LINK_CFG CMD_NI(0x21A)
168 #define CMDID_NI_GET_LINK_CFG CMD_NI(0x278)
169 #define CMDID_NI_GET_LINK_STATE CMD_NI(0x215)
170 #define CMDID_NI_SET_QOS_TABLE CMD_NI(0x240)
171 #define CMDID_NI_CLEAR_QOS_TABLE CMD_NI(0x243)
172 #define CMDID_NI_SET_POOLS CMD_NI(0x200)
173 #define CMDID_NI_SET_ERR_BEHAVIOR CMD_NI(0x20B)
174 #define CMDID_NI_GET_QUEUE CMD_NI(0x25F)
175 #define CMDID_NI_SET_QUEUE CMD_NI(0x260)
176 #define CMDID_NI_GET_QDID CMD_NI(0x210)
177 #define CMDID_NI_ADD_MAC_ADDR CMD_NI(0x226)
178 #define CMDID_NI_REMOVE_MAC_ADDR CMD_NI(0x227)
179 #define CMDID_NI_CLEAR_MAC_FILTERS CMD_NI(0x228)
180 #define CMDID_NI_SET_MFL CMD_NI(0x216)
181 #define CMDID_NI_SET_OFFLOAD CMD_NI(0x26C)
182 #define CMDID_NI_SET_IRQ_MASK CMD_NI(0x014)
183 #define CMDID_NI_SET_IRQ_ENABLE CMD_NI(0x012)
184 #define CMDID_NI_GET_IRQ_STATUS CMD_NI(0x016)
185 #define CMDID_NI_SET_UNI_PROMISC CMD_NI(0x222)
186 #define CMDID_NI_SET_MULTI_PROMISC CMD_NI(0x220)
187 #define CMDID_NI_GET_STATISTICS CMD_NI(0x25D)
188 #define CMDID_NI_SET_RX_TC_DIST CMD_NI(0x235)
196 #define CMDID_BP_OPEN CMD_BP(0x804)
197 #define CMDID_BP_CLOSE CMD_BP(0x800)
198 #define CMDID_BP_ENABLE CMD_BP(0x002)
199 #define CMDID_BP_DISABLE CMD_BP(0x003)
200 #define CMDID_BP_GET_ATTR CMD_BP(0x004)
201 #define CMDID_BP_RESET CMD_BP(0x005)
211 #define CMDID_MAC_OPEN CMD_MAC(0x80C)
212 #define CMDID_MAC_CLOSE CMD_MAC(0x800)
213 #define CMDID_MAC_RESET CMD_MAC(0x005)
214 #define CMDID_MAC_MDIO_READ CMD_MAC(0x0C0)
215 #define CMDID_MAC_MDIO_WRITE CMD_MAC(0x0C1)
216 #define CMDID_MAC_GET_ADDR CMD_MAC(0x0C5)
217 #define CMDID_MAC_GET_ATTR CMD_MAC(0x004)
218 #define CMDID_MAC_SET_LINK_STATE CMD_MAC_V2(0x0C3)
219 #define CMDID_MAC_SET_IRQ_MASK CMD_MAC(0x014)
220 #define CMDID_MAC_SET_IRQ_ENABLE CMD_MAC(0x012)
221 #define CMDID_MAC_GET_IRQ_STATUS CMD_MAC(0x016)
229 #define CMDID_CON_OPEN CMD_CON(0x808)
230 #define CMDID_CON_CLOSE CMD_CON(0x800)
231 #define CMDID_CON_ENABLE CMD_CON(0x002)
232 #define CMDID_CON_DISABLE CMD_CON(0x003)
233 #define CMDID_CON_GET_ATTR CMD_CON(0x004)
234 #define CMDID_CON_RESET CMD_CON(0x005)
235 #define CMDID_CON_SET_NOTIF CMD_CON(0x100)
245 #define CMDID_MCP_CREATE CMD_MCP_V2(0x90B)
246 #define CMDID_MCP_DESTROY CMD_MCP(0x98B)
247 #define CMDID_MCP_OPEN CMD_MCP(0x80B)
248 #define CMDID_MCP_CLOSE CMD_MCP(0x800)
249 #define CMDID_MCP_RESET CMD_MCP(0x005)
256 } while (0)
262 } while (0)
392 * (DPSW, DPDMUX), 0 - otherwise.
407 * are 0-7, depending on the number of priorities in that channel.
452 __hdr->srcid = 0; \
454 __hdr->token = 0; \
455 __hdr->cmdid = 0; \
464 for (__dcpi = 0; __dcpi < DPAA2_CMD_PARAMS_N; __dcpi++) { \
465 (__cmd)->params[__dcpi] = 0; \
467 } while (0)