summaryrefslogtreecommitdiffstats
path: root/kernel/include/linux/sonet.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/include/linux/sonet.h')
-rw-r--r--kernel/include/linux/sonet.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/kernel/include/linux/sonet.h b/kernel/include/linux/sonet.h
new file mode 100644
index 000000000..680f9a31d
--- /dev/null
+++ b/kernel/include/linux/sonet.h
@@ -0,0 +1,19 @@
+/* sonet.h - SONET/SHD physical layer control */
+#ifndef LINUX_SONET_H
+#define LINUX_SONET_H
+
+
+#include <linux/atomic.h>
+#include <uapi/linux/sonet.h>
+
+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