Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Trigger Distribution
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
White Rabbit Trigger Distribution
Commits
66d1ff61
Commit
66d1ff61
authored
Aug 01, 2018
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw/fw/fd: add more static.
parent
6982d9a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
15 deletions
+12
-15
wrtd-rt-fd.c
software/firmware/fd/wrtd-rt-fd.c
+12
-15
No files found.
software/firmware/fd/wrtd-rt-fd.c
View file @
66d1ff61
...
...
@@ -25,11 +25,9 @@
#define OUT_TIMEOUT 10
static
uint32_t
promiscuous_mode
=
0
;
struct
wrtd_out_trigger
triggers
[
FD_HASH_ENTRIES
];
/**< list of triggers */
struct
wrtd_out_trigger
*
ht
[
FD_HASH_ENTRIES
];
/* hash table */
unsigned
int
tlist_count
=
0
;
/**< number of valid trigger entry
static
unsigned
int
tlist_count
=
0
;
/**< number of valid trigger entry
in tlist */
static
struct
wrtd_out_channel
wrtd_out_channels
[
FD_NUM_CHANNELS
];
/**< Output
state
...
...
@@ -45,27 +43,27 @@ enum wrtd_in_wr_link {
static
int
wr_state
;
int
wr_present
(
void
)
static
int
wr_present
(
void
)
{
return
!!
(
dp_readl
(
FD_REG_TCR
)
&
FD_TCR_WR_PRESENT
);
}
int
wr_link_up
()
static
int
wr_link_up
()
{
return
dp_readl
(
FD_REG_TCR
)
&
FD_TCR_WR_LINK
;
}
int
wr_time_locked
()
static
int
wr_time_locked
()
{
return
dp_readl
(
FD_REG_TCR
)
&
FD_TCR_WR_LOCKED
;
}
int
wr_time_ready
()
static
int
wr_time_ready
()
{
return
1
;
}
void
wr_enable_lock
(
int
enable
)
static
void
wr_enable_lock
(
int
enable
)
{
if
(
enable
)
dp_writel
(
FD_TCR_WR_ENABLE
,
FD_REG_TCR
);
...
...
@@ -76,7 +74,7 @@ void wr_enable_lock(int enable)
/**
* It updates the White-Rabbit link status
*/
void
wr_update_link
(
void
)
static
void
wr_update_link
(
void
)
{
int
i
;
...
...
@@ -112,7 +110,7 @@ void wr_update_link(void)
}
}
int
wr_is_timing_ok
()
static
int
wr_is_timing_ok
()
{
return
(
wr_state
==
WR_LINK_SYNCED
);
}
...
...
@@ -207,7 +205,7 @@ static void log_trigger(int type, int miss_reason,
struct
trtl_fw_msg
msg
;
int
ret
;
if
(
!
out
&&
(
type
!=
WRTD_LOG_PROMISC
||
!
promiscuous_mode
))
if
(
!
out
&&
(
type
!=
WRTD_LOG_PROMISC
))
return
;
if
(
out
&&
!
(
out
->
config
.
log_level
&
type
))
return
;
...
...
@@ -358,7 +356,7 @@ static int check_output_timeout (struct wrtd_out_channel *out)
/**
* It updates the latency stats
*/
void
update_latency_stats
(
struct
pulse_queue_entry
*
pq_ent
)
static
void
update_latency_stats
(
struct
pulse_queue_entry
*
pq_ent
)
{
/* Read the time and calculate the latency */
struct
lrt_output_rule
*
rule
=
pq_ent
->
rule
;
...
...
@@ -630,7 +628,7 @@ static void filter_trigger(struct wrtd_trigger_entry *trig)
}
void
do_rx
(
void
)
static
void
do_rx
(
void
)
{
volatile
struct
wrtd_trigger_entry
*
ent
;
struct
wrtd_trigger_entry
trig
;
...
...
@@ -656,7 +654,7 @@ void do_rx(void)
}
}
void
do_outputs
(
void
)
static
void
do_outputs
(
void
)
{
int
i
;
...
...
@@ -910,7 +908,6 @@ static int wrtd_o_init(void)
return
-
EINVAL
;
}
promiscuous_mode
=
0
;
tlist_count
=
0
;
wr_state
=
WR_LINK_OFFLINE
;
wr_enable_lock
(
0
);
...
...
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