blob: 2b802b6d12ad18d4ff7561ea6c0d404905ec88da [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/* sonet.h - SONET/SHD physical layer control */
Linus Torvalds1da177e2005-04-16 15:20:36 -07003#ifndef LINUX_SONET_H
4#define LINUX_SONET_H
5
Linus Torvalds1da177e2005-04-16 15:20:36 -07006
Arun Sharma600634972011-07-26 16:09:06 -07007#include <linux/atomic.h>
David Howells607ca462012-10-13 10:46:48 +01008#include <uapi/linux/sonet.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -07009
10struct k_sonet_stats {
11#define __HANDLE_ITEM(i) atomic_t i
12 __SONET_ITEMS
13#undef __HANDLE_ITEM
14};
15
16extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
17extern void sonet_subtract_stats(struct k_sonet_stats *from,
18 struct sonet_stats *to);
19
20#endif