2 * include/asm-s390/qeth.h
4 * ioctl definitions for qeth driver
6 * Copyright (C) 2004 IBM Corporation
8 * Author(s): Thomas Spatzier <tspat@de.ibm.com>
11 #ifndef __ASM_S390_QETH_IOCTL_H__
12 #define __ASM_S390_QETH_IOCTL_H__
13 #include <linux/ioctl.h>
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)
23 struct qeth_arp_cache_entry {
26 __u8 ipaddr[16]; /* for both IPv4 and IPv6 */
28 } __attribute__ ((packed));
30 struct qeth_arp_qi_entry7 {
31 __u8 media_specific[32];
36 } __attribute__((packed));
38 struct qeth_arp_qi_entry7_short {
43 } __attribute__((packed));
45 struct qeth_arp_qi_entry5 {
46 __u8 media_specific[32];
50 } __attribute__((packed));
52 struct qeth_arp_qi_entry5_short {
56 } __attribute__((packed));
59 * can be set by user if no "media specific information" is wanted
60 * -> saves a lot of space in user space buffer
62 #define QETH_QARP_STRIP_ENTRIES 0x8000
63 #define QETH_QARP_REQUEST_MASK 0x00ff
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 {
71 __u32 data_len; /* set by user space program */
72 __u32 no_entries; /* set by kernel */
76 } __attribute__((packed));
78 #endif /* __ASM_S390_QETH_IOCTL_H__ */