net: wireless: rockchip_wlan: add rtl8188fu support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8188fu / include / drv_types_gspi.h
diff --git a/drivers/net/wireless/rockchip_wlan/rtl8188fu/include/drv_types_gspi.h b/drivers/net/wireless/rockchip_wlan/rtl8188fu/include/drv_types_gspi.h
new file mode 100644 (file)
index 0000000..27b3cb0
--- /dev/null
@@ -0,0 +1,56 @@
+/******************************************************************************\r
+ *\r
+ * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.\r
+ *\r
+ * This program is free software; you can redistribute it and/or modify it\r
+ * under the terms of version 2 of the GNU General Public License as\r
+ * published by the Free Software Foundation.\r
+ *\r
+ * This program is distributed in the hope that it will be useful, but WITHOUT\r
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\r
+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for\r
+ * more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License along with\r
+ * this program; if not, write to the Free Software Foundation, Inc.,\r
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA\r
+ *\r
+ *\r
+ ******************************************************************************/\r
+#ifndef __DRV_TYPES_GSPI_H__\r
+#define __DRV_TYPES_GSPI_H__\r
+\r
+// SPI Header Files\r
+#ifdef PLATFORM_LINUX\r
+       #include <linux/platform_device.h>\r
+       #include <linux/spi/spi.h>\r
+       #include <linux/gpio.h>\r
+       //#include <mach/ldo.h>\r
+       #include <asm/mach-types.h>\r
+       #include <asm/gpio.h>\r
+       #include <asm/io.h>\r
+       #include <mach/board.h>\r
+       #include <mach/hardware.h>\r
+       #include <mach/irqs.h>\r
+       #include <custom_gpio.h>\r
+#endif\r
+\r
+\r
+typedef struct gspi_data\r
+{\r
+       u8  func_number;\r
+\r
+       u8  tx_block_mode;\r
+       u8  rx_block_mode;\r
+       u32 block_transfer_len;\r
+\r
+#ifdef PLATFORM_LINUX\r
+       struct spi_device *func;\r
+\r
+       struct workqueue_struct *priv_wq;\r
+       struct delayed_work irq_work;\r
+#endif\r
+} GSPI_DATA, *PGSPI_DATA;\r
+\r
+#endif // #ifndef __DRV_TYPES_GSPI_H__\r
+\r