aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/firewire/nosy-user.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/firewire/nosy-user.h')
-rw-r--r--drivers/firewire/nosy-user.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/firewire/nosy-user.h b/drivers/firewire/nosy-user.h
new file mode 100644
index 000000000000..e48aa6200c72
--- /dev/null
+++ b/drivers/firewire/nosy-user.h
@@ -0,0 +1,25 @@
1#ifndef __nosy_user_h
2#define __nosy_user_h
3
4#include <linux/ioctl.h>
5#include <linux/types.h>
6
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 {
13 __u32 total_packet_count;
14 __u32 lost_packet_count;
15};
16
17/*
18 * Format of packets returned from the kernel driver:
19 *
20 * quadlet with timestamp (microseconds, CPU endian)
21 * quadlet-padded packet data... (little endian)
22 * quadlet with ack (little endian)
23 */
24
25#endif /* __nosy_user_h */