Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
PHSDefines.h
Go to the documentation of this file.
1 #ifndef BCM_PHS_DEFINES_H
2 #define BCM_PHS_DEFINES_H
3 
4 #define PHS_INVALID_TABLE_INDEX 0xffffffff
5 
6 /************************* MACROS **********************************************/
7 #define PHS_MEM_TAG "_SHP"
8 
9 
10 
11 //PHS Defines
12 #define STATUS_PHS_COMPRESSED 0xa1
13 #define STATUS_PHS_NOCOMPRESSION 0xa2
14 #define APPLY_PHS 1
15 #define MAX_NO_BIT 7
16 #define ZERO_PHSI 0
17 #define VERIFY 0
18 #define SIZE_MULTIPLE_32 4
19 #define UNCOMPRESSED_PACKET 0
20 #define DYNAMIC 0
21 #define SUPPRESS 0x80
22 #define NO_CLASSIFIER_MATCH 0
23 #define SEND_PACKET_UNCOMPRESSED 0
24 #define PHSI_IS_ZERO 0
25 #define PHSI_LEN 1
26 #define ERROR_LEN 0
27 #define PHS_BUFFER_SIZE 1532
28 
29 
30 #define MAX_PHSRULE_PER_SF 20
31 #define MAX_SERVICEFLOWS 17
32 
33 //PHS Error Defines
34 #define PHS_SUCCESS 0
35 #define ERR_PHS_INVALID_DEVICE_EXETENSION 0x800
36 #define ERR_PHS_INVALID_PHS_RULE 0x801
37 #define ERR_PHS_RULE_ALREADY_EXISTS 0x802
38 #define ERR_SF_MATCH_FAIL 0x803
39 #define ERR_INVALID_CLASSIFIERTABLE_FOR_SF 0x804
40 #define ERR_SFTABLE_FULL 0x805
41 #define ERR_CLSASSIFIER_TABLE_FULL 0x806
42 #define ERR_PHSRULE_MEMALLOC_FAIL 0x807
43 #define ERR_CLSID_MATCH_FAIL 0x808
44 #define ERR_PHSRULE_MATCH_FAIL 0x809
45 
46 typedef struct _S_PHS_RULE
47 {
60  //Reference Count for this PHS Rule
62  //Flag to Store Unclassified PHS rules only in DL
64 
66 
70 }S_PHS_RULE;
71 
72 
74 {
78 
79 typedef struct _S_CLASSIFIER_ENTRY
80 {
86 
88 
89 
90 typedef struct _S_CLASSIFIER_TABLE
91 {
96 
98 
99 
100 typedef struct _S_SERVICEFLOW_ENTRY
101 {
106 
107 typedef struct _S_SERVICEFLOW_TABLE
108 {
111 
113 
114 
115 typedef struct _PHS_DEVICE_EXTENSION
116 {
117  /* PHS Specific data*/
122 
123 
124 #endif