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_IOCTL_H__
12 #define __ASM_S390_IOCTL_H__
13 #include <linux/ioctl.h>
15 #define QETH_IOCTL_LETTER 'Q'
17 #define SIOC_QETH_ARP_SET_NO_ENTRIES _IOWR(QETH_IOCTL_LETTER, 1, int)
18 #define SIOC_QETH_ARP_QUERY_INFO _IOWR(QETH_IOCTL_LETTER, 2, int)
19 #define SIOC_QETH_ARP_ADD_ENTRY _IOWR(QETH_IOCTL_LETTER, 3, int)
20 #define SIOC_QETH_ARP_REMOVE_ENTRY _IOWR(QETH_IOCTL_LETTER, 4, int)
21 #define SIOC_QETH_ARP_FLUSH_CACHE _IOWR(QETH_IOCTL_LETTER, 5, int)
22 #define SIOC_QETH_ADP_SET_SNMP_CONTROL _IOWR(QETH_IOCTL_LETTER, 6, int)
23 #define SIOC_QETH_GET_CARD_TYPE _IOWR(QETH_IOCTL_LETTER, 7, int)
25 struct qeth_arp_cache_entry {
28 __u8 ipaddr[16]; /* for both IPv4 and IPv6 */
30 } __attribute__ ((packed));
32 struct qeth_arp_qi_entry7 {
33 __u8 media_specific[32];
38 } __attribute__((packed));
40 struct qeth_arp_qi_entry5 {
41 __u8 media_specific[32];
45 } __attribute__((packed));
47 /* data sent to user space as result of query arp ioctl */
48 #define QETH_QARP_USER_DATA_SIZE 20000
49 #define QETH_QARP_MASK_OFFSET 4
50 #define QETH_QARP_ENTRIES_OFFSET 6
51 struct qeth_arp_query_user_data {
53 __u32 data_len; /* set by user space program */
54 __u32 no_entries; /* set by kernel */
58 } __attribute__((packed));
60 #endif /* __ASM_S390_IOCTL_H__ */