Commit 66d1ff61 authored by Tristan Gingold's avatar Tristan Gingold

sw/fw/fd: add more static.

parent 6982d9a3
......@@ -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);
......
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