1 /******************************************************************************
\r
3 * Copyright(c) 2007 - 2011 Realtek Corporation. All rights reserved.
\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
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
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
19 ******************************************************************************/
\r
20 #ifndef __DRV_TYPES_SDIO_H__
\r
21 #define __DRV_TYPES_SDIO_H__
\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
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
33 #ifdef CONFIG_PLATFORM_SPRD
\r
34 #include <linux/gpio.h>
\r
35 #include <custom_gpio.h>
\r
36 #endif // CONFIG_PLATFORM_SPRD
\r
39 #ifdef PLATFORM_OS_XP
\r
44 #ifdef PLATFORM_OS_CE
\r
45 #include <sdcardddk.h>
\r
49 typedef struct sdio_data
\r
55 u32 block_transfer_len;
\r
57 #ifdef PLATFORM_LINUX
\r
58 struct sdio_func *func;
\r
59 _thread_hdl_ sys_sdio_irq_thd;
\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
70 #ifdef PLATFORM_OS_CE
\r
71 SD_DEVICE_HANDLE hDevice;
\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
78 } SDIO_DATA, *PSDIO_DATA;
\r