4 #include <linux/types.h>
5 #include <linux/init.h>
6 #include <linux/device.h>
9 char *name; //set the MACRO of gpio
15 int io; //set the address of gpio
17 int enable; // disable = !enable //set the default value,i.e,GPIO_HIGH or GPIO_LOW
18 struct rksdmmc_iomux iomux;
22 bool power_ctrl_by_pmu;
23 char pmu_regulator[20];
27 struct rksdmmc_gpio_wifi_moudle {
28 int sdio_vol; //sdio reference voltage
30 struct rksdmmc_pmu mregulator;
31 struct rksdmmc_pmu ioregulator;
32 struct rksdmmc_gpio power_n; //PMU_EN
33 struct rksdmmc_gpio reset_n; //SYSRET_B, DAIRST
34 struct rksdmmc_gpio vddio;
35 struct rksdmmc_gpio bgf_int_b;
36 struct rksdmmc_gpio wifi_int_b;
37 struct rksdmmc_gpio gps_sync;
38 struct rksdmmc_gpio ANTSEL2; //pin5--ANTSEL2
39 struct rksdmmc_gpio ANTSEL3; //pin6--ANTSEL3
40 struct rksdmmc_gpio GPS_LAN; //pin33--GPS_LAN
50 int rfkill_get_wifi_power_state(int *power, int *vref_ctrl_enable);
51 void *rockchip_mem_prealloc(int section, unsigned long size);
52 int rockchip_wifi_ref_voltage(int on);
53 int rockchip_wifi_power(int on);
54 int rockchip_wifi_set_carddetect(int val);
55 int rockchip_wifi_get_oob_irq(void);
56 int rockchip_wifi_reset(int on);
57 int rockchip_wifi_mac_addr(unsigned char *buf);
58 void *rockchip_wifi_country_code(char *ccode);