Commit d6cd932f authored by Adam Wujek's avatar Adam Wujek

arch-wrpc: rename hal_port_state to wrc_port_state

Signed-off-by: 's avatarAdam Wujek <adam.wujek@creotech.pl>
parent e18b3f70
......@@ -23,7 +23,7 @@ int wrpc_read_calibration_data(
TimeInterval *scaledSfpDeltaTx,
TimeInterval *scaledSfpDeltaRx)
{
struct hal_port_state state;
struct wrc_port_state state;
if (wrpc_get_port_state(&state, ppi->iface_name))
return WRH_HW_CALIB_NOT_FOUND;
......@@ -42,9 +42,7 @@ int wrpc_read_calibration_data(
if (scaledSfpDeltaTx) {
if (state.calib.tx_calibrated) {
*scaledSfpDeltaTx = picos_to_interval(
state.calib.delta_tx_phy
+ state.calib.sfp.delta_tx_ps
+ state.calib.delta_tx_board
state.calib.delta_tx_ps
);
} else
return WRH_HW_CALIB_NOT_FOUND;
......@@ -55,9 +53,7 @@ int wrpc_read_calibration_data(
if (scaledSfpDeltaRx) {
if (state.calib.rx_calibrated) {
*scaledSfpDeltaRx = picos_to_interval(
state.calib.delta_rx_phy
+ state.calib.sfp.delta_rx_ps
+ state.calib.delta_rx_board
state.calib.delta_rx_ps
);
} else
return WRH_HW_CALIB_NOT_FOUND;
......
......@@ -85,7 +85,7 @@ int wrpc_read_calibration_data(
RelativeDifference *scaledDelayCoefficient,
TimeInterval *scaledSfpDeltaTx,
TimeInterval *scaledSfpDeltaRx);
int wrpc_get_port_state(struct hal_port_state *port, const char *port_name);
int wrpc_get_port_state(struct wrc_port_state *port, const char *port_name);
static inline wrpc_arch_data_t *WRPC_ARCH_I(struct pp_instance *ppi)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment