]> git.ipfire.org Git - people/arne_f/kernel.git/blame - drivers/firewire/nosy-user.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[people/arne_f/kernel.git] / drivers / firewire / nosy-user.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
28646821
SR
2#ifndef __nosy_user_h
3#define __nosy_user_h
4
b5e47729
SR
5#include <linux/ioctl.h>
6#include <linux/types.h>
28646821
SR
7
8#define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats)
9#define NOSY_IOC_START _IO('&', 1)
10#define NOSY_IOC_STOP _IO('&', 2)
11#define NOSY_IOC_FILTER _IOW('&', 2, __u32)
12
13struct nosy_stats {
b5e47729
SR
14 __u32 total_packet_count;
15 __u32 lost_packet_count;
28646821
SR
16};
17
b5e47729 18/*
28646821
SR
19 * Format of packets returned from the kernel driver:
20 *
fd8c8d46
SR
21 * quadlet with timestamp (microseconds, CPU endian)
22 * quadlet-padded packet data... (little endian)
23 * quadlet with ack (little endian)
28646821
SR
24 */
25
26#endif /* __nosy_user_h */