Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
6
Merge Requests
6
CI / CD
CI / CD
Pipelines
Schedules
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
Software for White Rabbit PTP Core
Commits
0ca23154
Commit
0ca23154
authored
May 04, 2020
by
Vincent van Beveren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added WL tuning response
parent
9888862c
Pipeline
#227
failed with stages
in 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
wrx_wrpc.c
dev/wrx_wrpc.c
+13
-0
No files found.
dev/wrx_wrpc.c
View file @
0ca23154
...
...
@@ -4,6 +4,7 @@
//#include "ptpd.h"
//#include "ptpd_exports.h"
#include "sfp.h"
#include <string.h>
#include <ppsi/ppsi.h>
#include <hw/endpoint_regs.h>
...
...
@@ -138,13 +139,25 @@ int wrxExecute() {
switch
(
cmd
->
code
)
{
case
WRX_COMMAND_NONE
:
default:
return
0
;
case
WRX_COMMAND_GET_TUNEINFO
:
info
->
cmdreply
.
tuneInfo
.
tuneproc
=
WRX_TUNE_PROC_NONE
;
info
->
cmdcode
=
WRX_COMMAND_GET_TUNEINFO
;
break
;
case
WRX_COMMAND_GET_SFP_VENDOR_SN
:
// get Serial number
memcpy
(
info
->
cmdreply
.
sfpVendorSN
,
sfp_pn
,
16
);
info
->
cmdcode
=
WRX_COMMAND_GET_SFP_VENDOR_SN
;
break
;
/*
case WRX_COMMAND_AUTONEG_OFF:
pcs_write(MDIO_REG_MCR, 0x0160);
info->cmdcode = WRX_COMMAND_AUTONEG_OFF;
break;
case WRX_COMMAND_AUTONEG_ON:
pcs_write(MDIO_REG_MCR, 0x1140);
info->cmdcode = WRX_COMMAND_AUTONEG_ON;
break;
case WRX_COMMAND_GET_TUNEINFO:
// need 2 find transceiver type, and such...
...
...
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