~n-muench/ubuntu/oneiric/open-vm-tools/open-vm-tools.fix-836277

« back to all changes in this revision

Viewing changes to modules/freebsd/vmxnet/vmxnet_def.h

  • Committer: Bazaar Package Importer
  • Author(s): Devid Antonio Filoni
  • Date: 2008-08-15 21:21:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080815212140-05fhxj8wroosysmj
Tags: 2008.08.08-109361-1ubuntu1
* Merge from Debian unstable (LP: #258393), remaining Ubuntu change:
  - add ubuntu_toolchain_FTBFS.dpatch patch, fix FTBFS
* Update ubuntu_toolchain_FTBFS.dpatch patch for the new version.

Show diffs side-by-side

added added

removed removed

Lines of Context:
97
97
/*
98
98
 * An invalid ring index.
99
99
 */
100
 
#define VMXNET_INVALID_RING_INDEX       -1
 
100
#define VMXNET_INVALID_RING_INDEX       (-1)
101
101
 
102
102
/*
103
103
 * Features that are implemented by the driver.  These are driver
120
120
#define VMXNET_FEATURE_TSO                      0x02
121
121
#define VMXNET_FEATURE_JUMBO_FRAME              0x04
122
122
#define VMXNET_FEATURE_LPD                      0x08
123
 
#define VMXNET_FEATURE_BPF                      0x10
124
123
 
125
124
/*
126
125
 * Define the set of capabilities required by each feature above
128
127
#define VMXNET_FEATURE_ZERO_COPY_TX_CAPS        VMXNET_CAP_SG
129
128
#define VMXNET_FEATURE_TSO_CAPS                 VMXNET_CAP_TSO
130
129
#define VMXNET_HIGHEST_FEATURE_BIT              VMXNET_FEATURE_TSO
131
 
#define VMXNET_FEATURE_BPF_CAPS                 VMNET_CAP_BPF
132
130
 
133
131
#define VMXNET_INC(val, max)     \
134
132
   val++;                        \
142
140
 */
143
141
typedef uint32 Vmxnet_DDMagic;
144
142
 
145
 
 
146
 
/*
147
 
 * Max number of packet patterns in a single filter & maximum packet size
148
 
 * that can match a filter.  Used by vmxnet wake-on-packet-pattern-receive.
149
 
 */
150
 
 
151
 
#define MAX_NUM_FILTER_PTTRNS   6
152
 
#define MAX_PKT_FILTER_SIZE   128
153
 
 
154
 
 
155
143
/*
156
144
 * Wake packet pattern commands sent through VMXNET_WAKE_PKT_PATTERNS port
157
145
 */
179
167
   } pktPttrn;
180
168
} Vmxnet_WakePktCmd;
181
169
 
182
 
 
183
 
/*
184
 
 * Representation for packet filter pattern set, needs to fit w/i an MPN
185
 
 */
186
 
 
187
 
typedef struct Vmxnet_PttrnBytes {
188
 
   uint8 byteOff; /* offset within packet of pattern byte */
189
 
   uint8 byteVal; /* value of pattern byte within packet */
190
 
} Vmxnet_PttrnBytes;
191
 
 
192
 
typedef struct Vmxnet_PktFltrPttrns {
193
 
   uint8 prevCmd; /* to check sanity of VMXNET_PM_OPCODE_START..END sequence */
194
 
   uint8 nmPttrns; /* count patterns 1..MAX_NUM_FILTER_PTTRNS */
195
 
   uint8 nmPttrnBytes[MAX_NUM_FILTER_PTTRNS]; /* 1..MAX_PKT_FILTER_SIZE */
196
 
   Vmxnet_PttrnBytes pttrnBytes[MAX_NUM_FILTER_PTTRNS][MAX_PKT_FILTER_SIZE];
197
 
} Vmxnet_PktFltrPttrns;
198
 
 
199
170
#endif /* _VMXNET_DEF_H_ */
200
 
 
201