wifi: renew patch drivers/net/wireless
[firefly-linux-kernel-4.4.55.git] / drivers / net / wireless / rtl8192du / include / drv_types_xp.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_XP_H__
21 #define __DRV_TYPES_XP_H__
22
23 #include <drv_conf.h>
24 #include <osdep_service.h>
25
26
27
28 #define MAX_MCAST_LIST_NUM                                      32
29
30
31
32 //for ioctl
33 #define MAKE_DRIVER_VERSION(_MainVer,_MinorVer) ((((u32)(_MainVer))<<16)+_MinorVer)
34
35 #define NIC_HEADER_SIZE                         14                      //!< can be moved to typedef.h
36 #define NIC_MAX_PACKET_SIZE                     1514            //!< can be moved to typedef.h
37 #define NIC_MAX_SEND_PACKETS                    10              // max number of send packets the MiniportSendPackets function can accept, can be moved to typedef.h
38 #define NIC_VENDOR_DRIVER_VERSION       MAKE_DRIVER_VERSION(0,001)      //!< can be moved to typedef.h
39 #define NIC_MAX_PACKET_SIZE                     1514            //!< can be moved to typedef.h
40
41
42 #undef ON_VISTA
43 //added by Jackson
44 #ifndef ON_VISTA
45 //
46 // Bus driver versions
47 //
48
49 #define SDBUS_DRIVER_VERSION_1          0x100
50 #define SDBUS_DRIVER_VERSION_2          0x200
51
52 #define    SDP_FUNCTION_TYPE    4
53 #define    SDP_BUS_DRIVER_VERSION 5
54 #define    SDP_BUS_WIDTH 6
55 #define    SDP_BUS_CLOCK 7
56 #define    SDP_BUS_INTERFACE_CONTROL 8
57 #define    SDP_HOST_BLOCK_LENGTH 9
58 #define    SDP_FUNCTION_BLOCK_LENGTH 10
59 #define    SDP_FN0_BLOCK_LENGTH 11
60 #define    SDP_FUNCTION_INT_ENABLE 12
61 #endif
62
63
64 typedef struct _MP_REG_ENTRY
65 {
66
67         NDIS_STRING             RegName;        // variable name text
68         BOOLEAN                 bRequired;      // 1 -> required, 0 -> optional
69
70         u8                      Type;           // NdisParameterInteger/NdisParameterHexInteger/NdisParameterStringle/NdisParameterMultiString
71         uint                    FieldOffset;    // offset to MP_ADAPTER field
72         uint                    FieldSize;      // size (in bytes) of the field
73         
74 #ifdef UNDER_AMD64
75         u64                     Default;
76 #else
77         u32                     Default;                // default value to use
78 #endif
79
80         u32                     Min;                    // minimum value allowed
81         u32                     Max;            // maximum value allowed
82 } MP_REG_ENTRY, *PMP_REG_ENTRY;
83
84
85 typedef struct _OCTET_STRING{
86         u8      *Octet;
87         u16      Length;
88 } OCTET_STRING, *POCTET_STRING;
89
90
91
92
93
94 #endif
95