blob: e48aa6200c722b5b59af71d599b4b2fe3fe59d51 [file] [log] [blame]
Stefan Richter28646822010-07-27 10:26:33 +02001#ifndef __nosy_user_h
2#define __nosy_user_h
3
Stefan Richterb5e47722010-07-27 10:28:30 +02004#include <linux/ioctl.h>
5#include <linux/types.h>
Stefan Richter28646822010-07-27 10:26:33 +02006
7#define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats)
8#define NOSY_IOC_START _IO('&', 1)
9#define NOSY_IOC_STOP _IO('&', 2)
10#define NOSY_IOC_FILTER _IOW('&', 2, __u32)
11
12struct nosy_stats {
Stefan Richterb5e47722010-07-27 10:28:30 +020013 __u32 total_packet_count;
14 __u32 lost_packet_count;
Stefan Richter28646822010-07-27 10:26:33 +020015};
16
Stefan Richterb5e47722010-07-27 10:28:30 +020017/*
Stefan Richter28646822010-07-27 10:26:33 +020018 * Format of packets returned from the kernel driver:
19 *
Stefan Richterfd8c8d42010-07-22 11:56:38 +020020 * quadlet with timestamp (microseconds, CPU endian)
21 * quadlet-padded packet data... (little endian)
22 * quadlet with ack (little endian)
Stefan Richter28646822010-07-27 10:26:33 +020023 */
24
25#endif /* __nosy_user_h */