Blame view

include/linux/sonet.h 430 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
  /* sonet.h - SONET/SHD physical layer control */
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
2
3
  #ifndef LINUX_SONET_H
  #define LINUX_SONET_H
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4

60063497a   Arun Sharma   atomic: use <linu...
5
  #include <linux/atomic.h>
607ca46e9   David Howells   UAPI: (Scripted) ...
6
  #include <uapi/linux/sonet.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
7
8
9
10
11
12
13
14
15
16
17
18
  
  struct k_sonet_stats {
  #define __HANDLE_ITEM(i) atomic_t i
  	__SONET_ITEMS
  #undef __HANDLE_ITEM
  };
  
  extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
  extern void sonet_subtract_stats(struct k_sonet_stats *from,
      struct sonet_stats *to);
  
  #endif