#include "wilc_wfi_cfgoperations.h"
#include "host_interface.h"
-
MODULE_AUTHOR("Mai Daftedar");
MODULE_LICENSE("Dual BSD/GPL");
-
struct net_device *WILC_WFI_devs[2];
/*
static int use_napi;
module_param(use_napi, int, 0);
-
/*
* A structure representing an in-flight packet.
*/
u8 data[ETH_DATA_LEN];
};
-
-
int pool_size = 8;
module_param(pool_size, int, 0);
-
static void WILC_WFI_TxTimeout(struct net_device *dev);
static void (*WILC_WFI_Interrupt)(int, void *, struct pt_regs *);
int WILC_WFI_Release(struct net_device *dev)
{
/* release ports, irq and such -- like fops->close */
-
netif_stop_queue(dev); /* can't transmit any more */
return 0;
u32 *saddr, *daddr;
struct WILC_WFI_packet *tx_buffer;
-
/* I am paranoid. Ain't I? */
if (len < sizeof(struct ethhdr) + sizeof(struct iphdr)) {
PRINT_D(RX_DBG, "WILC_WFI: Hmm... packet too short (%i octets)\n",
(unsigned long) priv->stats.tx_packets);
} else
WILC_WFI_Interrupt(0, dev, NULL);
-
}
/**
{
struct WILC_WFI_priv *priv;
-
/*
* Then, assign other fields in dev, using ether_setup() and some
* hand assignments
void StartConfigSim(void);
-
-
-
-
-
-
/**
* @brief WILC_WFI_Stat
* @details Return statistics to the caller
WILC_WFI_Interrupt = use_napi ? WILC_WFI_NapiInterrupt : WILC_WFI_RegularInterrupt;
for (i = 0; i < 2; i++) {
-
/* Allocate the net devices */
WILC_WFI_devs[i] = alloc_netdev(sizeof(struct WILC_WFI_priv), "wlan%d",
WILC_WFI_Init);
ret = 0;
}
-
/*init atmel driver */
priv[0] = netdev_priv(WILC_WFI_devs[0]);
priv[1] = netdev_priv(WILC_WFI_devs[1]);
}
-
module_init(WILC_WFI_InitModule);
module_exit(WILC_WFI_Cleanup);