From d2e1446d81725c351dc73a03b397ce043fb18452 Mon Sep 17 00:00:00 2001 From: Meizu OpenSource Date: Mon, 15 Aug 2016 10:19:42 +0800 Subject: first commit --- include/linux/sonet.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/linux/sonet.h (limited to 'include/linux/sonet.h') diff --git a/include/linux/sonet.h b/include/linux/sonet.h new file mode 100644 index 000000000..680f9a31d --- /dev/null +++ b/include/linux/sonet.h @@ -0,0 +1,19 @@ +/* sonet.h - SONET/SHD physical layer control */ +#ifndef LINUX_SONET_H +#define LINUX_SONET_H + + +#include +#include + +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 -- cgit v1.2.3