* dpseci_reset() - Reset the DPSECI, returns the object to initial state. * @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. */
| 260 | * Return: '0' on Success; Error code otherwise. |
| 261 | */ |
| 262 | int dpseci_reset(struct fsl_mc_io *mc_io, |
| 263 | uint32_t cmd_flags, |
| 264 | uint16_t token) |
| 265 | { |
| 266 | struct mc_command cmd = { 0 }; |
| 267 | |
| 268 | /* prepare command */ |
| 269 | cmd.header = mc_encode_cmd_header(DPSECI_CMDID_RESET, |
| 270 | cmd_flags, |
| 271 | token); |
| 272 | |
| 273 | /* send command to mc*/ |
| 274 | return mc_send_command(mc_io, &cmd); |
| 275 | } |
| 276 | |
| 277 | /** |
| 278 | * dpseci_get_attributes() - Retrieve DPSECI attributes. |
no test coverage detected