From 5a9ac99043ef1dc18565700d4c46dc2c8fe34e59 Mon Sep 17 00:00:00 2001 From: Ranjani Vaidyanathan Date: Fri, 26 May 2017 17:36:29 -0500 Subject: i.MX8: Update to the latest SCFW API Signed-off-by: Ranjani Vaidyanathan --- plat/freescale/common/sci/svc/pad/pad_rpc_clnt.c | 307 +++++++++++------------ 1 file changed, 142 insertions(+), 165 deletions(-) (limited to 'plat/freescale/common/sci/svc/pad/pad_rpc_clnt.c') diff --git a/plat/freescale/common/sci/svc/pad/pad_rpc_clnt.c b/plat/freescale/common/sci/svc/pad/pad_rpc_clnt.c index 3bc7740b..4b0ef948 100644 --- a/plat/freescale/common/sci/svc/pad/pad_rpc_clnt.c +++ b/plat/freescale/common/sci/svc/pad/pad_rpc_clnt.c @@ -1,31 +1,8 @@ /* + * Copyright (C) 2016 Freescale Semiconductor, Inc. * Copyright 2017 NXP * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions are met: - * - * Redistributions of source code must retain the above copyright notice, this - * list of conditions and the following disclaimer. - * - * Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * - * Neither the name of NXP nor the names of its contributors may be used - * to endorse or promote products derived from this software without specific - * prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" - * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE - * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR - * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF - * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) - * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE - * POSSIBILITY OF SUCH DAMAGE. + * SPDX-License-Identifier: GPL-2.0+ */ /*! @@ -51,7 +28,7 @@ /* Local Functions */ -sc_err_t sc_pad_set_mux(sc_ipc_t ipc, sc_pin_t pin, +sc_err_t sc_pad_set_mux(sc_ipc_t ipc, sc_pad_t pad, uint8_t mux, sc_pad_config_t config, sc_pad_iso_t iso) { sc_rpc_msg_t msg; @@ -60,10 +37,10 @@ sc_err_t sc_pad_set_mux(sc_ipc_t ipc, sc_pin_t pin, RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; RPC_FUNC(&msg) = PAD_FUNC_SET_MUX; - RPC_D16(&msg, 0) = pin; - RPC_D8(&msg, 2) = mux; - RPC_D8(&msg, 3) = config; - RPC_D8(&msg, 4) = iso; + RPC_U16(&msg, 0) = pad; + RPC_U8(&msg, 2) = mux; + RPC_U8(&msg, 3) = config; + RPC_U8(&msg, 4) = iso; RPC_SIZE(&msg) = 3; sc_call_rpc(ipc, &msg, false); @@ -72,40 +49,40 @@ sc_err_t sc_pad_set_mux(sc_ipc_t ipc, sc_pin_t pin, return (sc_err_t) result; } -sc_err_t sc_pad_set_gp(sc_ipc_t ipc, sc_pin_t pin, uint32_t ctrl) +sc_err_t sc_pad_get_mux(sc_ipc_t ipc, sc_pad_t pad, + uint8_t *mux, sc_pad_config_t *config, sc_pad_iso_t *iso) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_SET_GP; - RPC_D32(&msg, 0) = ctrl; - RPC_D16(&msg, 4) = pin; - RPC_SIZE(&msg) = 3; + RPC_FUNC(&msg) = PAD_FUNC_GET_MUX; + RPC_U16(&msg, 0) = pad; + RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); result = RPC_R8(&msg); + if (mux != NULL) + *mux = RPC_U8(&msg, 0); + if (config != NULL) + *config = RPC_U8(&msg, 1); + if (iso != NULL) + *iso = RPC_U8(&msg, 2); return (sc_err_t) result; } -sc_err_t sc_pad_set_gp_28lpp(sc_ipc_t ipc, sc_pin_t pin, - sc_pad_28lpp_dse_t dse, bool sre, bool hys, bool pe, - sc_pad_28lpp_ps_t ps) +sc_err_t sc_pad_set_gp(sc_ipc_t ipc, sc_pad_t pad, uint32_t ctrl) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_SET_GP_28LPP; - RPC_D16(&msg, 0) = pin; - RPC_D8(&msg, 2) = dse; - RPC_D8(&msg, 3) = ps; - RPC_D8(&msg, 4) = sre; - RPC_D8(&msg, 5) = hys; - RPC_D8(&msg, 6) = pe; + RPC_FUNC(&msg) = PAD_FUNC_SET_GP; + RPC_U32(&msg, 0) = ctrl; + RPC_U16(&msg, 4) = pad; RPC_SIZE(&msg) = 3; sc_call_rpc(ipc, &msg, false); @@ -114,27 +91,26 @@ sc_err_t sc_pad_set_gp_28lpp(sc_ipc_t ipc, sc_pin_t pin, return (sc_err_t) result; } -sc_err_t sc_pad_set_wakeup(sc_ipc_t ipc, sc_pin_t pin, - sc_pad_wakeup_t wakeup) +sc_err_t sc_pad_get_gp(sc_ipc_t ipc, sc_pad_t pad, uint32_t *ctrl) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_SET_WAKEUP; - RPC_D16(&msg, 0) = pin; - RPC_D8(&msg, 2) = wakeup; + RPC_FUNC(&msg) = PAD_FUNC_GET_GP; + RPC_U16(&msg, 0) = pad; RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); + if (ctrl != NULL) + *ctrl = RPC_U32(&msg, 0); result = RPC_R8(&msg); return (sc_err_t) result; } -sc_err_t sc_pad_set_all(sc_ipc_t ipc, sc_pin_t pin, uint8_t mux, - sc_pad_config_t config, sc_pad_iso_t iso, uint32_t ctrl, +sc_err_t sc_pad_set_wakeup(sc_ipc_t ipc, sc_pad_t pad, sc_pad_wakeup_t wakeup) { sc_rpc_msg_t msg; @@ -142,14 +118,10 @@ sc_err_t sc_pad_set_all(sc_ipc_t ipc, sc_pin_t pin, uint8_t mux, RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_SET_ALL; - RPC_D32(&msg, 0) = ctrl; - RPC_D16(&msg, 4) = pin; - RPC_D8(&msg, 6) = mux; - RPC_D8(&msg, 7) = config; - RPC_D8(&msg, 8) = iso; - RPC_D8(&msg, 9) = wakeup; - RPC_SIZE(&msg) = 4; + RPC_FUNC(&msg) = PAD_FUNC_SET_WAKEUP; + RPC_U16(&msg, 0) = pad; + RPC_U8(&msg, 2) = wakeup; + RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); @@ -157,140 +129,133 @@ sc_err_t sc_pad_set_all(sc_ipc_t ipc, sc_pin_t pin, uint8_t mux, return (sc_err_t) result; } -sc_err_t sc_pad_get_mux(sc_ipc_t ipc, sc_pin_t pin, - uint8_t *mux, sc_pad_config_t *config, sc_pad_iso_t *iso) +sc_err_t sc_pad_get_wakeup(sc_ipc_t ipc, sc_pad_t pad, + sc_pad_wakeup_t *wakeup) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET_MUX; - RPC_D16(&msg, 0) = pin; + RPC_FUNC(&msg) = PAD_FUNC_GET_WAKEUP; + RPC_U16(&msg, 0) = pad; RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); result = RPC_R8(&msg); - if (mux != NULL) - *mux = RPC_D8(&msg, 0); - if (config != NULL) - *config = RPC_D8(&msg, 1); - if (iso != NULL) - *iso = RPC_D8(&msg, 2); + if (wakeup != NULL) + *wakeup = RPC_U8(&msg, 0); return (sc_err_t) result; } -sc_err_t sc_pad_get_gp(sc_ipc_t ipc, sc_pin_t pin, uint32_t *ctrl) +sc_err_t sc_pad_set_all(sc_ipc_t ipc, sc_pad_t pad, uint8_t mux, + sc_pad_config_t config, sc_pad_iso_t iso, uint32_t ctrl, + sc_pad_wakeup_t wakeup) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET_GP; - RPC_D16(&msg, 0) = pin; - RPC_SIZE(&msg) = 2; + RPC_FUNC(&msg) = PAD_FUNC_SET_ALL; + RPC_U32(&msg, 0) = ctrl; + RPC_U16(&msg, 4) = pad; + RPC_U8(&msg, 6) = mux; + RPC_U8(&msg, 7) = config; + RPC_U8(&msg, 8) = iso; + RPC_U8(&msg, 9) = wakeup; + RPC_SIZE(&msg) = 4; sc_call_rpc(ipc, &msg, false); - if (ctrl != NULL) - *ctrl = RPC_D32(&msg, 0); result = RPC_R8(&msg); return (sc_err_t) result; } -sc_err_t sc_pad_get_gp_28lpp(sc_ipc_t ipc, sc_pin_t pin, - sc_pad_28lpp_dse_t *dse, bool *sre, bool *hys, bool *pe, - sc_pad_28lpp_ps_t *ps) +sc_err_t sc_pad_get_all(sc_ipc_t ipc, sc_pad_t pad, uint8_t *mux, + sc_pad_config_t *config, sc_pad_iso_t *iso, uint32_t *ctrl, + sc_pad_wakeup_t *wakeup) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET_GP_28LPP; - RPC_D16(&msg, 0) = pin; + RPC_FUNC(&msg) = PAD_FUNC_GET_ALL; + RPC_U16(&msg, 0) = pad; RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); + if (ctrl != NULL) + *ctrl = RPC_U32(&msg, 0); result = RPC_R8(&msg); - if (dse != NULL) - *dse = RPC_D8(&msg, 0); - if (ps != NULL) - *ps = RPC_D8(&msg, 1); - if (sre != NULL) - *sre = RPC_D8(&msg, 2); - if (hys != NULL) - *hys = RPC_D8(&msg, 3); - if (pe != NULL) - *pe = RPC_D8(&msg, 4); + if (mux != NULL) + *mux = RPC_U8(&msg, 4); + if (config != NULL) + *config = RPC_U8(&msg, 5); + if (iso != NULL) + *iso = RPC_U8(&msg, 6); + if (wakeup != NULL) + *wakeup = RPC_U8(&msg, 7); return (sc_err_t) result; } -sc_err_t sc_pad_get_wakeup(sc_ipc_t ipc, sc_pin_t pin, - sc_pad_wakeup_t *wakeup) +sc_err_t sc_pad_set(sc_ipc_t ipc, sc_pad_t pad, uint32_t val) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET_WAKEUP; - RPC_D16(&msg, 0) = pin; - RPC_SIZE(&msg) = 2; + RPC_FUNC(&msg) = PAD_FUNC_SET; + RPC_U32(&msg, 0) = val; + RPC_U16(&msg, 4) = pad; + RPC_SIZE(&msg) = 3; sc_call_rpc(ipc, &msg, false); result = RPC_R8(&msg); - if (wakeup != NULL) - *wakeup = RPC_D8(&msg, 0); return (sc_err_t) result; } -sc_err_t sc_pad_get_all(sc_ipc_t ipc, sc_pin_t pin, uint8_t *mux, - sc_pad_config_t *config, sc_pad_iso_t *iso, uint32_t *ctrl, - sc_pad_wakeup_t *wakeup) +sc_err_t sc_pad_get(sc_ipc_t ipc, sc_pad_t pad, uint32_t *val) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET_ALL; - RPC_D16(&msg, 0) = pin; + RPC_FUNC(&msg) = PAD_FUNC_GET; + RPC_U16(&msg, 0) = pad; RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); - if (ctrl != NULL) - *ctrl = RPC_D32(&msg, 0); + if (val != NULL) + *val = RPC_U32(&msg, 0); result = RPC_R8(&msg); - if (mux != NULL) - *mux = RPC_D8(&msg, 4); - if (config != NULL) - *config = RPC_D8(&msg, 5); - if (iso != NULL) - *iso = RPC_D8(&msg, 6); - if (wakeup != NULL) - *wakeup = RPC_D8(&msg, 7); return (sc_err_t) result; } -sc_err_t sc_pad_set_gp_28fdsoi(sc_ipc_t ipc, sc_pin_t pin, - sc_pad_28fdsoi_dse_t dse, sc_pad_28fdsoi_ps_t ps) +sc_err_t sc_pad_set_gp_28lpp(sc_ipc_t ipc, sc_pad_t pad, + sc_pad_28lpp_dse_t dse, bool sre, bool hys, bool pe, + sc_pad_28lpp_ps_t ps) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_SET_GP_28FDSOI; - RPC_D16(&msg, 0) = pin; - RPC_D8(&msg, 2) = dse; - RPC_D8(&msg, 3) = ps; - RPC_SIZE(&msg) = 2; + RPC_FUNC(&msg) = PAD_FUNC_SET_GP_28LPP; + RPC_U16(&msg, 0) = pad; + RPC_U8(&msg, 2) = dse; + RPC_U8(&msg, 3) = ps; + RPC_U8(&msg, 4) = sre; + RPC_U8(&msg, 5) = hys; + RPC_U8(&msg, 6) = pe; + RPC_SIZE(&msg) = 3; sc_call_rpc(ipc, &msg, false); @@ -298,45 +263,48 @@ sc_err_t sc_pad_set_gp_28fdsoi(sc_ipc_t ipc, sc_pin_t pin, return (sc_err_t) result; } -sc_err_t sc_pad_get_gp_28fdsoi(sc_ipc_t ipc, sc_pin_t pin, - sc_pad_28fdsoi_dse_t *dse, sc_pad_28fdsoi_ps_t *ps) +sc_err_t sc_pad_get_gp_28lpp(sc_ipc_t ipc, sc_pad_t pad, + sc_pad_28lpp_dse_t *dse, bool *sre, bool *hys, bool *pe, + sc_pad_28lpp_ps_t *ps) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET_GP_28FDSOI; - RPC_D16(&msg, 0) = pin; + RPC_FUNC(&msg) = PAD_FUNC_GET_GP_28LPP; + RPC_U16(&msg, 0) = pad; RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); result = RPC_R8(&msg); if (dse != NULL) - *dse = RPC_D8(&msg, 0); + *dse = RPC_U8(&msg, 0); if (ps != NULL) - *ps = RPC_D8(&msg, 1); + *ps = RPC_U8(&msg, 1); + if (sre != NULL) + *sre = RPC_U8(&msg, 2); + if (hys != NULL) + *hys = RPC_U8(&msg, 3); + if (pe != NULL) + *pe = RPC_U8(&msg, 4); return (sc_err_t) result; } -sc_err_t sc_pad_set_gp_28fdsoi_comp(sc_ipc_t ipc, sc_pin_t pin, - uint8_t compen, bool fastfrz, uint8_t rasrcp, uint8_t rasrcn, - bool nasrc_sel) +sc_err_t sc_pad_set_gp_28fdsoi(sc_ipc_t ipc, sc_pad_t pad, + sc_pad_28fdsoi_dse_t dse, sc_pad_28fdsoi_ps_t ps) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_SET_GP_28FDSOI_COMP; - RPC_D16(&msg, 0) = pin; - RPC_D8(&msg, 2) = compen; - RPC_D8(&msg, 3) = rasrcp; - RPC_D8(&msg, 4) = rasrcn; - RPC_D8(&msg, 5) = fastfrz; - RPC_D8(&msg, 6) = nasrc_sel; - RPC_SIZE(&msg) = 3; + RPC_FUNC(&msg) = PAD_FUNC_SET_GP_28FDSOI; + RPC_U16(&msg, 0) = pad; + RPC_U8(&msg, 2) = dse; + RPC_U8(&msg, 3) = ps; + RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); @@ -344,49 +312,44 @@ sc_err_t sc_pad_set_gp_28fdsoi_comp(sc_ipc_t ipc, sc_pin_t pin, return (sc_err_t) result; } -sc_err_t sc_pad_get_gp_28fdsoi_comp(sc_ipc_t ipc, sc_pin_t pin, - uint8_t *compen, bool *fastfrz, uint8_t *rasrcp, uint8_t *rasrcn, - bool *nasrc_sel, bool *compok, uint8_t *nasrc) +sc_err_t sc_pad_get_gp_28fdsoi(sc_ipc_t ipc, sc_pad_t pad, + sc_pad_28fdsoi_dse_t *dse, sc_pad_28fdsoi_ps_t *ps) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET_GP_28FDSOI_COMP; - RPC_D16(&msg, 0) = pin; + RPC_FUNC(&msg) = PAD_FUNC_GET_GP_28FDSOI; + RPC_U16(&msg, 0) = pad; RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); result = RPC_R8(&msg); - if (compen != NULL) - *compen = RPC_D8(&msg, 0); - if (rasrcp != NULL) - *rasrcp = RPC_D8(&msg, 1); - if (rasrcn != NULL) - *rasrcn = RPC_D8(&msg, 2); - if (nasrc != NULL) - *nasrc = RPC_D8(&msg, 3); - if (fastfrz != NULL) - *fastfrz = RPC_D8(&msg, 4); - if (nasrc_sel != NULL) - *nasrc_sel = RPC_D8(&msg, 5); - if (compok != NULL) - *compok = RPC_D8(&msg, 6); + if (dse != NULL) + *dse = RPC_U8(&msg, 0); + if (ps != NULL) + *ps = RPC_U8(&msg, 1); return (sc_err_t) result; } -sc_err_t sc_pad_set(sc_ipc_t ipc, sc_pin_t pin, uint32_t val) +sc_err_t sc_pad_set_gp_28fdsoi_comp(sc_ipc_t ipc, sc_pad_t pad, + uint8_t compen, bool fastfrz, uint8_t rasrcp, uint8_t rasrcn, + bool nasrc_sel) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_SET; - RPC_D32(&msg, 0) = val; - RPC_D16(&msg, 4) = pin; + RPC_FUNC(&msg) = PAD_FUNC_SET_GP_28FDSOI_COMP; + RPC_U16(&msg, 0) = pad; + RPC_U8(&msg, 2) = compen; + RPC_U8(&msg, 3) = rasrcp; + RPC_U8(&msg, 4) = rasrcn; + RPC_U8(&msg, 5) = fastfrz; + RPC_U8(&msg, 6) = nasrc_sel; RPC_SIZE(&msg) = 3; sc_call_rpc(ipc, &msg, false); @@ -395,22 +358,36 @@ sc_err_t sc_pad_set(sc_ipc_t ipc, sc_pin_t pin, uint32_t val) return (sc_err_t) result; } -sc_err_t sc_pad_get(sc_ipc_t ipc, sc_pin_t pin, uint32_t *val) +sc_err_t sc_pad_get_gp_28fdsoi_comp(sc_ipc_t ipc, sc_pad_t pad, + uint8_t *compen, bool *fastfrz, uint8_t *rasrcp, uint8_t *rasrcn, + bool *nasrc_sel, bool *compok, uint8_t *nasrc) { sc_rpc_msg_t msg; uint8_t result; RPC_VER(&msg) = SC_RPC_VERSION; RPC_SVC(&msg) = SC_RPC_SVC_PAD; - RPC_FUNC(&msg) = PAD_FUNC_GET; - RPC_D16(&msg, 0) = pin; + RPC_FUNC(&msg) = PAD_FUNC_GET_GP_28FDSOI_COMP; + RPC_U16(&msg, 0) = pad; RPC_SIZE(&msg) = 2; sc_call_rpc(ipc, &msg, false); - if (val != NULL) - *val = RPC_D32(&msg, 0); result = RPC_R8(&msg); + if (compen != NULL) + *compen = RPC_U8(&msg, 0); + if (rasrcp != NULL) + *rasrcp = RPC_U8(&msg, 1); + if (rasrcn != NULL) + *rasrcn = RPC_U8(&msg, 2); + if (nasrc != NULL) + *nasrc = RPC_U8(&msg, 3); + if (fastfrz != NULL) + *fastfrz = RPC_U8(&msg, 4); + if (nasrc_sel != NULL) + *nasrc_sel = RPC_U8(&msg, 5); + if (compok != NULL) + *compok = RPC_U8(&msg, 6); return (sc_err_t) result; } -- cgit v1.2.3