static inline void acquire_bus(BUS_ACQUIRE_T acquire)
{
-
mutex_lock(&g_linux_wlan->hif_cs);
#ifndef WILC_OPTIMIZE_SLEEP_INT
if (genuChipPSstate != CHIP_WAKEDUP)
if (acquire == ACQUIRE_AND_WAKEUP)
chip_wakeup();
}
-
}
static inline void release_bus(BUS_RELEASE_T release)
{
static void wilc_wlan_txq_remove(struct txq_entry_t *tqe)
{
-
wilc_wlan_dev_t *p = &g_wlan;
if (tqe == p->txq_head) {
-
p->txq_head = tqe->next;
if (p->txq_head)
p->txq_head->prev = NULL;
tqe->next->prev = tqe->prev;
}
p->txq_entries -= 1;
-
}
static struct txq_entry_t *
PRINT_D(TX_DBG, "Wake up the txq_handler\n");
return 0;
-
}
u32 Statisitcs_totalAcks = 0, Statisitcs_DroppedAcks = 0;
static inline int Init_TCP_tracking(void)
{
-
return 0;
-
}
static inline int add_TCP_track_session(u32 src_prt, u32 dst_prt, u32 seq)
{
static inline int Update_TCP_track_session(u32 index, u32 Ack)
{
-
if (Ack > Acks_keep_track_info[index].Bigger_Ack_num)
Acks_keep_track_info[index].Bigger_Ack_num = Ack;
return 0;
-
}
static inline int add_TCP_Pending_Ack(u32 Ack, u32 Session_index, struct txq_entry_t *txqe)
{
Pending_Acks_info[PendingAcks_arrBase + Pending_Acks].Session_index = Session_index;
txqe->tcp_PendingAck_index = PendingAcks_arrBase + Pending_Acks;
Pending_Acks++;
-
} else {
}
int wilc_wlan_txq_add_mgmt_pkt(struct net_device *dev, void *priv, u8 *buffer,
u32 buffer_size, wilc_tx_complete_func_t func)
{
-
wilc_wlan_dev_t *p = &g_wlan;
struct txq_entry_t *tqe;
if ((clk_status_reg & 0x1) == 0)
wilc_debug(N_ERR, "clocks still OFF. Wake up failed\n");
-
}
if ((clk_status_reg & 0x1) == 0) {
g_wlan.hif_func.hif_write_reg(0xf0, reg &
genuChipPSstate = CHIP_SLEEPING_MANUAL;
release_bus(RELEASE_ONLY);
-
}
int wilc_wlan_handle_txq(struct net_device *dev, u32 *pu32TxqCount)
sum = 0;
do {
if ((tqe != NULL) && (i < (WILC_VMM_TBL_SIZE - 1))) {
-
if (tqe->type == WILC_CFG_PKT)
vmm_sz = ETH_CONFIG_PKT_HDR_OFFSET;
acquire_bus(ACQUIRE_AND_WAKEUP);
counter = 0;
do {
-
ret = p->hif_func.hif_read_reg(WILC_HOST_TX_CTRL, ®);
if (!ret) {
wilc_debug(N_ERR, "[wilc txq]: fail can't read reg vmm_tbl_entry..\n");
}
else
{
-
if (!is_cfg_packet) {
if (pkt_len > 0) {
frmw_to_linux(wilc,
}
static void wilc_pllupdate_isr_ext(u32 int_stats)
{
-
int trials = 10;
g_wlan.hif_func.hif_clear_int_ext(PLL_INT_CLR);
p->hif_func.hif_read_size(&size);
size = ((size & 0x7fff) << 2);
retries++;
-
}
if (size > 0) {
}
release_bus(RELEASE_ALLOW_SLEEP);
p->hif_func.hif_deinit(NULL);
-
}
static int wilc_wlan_cfg_commit(int type, u32 drvHandler)
p->cfg_frame_in_use = 0;
p->cfg_frame_offset = 0;
p->cfg_seq_no += 1;
-
}
return ret_size;
release_bus(RELEASE_ONLY);
return ret;
-
}
u32 wilc_get_chipid(u8 update)
int wilc_wlan_init(struct net_device *dev, wilc_wlan_inp_t *inp)
{
-
int ret = 0;
PRINT_D(INIT_DBG, "Initializing WILC_Wlan ...\n");
g_wlan.tx_buffer = NULL;
return ret;
-
}
u16 set_machw_change_vir_if(struct net_device *dev, bool bValue)