Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
qeth.h
Go to the documentation of this file.
1 /*
2  * ioctl definitions for qeth driver
3  *
4  * Copyright IBM Corp. 2004
5  *
6  * Author(s): Thomas Spatzier <[email protected]>
7  *
8  */
9 #ifndef __ASM_S390_QETH_IOCTL_H__
10 #define __ASM_S390_QETH_IOCTL_H__
11 #include <linux/types.h>
12 #include <linux/ioctl.h>
13 
14 #define SIOC_QETH_ARP_SET_NO_ENTRIES (SIOCDEVPRIVATE)
15 #define SIOC_QETH_ARP_QUERY_INFO (SIOCDEVPRIVATE + 1)
16 #define SIOC_QETH_ARP_ADD_ENTRY (SIOCDEVPRIVATE + 2)
17 #define SIOC_QETH_ARP_REMOVE_ENTRY (SIOCDEVPRIVATE + 3)
18 #define SIOC_QETH_ARP_FLUSH_CACHE (SIOCDEVPRIVATE + 4)
19 #define SIOC_QETH_ADP_SET_SNMP_CONTROL (SIOCDEVPRIVATE + 5)
20 #define SIOC_QETH_GET_CARD_TYPE (SIOCDEVPRIVATE + 6)
21 #define SIOC_QETH_QUERY_OAT (SIOCDEVPRIVATE + 7)
22 
26  __u8 ipaddr[16]; /* for both IPv4 and IPv6 */
28 } __attribute__ ((packed));
29 
33 };
37 } __attribute__((packed));
38 
39 #define QETH_QARP_MEDIASPECIFIC_BYTES 32
40 #define QETH_QARP_MACADDRTYPE_BYTES 1
46 } __attribute__((packed));
47 
52  __u8 ipaddr[16];
53 } __attribute__((packed));
54 
59 } __attribute__((packed));
60 
64  __u8 ipaddr[16];
65 } __attribute__((packed));
66 
71 } __attribute__((packed));
72 
76  __u8 ipaddr[16];
77 } __attribute__((packed));
78 
82 } __attribute__((packed));
83 
86  __u8 ipaddr[16];
87 } __attribute__((packed));
88 /*
89  * can be set by user if no "media specific information" is wanted
90  * -> saves a lot of space in user space buffer
91  */
92 #define QETH_QARP_STRIP_ENTRIES 0x8000
93 #define QETH_QARP_WITH_IPV6 0x4000
94 #define QETH_QARP_REQUEST_MASK 0x00ff
95 
96 /* data sent to user space as result of query arp ioctl */
97 #define QETH_QARP_USER_DATA_SIZE 20000
98 #define QETH_QARP_MASK_OFFSET 4
99 #define QETH_QARP_ENTRIES_OFFSET 6
101  union {
102  __u32 data_len; /* set by user space program */
103  __u32 no_entries; /* set by kernel */
104  } u;
106  char *entries;
107 } __attribute__((packed));
108 
114 };
115 #endif /* __ASM_S390_QETH_IOCTL_H__ */