Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
d6cd932f
Commit
d6cd932f
authored
Feb 19, 2021
by
Adam Wujek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arch-wrpc: rename hal_port_state to wrc_port_state
Signed-off-by:
Adam Wujek
<
adam.wujek@creotech.pl
>
parent
e18b3f70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
8 deletions
+4
-8
wrpc-calibration.c
arch-wrpc/wrpc-calibration.c
+3
-7
wrpc.h
arch-wrpc/wrpc.h
+1
-1
No files found.
arch-wrpc/wrpc-calibration.c
View file @
d6cd932f
...
...
@@ -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
;
...
...
arch-wrpc/wrpc.h
View file @
d6cd932f
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment