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
31
Issues
31
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
734840b7
Commit
734840b7
authored
Nov 23, 2015
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
softpll: irq_count is now a field of the data structure
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
1abb1e2c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+11
-8
softpll_ng.c
softpll/softpll_ng.c
+9
-8
softpll_ng.h
softpll/softpll_ng.h
+1
-0
wrpc-dump.c
tools/wrpc-dump.c
+1
-0
No files found.
softpll/softpll_ng.c
View file @
734840b7
...
...
@@ -21,8 +21,6 @@
#include "irq.h"
volatile
int
irq_count
=
0
;
volatile
struct
SPLL_WB
*
SPLL
;
volatile
struct
PPSG_WB
*
PPSG
;
...
...
@@ -241,7 +239,7 @@ void _irq_entry(void)
update_loops
(
s
,
tag_value
,
tag_source
);
}
irq_count
++
;
s
->
irq_count
++
;
clear_irq
();
}
...
...
@@ -445,13 +443,16 @@ void spll_get_num_channels(int *n_ref, int *n_out)
void
spll_show_stats
()
{
struct
softpll_state
*
s
=
(
struct
softpll_state
*
)
&
softpll
;
if
(
softpll
.
mode
>
0
)
pp_printf
(
"softpll: irqs %d seq %s mode %d "
"alignment_state %d HL%d ML%d HY=%d MY=%d DelCnt=%d
\n
"
,
irq_count
,
stringlist_lookup
(
seq_states
,
softpll
.
seq_state
),
softpll
.
mode
,
softpll
.
ext
.
align_state
,
softpll
.
helper
.
ld
.
locked
,
softpll
.
mpll
.
ld
.
locked
,
softpll
.
helper
.
pi
.
y
,
softpll
.
mpll
.
pi
.
y
,
softpll
.
delock_count
);
s
->
irq_count
,
stringlist_lookup
(
seq_states
,
s
->
seq_state
),
s
->
mode
,
s
->
ext
.
align_state
,
s
->
helper
.
ld
.
locked
,
s
->
mpll
.
ld
.
locked
,
s
->
helper
.
pi
.
y
,
s
->
mpll
.
pi
.
y
,
s
->
delock_count
);
}
int
spll_shifter_busy
(
int
channel
)
...
...
@@ -621,7 +622,7 @@ void spll_update()
if
(
is_wr_switch
)
{
stats
.
sequence
++
;
stats
.
mode
=
softpll
.
mode
;
stats
.
irq_cnt
=
irq_count
;
stats
.
irq_cnt
=
softpll
.
irq_count
;
stats
.
seq_state
=
softpll
.
seq_state
;
stats
.
align_state
=
softpll
.
ext
.
align_state
;
stats
.
H_lock
=
softpll
.
helper
.
ld
.
locked
;
...
...
softpll/softpll_ng.h
View file @
734840b7
...
...
@@ -183,6 +183,7 @@ struct softpll_state {
int
dac_timeout
;
int
default_dac_main
;
int
delock_count
;
unsigned
irq_count
;
int32_t
mpll_shift_ps
;
struct
spll_helper_state
helper
;
...
...
tools/wrpc-dump.c
View file @
734840b7
...
...
@@ -426,6 +426,7 @@ static struct dump_info pll_info [] = {
DUMP_FIELD
(
int
,
dac_timeout
),
DUMP_FIELD
(
int
,
default_dac_main
),
DUMP_FIELD
(
int
,
delock_count
),
DUMP_FIELD
(
uint32_t
,
irq_count
),
DUMP_FIELD
(
int
,
mpll_shift_ps
),
DUMP_FIELD
(
int
,
helper
.
p_adder
),
DUMP_FIELD
(
int
,
helper
.
p_setpoint
),
...
...
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