blob: 680f9a31df25653043a41603c4134ff284469b0a [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* sonet.h - SONET/SHD physical layer control */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef LINUX_SONET_H
3#define LINUX_SONET_H
4
Linus Torvalds1da177e2005-04-16 15:20:36 -07005
Arun Sharma600634972011-07-26 16:09:06 -07006#include <linux/atomic.h>
David Howells607ca462012-10-13 10:46:48 +01007#include <uapi/linux/sonet.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07008
9struct k_sonet_stats {
10#define __HANDLE_ITEM(i) atomic_t i
11 __SONET_ITEMS
12#undef __HANDLE_ITEM
13};
14
15extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
16extern void sonet_subtract_stats(struct k_sonet_stats *from,
17 struct sonet_stats *to);
18
19#endif