drv_types_sdio.h 2.2 KB

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