diff -r 6d3190b9d464 -r 4d44d8bee580 master/soe_request.c --- a/master/soe_request.c Fri Mar 05 17:48:50 2010 +0100 +++ b/master/soe_request.c Fri Mar 05 18:02:13 2010 +0100 @@ -61,7 +61,6 @@ req->data_size = 0; req->dir = EC_DIR_INVALID; req->state = EC_INT_REQUEST_INIT; - //req->jiffies_start = 0U; req->jiffies_sent = 0U; req->error_code = 0x0000; } @@ -79,6 +78,19 @@ /*****************************************************************************/ +/** Copy another SoE request. + */ +int ec_soe_request_copy( + ec_soe_request_t *req, /**< SoE request. */ + const ec_soe_request_t *other /**< Other SoE request to copy from. */ + ) +{ + req->idn = other->idn; + return ec_soe_request_copy_data(req, other->data, other->data_size); +} + +/*****************************************************************************/ + /** Set IDN. */ void ec_soe_request_set_idn( @@ -89,25 +101,6 @@ req->idn = idn; } -#if 0 -/*****************************************************************************/ - -/** Copy another SoE request. - * - * \attention Only the index subindex and data are copied. - */ -int ec_soe_request_copy( - ec_soe_request_t *req, /**< SoE request. */ - const ec_soe_request_t *other /**< Other SoE request to copy from. */ - ) -{ - req->complete_access = other->complete_access; - req->index = other->index; - req->subindex = other->subindex; - return ec_soe_request_copy_data(req, other->data, other->data_size); -} -#endif - /*****************************************************************************/ /** Free allocated memory.