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 /include/asm-s390/qeth.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 'include/asm-s390/qeth.h')
-rw-r--r-- | include/asm-s390/qeth.h | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/include/asm-s390/qeth.h b/include/asm-s390/qeth.h new file mode 100644 index 000000000000..930d378ef75a --- /dev/null +++ b/include/asm-s390/qeth.h | |||
@@ -0,0 +1,78 @@ | |||
1 | /* | ||
2 | * include/asm-s390/qeth.h | ||
3 | * | ||
4 | * ioctl definitions for qeth driver | ||
5 | * | ||
6 | * Copyright (C) 2004 IBM Corporation | ||
7 | * | ||
8 | * Author(s): Thomas Spatzier <tspat@de.ibm.com> | ||
9 | * | ||
10 | */ | ||
11 | #ifndef __ASM_S390_QETH_IOCTL_H__ | ||
12 | #define __ASM_S390_QETH_IOCTL_H__ | ||
13 | #include <linux/ioctl.h> | ||
14 | |||
15 | #define SIOC_QETH_ARP_SET_NO_ENTRIES (SIOCDEVPRIVATE) | ||
16 | #define SIOC_QETH_ARP_QUERY_INFO (SIOCDEVPRIVATE + 1) | ||
17 | #define SIOC_QETH_ARP_ADD_ENTRY (SIOCDEVPRIVATE + 2) | ||
18 | #define SIOC_QETH_ARP_REMOVE_ENTRY (SIOCDEVPRIVATE + 3) | ||
19 | #define SIOC_QETH_ARP_FLUSH_CACHE (SIOCDEVPRIVATE + 4) | ||
20 | #define SIOC_QETH_ADP_SET_SNMP_CONTROL (SIOCDEVPRIVATE + 5) | ||
21 | #define SIOC_QETH_GET_CARD_TYPE (SIOCDEVPRIVATE + 6) | ||
22 | |||
23 | struct qeth_arp_cache_entry { | ||
24 | __u8 macaddr[6]; | ||
25 | __u8 reserved1[2]; | ||
26 | __u8 ipaddr[16]; /* for both IPv4 and IPv6 */ | ||
27 | __u8 reserved2[32]; | ||
28 | } __attribute__ ((packed)); | ||
29 | |||
30 | struct qeth_arp_qi_entry7 { | ||
31 | __u8 media_specific[32]; | ||
32 | __u8 macaddr_type; | ||
33 | __u8 ipaddr_type; | ||
34 | __u8 macaddr[6]; | ||
35 | __u8 ipaddr[4]; | ||
36 | } __attribute__((packed)); | ||
37 | |||
38 | struct qeth_arp_qi_entry7_short { | ||
39 | __u8 macaddr_type; | ||
40 | __u8 ipaddr_type; | ||
41 | __u8 macaddr[6]; | ||
42 | __u8 ipaddr[4]; | ||
43 | } __attribute__((packed)); | ||
44 | |||
45 | struct qeth_arp_qi_entry5 { | ||
46 | __u8 media_specific[32]; | ||
47 | __u8 macaddr_type; | ||
48 | __u8 ipaddr_type; | ||
49 | __u8 ipaddr[4]; | ||
50 | } __attribute__((packed)); | ||
51 | |||
52 | struct qeth_arp_qi_entry5_short { | ||
53 | __u8 macaddr_type; | ||
54 | __u8 ipaddr_type; | ||
55 | __u8 ipaddr[4]; | ||
56 | } __attribute__((packed)); | ||
57 | |||
58 | /* | ||
59 | * can be set by user if no "media specific information" is wanted | ||
60 | * -> saves a lot of space in user space buffer | ||
61 | */ | ||
62 | #define QETH_QARP_STRIP_ENTRIES 0x8000 | ||
63 | #define QETH_QARP_REQUEST_MASK 0x00ff | ||
64 | |||
65 | /* data sent to user space as result of query arp ioctl */ | ||
66 | #define QETH_QARP_USER_DATA_SIZE 20000 | ||
67 | #define QETH_QARP_MASK_OFFSET 4 | ||
68 | #define QETH_QARP_ENTRIES_OFFSET 6 | ||
69 | struct qeth_arp_query_user_data { | ||
70 | union { | ||
71 | __u32 data_len; /* set by user space program */ | ||
72 | __u32 no_entries; /* set by kernel */ | ||
73 | } u; | ||
74 | __u16 mask_bits; | ||
75 | char *entries; | ||
76 | } __attribute__((packed)); | ||
77 | |||
78 | #endif /* __ASM_S390_QETH_IOCTL_H__ */ | ||