Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 | 2 | /* sonet.h - SONET/SHD physical layer control */ |
1da177e4 LT |
3 | #ifndef LINUX_SONET_H |
4 | #define LINUX_SONET_H | |
5 | ||
1da177e4 | 6 | |
60063497 | 7 | #include <linux/atomic.h> |
607ca46e | 8 | #include <uapi/linux/sonet.h> |
1da177e4 LT |
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 |