lkml.org 
[lkml]   [2019]   [Jan]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[RFC net-next 1/4] net: Reserve protocol identifiers for EnOcean
Date
EnOcean wireless technology is based on ASK (ERP1) and FSK (ERP2) modulations
for sub-GHz and on IEEE 802.15.4 for 2.4 GHz.

ARPHRD_ENOCEAN
ETH_P_ERP{1,2}

Signed-off-by: Andreas Färber <afaerber@suse.de>
---
include/uapi/linux/if_arp.h | 1 +
include/uapi/linux/if_ether.h | 2 ++
2 files changed, 3 insertions(+)

diff --git a/include/uapi/linux/if_arp.h b/include/uapi/linux/if_arp.h
index dd7992a441c9..327ef052329f 100644
--- a/include/uapi/linux/if_arp.h
+++ b/include/uapi/linux/if_arp.h
@@ -102,6 +102,7 @@
#define ARPHRD_LORAWAN 828 /* LoRaWAN */
#define ARPHRD_OOK 829 /* On/Off Keying modulation */
#define ARPHRD_FSK 830 /* Frequency Shift Keying modulation */
+#define ARPHRD_ENOCEAN 832 /* EnOcean */

#define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */
#define ARPHRD_NONE 0xFFFE /* zero header length */
diff --git a/include/uapi/linux/if_ether.h b/include/uapi/linux/if_ether.h
index 0b5c30f78261..3e22948cc329 100644
--- a/include/uapi/linux/if_ether.h
+++ b/include/uapi/linux/if_ether.h
@@ -152,6 +152,8 @@
#define ETH_P_OOK 0x00FC /* On/Off Keying modulation */
#define ETH_P_FSK 0x00FD /* Frequency Shift Keying mod. */
#define ETH_P_FLRC 0x00FE /* Fast Long Range Communication */
+#define ETH_P_ERP1 0x00FF /* EnOcean Radio Protocol 1 */
+#define ETH_P_ERP2 0x0100 /* EnOcean Radio Protocol 2 */

/*
* This is an Ethernet frame header.
--
2.16.4
\
 
 \ /
  Last update: 2019-01-29 06:02    [W:0.068 / U:8.832 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site