Removes configuration and error stats information from the status.
Signed-off-by: Derek Kiernan <Derek.Kiernan@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
status.fec_id = xsdfec->fec_id;
status.state = xsdfec->state;
- status.code = xsdfec->code;
- status.order = xsdfec->order;
- status.mode = xsdfec->op_mode;
status.activity =
(xsdfec_regread(xsdfec,
XSDFEC_ACTIVE_ADDR) &
XSDFEC_IS_ACTIVITY_SET);
- status.cecc_count = atomic_read(&xsdfec->cecc_count);
err = copy_to_user(arg, &status, sizeof(status));
if (err) {
/**
* struct xsdfec_status - Status of SDFEC device
* @fec_id: ID of SDFEC instance
- * @code: The codes being used by the SDFEC instance
- * @order: Order of Operation
* @state: State of the SDFEC device
- * @mode: Mode of Operation
* @activity: Describes if the SDFEC instance is Active
- * @cecc_count: Count of the Correctable ECC Errors occurred
*/
struct xsdfec_status {
s32 fec_id;
- enum xsdfec_code code;
- enum xsdfec_order order;
enum xsdfec_state state;
- enum xsdfec_op_mode mode;
bool activity;
- int cecc_count;
};
/**