mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-25 13:40:53 +07:00
1802d0beec
Based on 1 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 655 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Allison Randal <allison@lohutok.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Richard Fontana <rfontana@redhat.com> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190527070034.575739538@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
60 lines
1.2 KiB
C
60 lines
1.2 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* IEEE 802.15.4 interface for userspace
|
|
*
|
|
* Copyright 2007, 2008 Siemens AG
|
|
*
|
|
* Written by:
|
|
* Sergey Lapin <slapin@ossfans.org>
|
|
* Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
|
|
*/
|
|
|
|
#ifndef _AF_IEEE802154_H
|
|
#define _AF_IEEE802154_H
|
|
|
|
#include <linux/socket.h> /* for sa_family_t */
|
|
|
|
enum {
|
|
IEEE802154_ADDR_NONE = 0x0,
|
|
/* RESERVED = 0x01, */
|
|
IEEE802154_ADDR_SHORT = 0x2, /* 16-bit address + PANid */
|
|
IEEE802154_ADDR_LONG = 0x3, /* 64-bit address + PANid */
|
|
};
|
|
|
|
/* address length, octets */
|
|
#define IEEE802154_ADDR_LEN 8
|
|
|
|
struct ieee802154_addr_sa {
|
|
int addr_type;
|
|
u16 pan_id;
|
|
union {
|
|
u8 hwaddr[IEEE802154_ADDR_LEN];
|
|
u16 short_addr;
|
|
};
|
|
};
|
|
|
|
#define IEEE802154_PANID_BROADCAST 0xffff
|
|
#define IEEE802154_ADDR_BROADCAST 0xffff
|
|
#define IEEE802154_ADDR_UNDEF 0xfffe
|
|
|
|
struct sockaddr_ieee802154 {
|
|
sa_family_t family; /* AF_IEEE802154 */
|
|
struct ieee802154_addr_sa addr;
|
|
};
|
|
|
|
/* get/setsockopt */
|
|
#define SOL_IEEE802154 0
|
|
|
|
#define WPAN_WANTACK 0
|
|
#define WPAN_SECURITY 1
|
|
#define WPAN_SECURITY_LEVEL 2
|
|
#define WPAN_WANTLQI 3
|
|
|
|
#define WPAN_SECURITY_DEFAULT 0
|
|
#define WPAN_SECURITY_OFF 1
|
|
#define WPAN_SECURITY_ON 2
|
|
|
|
#define WPAN_SECURITY_LEVEL_DEFAULT (-1)
|
|
|
|
#endif
|