* dpseci_enable() - Enable the DPSECI, allow sending and receiving frames. * @mc_io: Pointer to MC portal's I/O object * @cmd_flags: Command flags; one or more of 'MC_CMD_FLAG_' * @token: Token of DPSECI object * * Return: '0' on Success; Error code otherwise. */
| 179 | * Return: '0' on Success; Error code otherwise. |
| 180 | */ |
| 181 | int dpseci_enable(struct fsl_mc_io *mc_io, |
| 182 | uint32_t cmd_flags, |
| 183 | uint16_t token) |
| 184 | { |
| 185 | struct mc_command cmd = { 0 }; |
| 186 | |
| 187 | /* prepare command */ |
| 188 | cmd.header = mc_encode_cmd_header(DPSECI_CMDID_ENABLE, |
| 189 | cmd_flags, |
| 190 | token); |
| 191 | |
| 192 | /* send command to mc*/ |
| 193 | return mc_send_command(mc_io, &cmd); |
| 194 | } |
| 195 | |
| 196 | /** |
| 197 | * dpseci_disable() - Disable the DPSECI, stop sending and receiving frames. |
no test coverage detected