Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gdm_qos.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2012 GCT Semiconductor, Inc. All rights reserved.
3  *
4  * This software is licensed under the terms of the GNU General Public
5  * License version 2, as published by the Free Software Foundation, and
6  * may be copied, distributed, and modified under those terms.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  */
13 
14 #if !defined(GDM_QOS_H_20090403)
15 #define GDM_QOS_H_20090403
16 
17 #include <linux/types.h>
18 #include <linux/usb.h>
19 #include <linux/list.h>
20 
21 #define BOOLEAN u8
22 
23 #define QOS_MAX 16
24 #define IPTYPEOFSERVICE 0x8000
25 #define PROTOCOL 0x4000
26 #define IPMASKEDSRCADDRESS 0x2000
27 #define IPMASKEDDSTADDRESS 0x1000
28 #define PROTOCOLSRCPORTRANGE 0x800
29 #define PROTOCOLDSTPORTRANGE 0x400
30 #define DSTMACADDR 0x200
31 #define SRCMACADDR 0x100
32 #define ETHERTYPE 0x80
33 #define IEEE802_1DUSERPRIORITY 0x40
34 #define IEEE802_1QVLANID 0x10
35 
37  /* union{
38  U16 all;
39  struct _CS_CLASSIFIER_RULE_ENABLE{
40  IPTypeOfService:1,
41  Protocol:1,
42  IPMaskedSrcAddress:1,
43  IPMaskedDstAddress:1,
44  ProtocolSrcPortRange:1,
45  ProtocolDstPortRange:1,
46  DstMacAddr:1,
47  SrcMacAddr:1,
48  Ethertype:1,
49  IEEE802_1DUserPriority:1,
50  IEEE802_1QVLANID:1,
51  Reserved:5;
52  } fields;
53  } */
70 };
71 
72 struct qos_entry_s {
73  struct list_head list;
74  struct sk_buff *skb;
75  struct net_device *dev;
76 
77 };
78 
79 struct qos_cb_s {
86 };
87 
88 void gdm_qos_init(void *nic_ptr);
89 void gdm_qos_release_list(void *nic_ptr);
90 int gdm_qos_send_hci_pkt(struct sk_buff *skb, struct net_device *dev);
91 void gdm_recv_qos_hci_packet(void *nic_ptr, u8 *buf, int size);
92 
93 #endif