* Global spi HIF function table
*
********************************************/
-wilc_hif_func_t hif_spi = {
+struct wilc_hif_func hif_spi = {
spi_init,
spi_deinit,
spi_read_reg,
#include "wilc_wfi_netdevice.h"
#include "wilc_wlan_cfg.h"
-extern wilc_hif_func_t hif_sdio;
-extern wilc_hif_func_t hif_spi;
+extern struct wilc_hif_func hif_sdio;
+extern struct wilc_hif_func hif_spi;
u32 wilc_get_chipid(u8 update);
typedef struct {
int quit;
wilc_wlan_io_func_t io_func;
- wilc_hif_func_t hif_func;
+ struct wilc_hif_func hif_func;
int cfg_frame_in_use;
struct wilc_cfg_frame cfg_frame;
u32 cfg_frame_offset;
goto _fail_;
}
memcpy((void *)&g_wlan.hif_func, &hif_sdio,
- sizeof(wilc_hif_func_t));
+ sizeof(struct wilc_hif_func));
} else {
if ((inp->io_func.io_type & 0x1) == HIF_SPI) {
if (!hif_spi.hif_init(inp, wilc_debug)) {
goto _fail_;
}
memcpy((void *)&g_wlan.hif_func, &hif_spi,
- sizeof(wilc_hif_func_t));
+ sizeof(struct wilc_hif_func));
} else {
ret = -EIO;
goto _fail_;
*
********************************************/
-typedef struct {
+struct wilc_hif_func {
int (*hif_init)(wilc_wlan_inp_t *, wilc_debug_func);
int (*hif_deinit)(void *);
int (*hif_read_reg)(u32, u32 *);
int (*hif_sync_ext)(int);
void (*hif_set_max_bus_speed)(void);
void (*hif_set_default_bus_speed)(void);
-} wilc_hif_func_t;
+};
/********************************************
*