Merge tag 'trace-v5.15-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt...
[linux-2.6-microblaze.git] / include / linux / sonet.h
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* sonet.h - SONET/SHD physical layer control */
3 #ifndef LINUX_SONET_H
4 #define LINUX_SONET_H
5
6
7 #include <linux/atomic.h>
8 #include <uapi/linux/sonet.h>
9
10 struct k_sonet_stats {
11 #define __HANDLE_ITEM(i) atomic_t i
12         __SONET_ITEMS
13 #undef __HANDLE_ITEM
14 };
15
16 extern void sonet_copy_stats(struct k_sonet_stats *from,struct sonet_stats *to);
17 extern void sonet_subtract_stats(struct k_sonet_stats *from,
18     struct sonet_stats *to);
19
20 #endif