Blame view

drivers/firewire/nosy-user.h 590 Bytes
286468210   Stefan Richter   firewire: new dri...
1
2
  #ifndef __nosy_user_h
  #define __nosy_user_h
b5e477290   Stefan Richter   firewire: nosy: m...
3
4
  #include <linux/ioctl.h>
  #include <linux/types.h>
286468210   Stefan Richter   firewire: new dri...
5
6
7
8
9
10
11
  
  #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...
12
13
  	__u32 total_packet_count;
  	__u32 lost_packet_count;
286468210   Stefan Richter   firewire: new dri...
14
  };
b5e477290   Stefan Richter   firewire: nosy: m...
15
  /*
286468210   Stefan Richter   firewire: new dri...
16
17
   * Format of packets returned from the kernel driver:
   *
fd8c8d46c   Stefan Richter   firewire: nosy: e...
18
19
20
   *	quadlet with timestamp		(microseconds, CPU endian)
   *	quadlet-padded packet data...	(little endian)
   *	quadlet with ack		(little endian)
286468210   Stefan Richter   firewire: new dri...
21
22
23
   */
  
  #endif /* __nosy_user_h */