Blame view

drivers/firewire/nosy-user.h 629 Bytes
b24413180   Greg Kroah-Hartman   License cleanup: ...
1
  /* SPDX-License-Identifier: GPL-2.0 */
286468210   Stefan Richter   firewire: new dri...
2
3
  #ifndef __nosy_user_h
  #define __nosy_user_h
b5e477290   Stefan Richter   firewire: nosy: m...
4
5
  #include <linux/ioctl.h>
  #include <linux/types.h>
286468210   Stefan Richter   firewire: new dri...
6
7
8
9
10
11
12
  
  #define NOSY_IOC_GET_STATS _IOR('&', 0, struct nosy_stats)
  #define NOSY_IOC_START     _IO('&', 1)
  #define NOSY_IOC_STOP      _IO('&', 2)
  #define NOSY_IOC_FILTER    _IOW('&', 2, __u32)
  
  struct nosy_stats {
b5e477290   Stefan Richter   firewire: nosy: m...
13
14
  	__u32 total_packet_count;
  	__u32 lost_packet_count;
286468210   Stefan Richter   firewire: new dri...
15
  };
b5e477290   Stefan Richter   firewire: nosy: m...
16
  /*
286468210   Stefan Richter   firewire: new dri...
17
18
   * Format of packets returned from the kernel driver:
   *
fd8c8d46c   Stefan Richter   firewire: nosy: e...
19
20
21
   *	quadlet with timestamp		(microseconds, CPU endian)
   *	quadlet-padded packet data...	(little endian)
   *	quadlet with ack		(little endian)
286468210   Stefan Richter   firewire: new dri...
22
23
24
   */
  
  #endif /* __nosy_user_h */