net: wireless: rockchip_wlan: add rtl8188eu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188eu / include / drv_types_sdio.h
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.\r
4  *                                        \r
5  * This program is free software; you can redistribute it and/or modify it\r
6  * under the terms of version 2 of the GNU General Public License as\r
7  * published by the Free Software Foundation.\r
8  *\r
9  * This program is distributed in the hope that it will be useful, but WITHOUT\r
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
11  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
12  * more details.\r
13  *\r
14  * You should have received a copy of the GNU General Public License along with\r
15  * this program; if not, write to the Free Software Foundation, Inc.,\r
16  * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
17  *\r
18  *\r
19  ******************************************************************************/\r
20 #ifndef __DRV_TYPES_SDIO_H__\r
21 #define __DRV_TYPES_SDIO_H__\r
22 \r
23 // SDIO Header Files\r
24 #ifdef PLATFORM_LINUX\r
25         #include <linux/mmc/sdio_func.h> \r
26         #include <linux/mmc/sdio_ids.h>\r
27 \r
28 #if defined(CONFIG_WOWLAN) || defined(CONFIG_AP_WOWLAN) || defined(CONFIG_PLATFORM_SPRD)\r
29         #include <linux/mmc/host.h>\r
30         #include <linux/mmc/card.h>\r
31 #endif\r
32 \r
33 #ifdef CONFIG_PLATFORM_SPRD\r
34         #include <linux/gpio.h>\r
35         #include <custom_gpio.h>\r
36 #endif // CONFIG_PLATFORM_SPRD\r
37 #endif\r
38 \r
39 #ifdef PLATFORM_OS_XP\r
40 #include <wdm.h>\r
41 #include <ntddsd.h>\r
42 #endif\r
43 \r
44 #ifdef PLATFORM_OS_CE\r
45 #include <sdcardddk.h>\r
46 #endif\r
47 \r
48 \r
49 typedef struct sdio_data\r
50 {\r
51         u8  func_number;\r
52  \r
53         u8  tx_block_mode;\r
54         u8  rx_block_mode;\r
55         u32 block_transfer_len;\r
56 \r
57 #ifdef PLATFORM_LINUX\r
58         struct sdio_func         *func;\r
59         _thread_hdl_ sys_sdio_irq_thd;\r
60 #endif\r
61 \r
62 #ifdef PLATFORM_OS_XP\r
63         PDEVICE_OBJECT                          pphysdevobj;\r
64         PDEVICE_OBJECT                          pfuncdevobj;\r
65         PDEVICE_OBJECT                          pnextdevobj;\r
66         SDBUS_INTERFACE_STANDARD        sdbusinft;\r
67         u8                                                      nextdevstacksz;\r
68 #endif\r
69 \r
70 #ifdef PLATFORM_OS_CE\r
71         SD_DEVICE_HANDLE                        hDevice;\r
72         SD_CARD_RCA                                     sd_rca;\r
73         SD_CARD_INTERFACE                       card_intf;\r
74         BOOLEAN                                         enableIsarWithStatus;\r
75         WCHAR                                           active_path[MAX_ACTIVE_REG_PATH];\r
76         SD_HOST_BLOCK_CAPABILITY        sd_host_blk_cap;\r
77 #endif\r
78 } SDIO_DATA, *PSDIO_DATA;\r
79 \r
80 #endif\r
81 \r