Merge tag 'lsk-v3.10-android-14.07' into develop-3.10
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723bs / include / drv_types_gspi.h
1 /******************************************************************************\r
2  *\r
3  * Copyright(c) 2007 - 2012 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_GSPI_H__\r
21 #define __DRV_TYPES_GSPI_H__\r
22 \r
23 // SPI Header Files\r
24 #ifdef PLATFORM_LINUX\r
25         #include <linux/platform_device.h>\r
26         #include <linux/spi/spi.h>\r
27         #include <linux/gpio.h>\r
28         //#include <mach/ldo.h>\r
29         #include <asm/mach-types.h>\r
30         #include <asm/gpio.h>\r
31         #include <asm/io.h>\r
32         #include <mach/board.h>\r
33         #include <mach/hardware.h>\r
34         #include <mach/irqs.h>\r
35         #include <custom_gpio.h>\r
36 #endif\r
37 \r
38 \r
39 typedef struct gspi_data\r
40 {\r
41         u8  func_number;\r
42 \r
43         u8  tx_block_mode;\r
44         u8  rx_block_mode;\r
45         u32 block_transfer_len;\r
46 \r
47 #ifdef PLATFORM_LINUX\r
48         struct spi_device *func;\r
49 \r
50         struct workqueue_struct *priv_wq;\r
51         struct delayed_work irq_work;\r
52 #endif\r
53 } GSPI_DATA, *PGSPI_DATA;\r
54 \r
55 #endif // #ifndef __DRV_TYPES_GSPI_H__\r
56 \r