net: wireless: rockchip_wlan: add rtl8723cs support
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rockchip_wlan / rtl8723cs / include / drv_types_ce.h
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_CE_H__
21 #define __DRV_TYPES_CE_H__
22
23 #include <drv_conf.h>
24 #include <osdep_service.h>
25
26 #include <Sdcardddk.h>
27
28 #define MAX_ACTIVE_REG_PATH 256
29
30 #define MAX_MCAST_LIST_NUM                                      32
31
32
33
34 /* for ioctl */
35 #define MAKE_DRIVER_VERSION(_MainVer, _MinorVer)        ((((u32)(_MainVer))<<16)+_MinorVer)
36
37 #define NIC_HEADER_SIZE                         14                      /* !< can be moved to typedef.h */
38 #define NIC_MAX_PACKET_SIZE                     1514            /* !< can be moved to typedef.h */
39 #define NIC_MAX_SEND_PACKETS                    10              /* max number of send packets the MiniportSendPackets function can accept, can be moved to typedef.h */
40 #define NIC_VENDOR_DRIVER_VERSION       MAKE_DRIVER_VERSION(0, 001)     /* !< can be moved to typedef.h */
41 #define NIC_MAX_PACKET_SIZE                     1514            /* !< can be moved to typedef.h */
42
43 typedef struct _MP_REG_ENTRY {
44
45         NDIS_STRING             RegName;        /* variable name text */
46         BOOLEAN                 bRequired;      /* 1->required, 0->optional */
47
48         u8                      Type;           /* NdisParameterInteger/NdisParameterHexInteger/NdisParameterStringle/NdisParameterMultiString */
49         uint                    FieldOffset;    /* offset to MP_ADAPTER field */
50         uint                    FieldSize;      /* size (in bytes) of the field */
51
52 #ifdef UNDER_AMD64
53         u64                     Default;
54 #else
55         u32                     Default;                /* default value to use */
56 #endif
57
58         u32                     Min;                    /* minimum value allowed */
59         u32                     Max;            /* maximum value allowed */
60 } MP_REG_ENTRY, *PMP_REG_ENTRY;
61
62 #ifdef CONFIG_USB_HCI
63 typedef struct _USB_EXTENSION {
64         LPCUSB_FUNCS    _lpUsbFuncs;
65         USB_HANDLE          _hDevice;
66         PVOID               pAdapter;
67
68 #if 0
69         USB_ENDPOINT_DESCRIPTOR         _endpACLIn;
70         USB_ENDPOINT_DESCRIPTOR         _endpACLOutHigh;
71         USB_ENDPOINT_DESCRIPTOR         _endpACLOutNormal;
72
73         USB_PIPE        pPipeIn;
74         USB_PIPE        pPipeOutNormal;
75         USB_PIPE        pPipeOutHigh;
76 #endif
77
78 } USB_EXTENSION, *PUSB_EXTENSION;
79 #endif
80
81
82 typedef struct _OCTET_STRING {
83         u8      *Octet;
84         u16      Length;
85 } OCTET_STRING, *POCTET_STRING;
86
87
88
89
90
91 #endif