diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/net/iseries_veth.h |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'drivers/net/iseries_veth.h')
-rw-r--r-- | drivers/net/iseries_veth.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/drivers/net/iseries_veth.h b/drivers/net/iseries_veth.h new file mode 100644 index 000000000000..d9370f79b83e --- /dev/null +++ b/drivers/net/iseries_veth.h | |||
@@ -0,0 +1,46 @@ | |||
1 | /* File veth.h created by Kyle A. Lucke on Mon Aug 7 2000. */ | ||
2 | |||
3 | #ifndef _ISERIES_VETH_H | ||
4 | #define _ISERIES_VETH_H | ||
5 | |||
6 | #define VethEventTypeCap (0) | ||
7 | #define VethEventTypeFrames (1) | ||
8 | #define VethEventTypeMonitor (2) | ||
9 | #define VethEventTypeFramesAck (3) | ||
10 | |||
11 | #define VETH_MAX_ACKS_PER_MSG (20) | ||
12 | #define VETH_MAX_FRAMES_PER_MSG (6) | ||
13 | |||
14 | struct VethFramesData { | ||
15 | u32 addr[VETH_MAX_FRAMES_PER_MSG]; | ||
16 | u16 len[VETH_MAX_FRAMES_PER_MSG]; | ||
17 | u32 eofmask; | ||
18 | }; | ||
19 | #define VETH_EOF_SHIFT (32-VETH_MAX_FRAMES_PER_MSG) | ||
20 | |||
21 | struct VethFramesAckData { | ||
22 | u16 token[VETH_MAX_ACKS_PER_MSG]; | ||
23 | }; | ||
24 | |||
25 | struct VethCapData { | ||
26 | u8 caps_version; | ||
27 | u8 rsvd1; | ||
28 | u16 num_buffers; | ||
29 | u16 ack_threshold; | ||
30 | u16 rsvd2; | ||
31 | u32 ack_timeout; | ||
32 | u32 rsvd3; | ||
33 | u64 rsvd4[3]; | ||
34 | }; | ||
35 | |||
36 | struct VethLpEvent { | ||
37 | struct HvLpEvent base_event; | ||
38 | union { | ||
39 | struct VethCapData caps_data; | ||
40 | struct VethFramesData frames_data; | ||
41 | struct VethFramesAckData frames_ack_data; | ||
42 | } u; | ||
43 | |||
44 | }; | ||
45 | |||
46 | #endif /* _ISERIES_VETH_H */ | ||