mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 03:58:02 +07:00
6f52b16c5b
Many user space API headers are missing licensing information, which makes it hard for compliance tools to determine the correct license. By default are files without license information under the default license of the kernel, which is GPLV2. Marking them GPLV2 would exclude them from being included in non GPLV2 code, which is obviously not intended. The user space API headers fall under the syscall exception which is in the kernels COPYING file: NOTE! This copyright does *not* cover user programs that use kernel services by normal system calls - this is merely considered normal use of the kernel, and does *not* fall under the heading of "derived work". otherwise syscall usage would not be possible. Update the files which contain no license information with an SPDX license identifier. The chosen identifier is 'GPL-2.0 WITH Linux-syscall-note' which is the officially assigned identifier for the Linux syscall exception. SPDX license identifiers are a legally binding shorthand, which can be used instead of the full boiler plate text. This patch is based on work done by Thomas Gleixner and Kate Stewart and Philippe Ombredanne. See the previous patch in this series for the methodology of how this patch was researched. Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Philippe Ombredanne <pombredanne@nexb.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
88 lines
2.3 KiB
C
88 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
#ifndef _IPX_H_
|
|
#define _IPX_H_
|
|
#include <linux/libc-compat.h> /* for compatibility with glibc netipx/ipx.h */
|
|
#include <linux/types.h>
|
|
#include <linux/sockios.h>
|
|
#include <linux/socket.h>
|
|
#define IPX_NODE_LEN 6
|
|
#define IPX_MTU 576
|
|
|
|
#if __UAPI_DEF_SOCKADDR_IPX
|
|
struct sockaddr_ipx {
|
|
__kernel_sa_family_t sipx_family;
|
|
__be16 sipx_port;
|
|
__be32 sipx_network;
|
|
unsigned char sipx_node[IPX_NODE_LEN];
|
|
__u8 sipx_type;
|
|
unsigned char sipx_zero; /* 16 byte fill */
|
|
};
|
|
#endif /* __UAPI_DEF_SOCKADDR_IPX */
|
|
|
|
/*
|
|
* So we can fit the extra info for SIOCSIFADDR into the address nicely
|
|
*/
|
|
#define sipx_special sipx_port
|
|
#define sipx_action sipx_zero
|
|
#define IPX_DLTITF 0
|
|
#define IPX_CRTITF 1
|
|
|
|
#if __UAPI_DEF_IPX_ROUTE_DEFINITION
|
|
struct ipx_route_definition {
|
|
__be32 ipx_network;
|
|
__be32 ipx_router_network;
|
|
unsigned char ipx_router_node[IPX_NODE_LEN];
|
|
};
|
|
#endif /* __UAPI_DEF_IPX_ROUTE_DEFINITION */
|
|
|
|
#if __UAPI_DEF_IPX_INTERFACE_DEFINITION
|
|
struct ipx_interface_definition {
|
|
__be32 ipx_network;
|
|
unsigned char ipx_device[16];
|
|
unsigned char ipx_dlink_type;
|
|
#define IPX_FRAME_NONE 0
|
|
#define IPX_FRAME_SNAP 1
|
|
#define IPX_FRAME_8022 2
|
|
#define IPX_FRAME_ETHERII 3
|
|
#define IPX_FRAME_8023 4
|
|
#define IPX_FRAME_TR_8022 5 /* obsolete */
|
|
unsigned char ipx_special;
|
|
#define IPX_SPECIAL_NONE 0
|
|
#define IPX_PRIMARY 1
|
|
#define IPX_INTERNAL 2
|
|
unsigned char ipx_node[IPX_NODE_LEN];
|
|
};
|
|
#endif /* __UAPI_DEF_IPX_INTERFACE_DEFINITION */
|
|
|
|
#if __UAPI_DEF_IPX_CONFIG_DATA
|
|
struct ipx_config_data {
|
|
unsigned char ipxcfg_auto_select_primary;
|
|
unsigned char ipxcfg_auto_create_interfaces;
|
|
};
|
|
#endif /* __UAPI_DEF_IPX_CONFIG_DATA */
|
|
|
|
/*
|
|
* OLD Route Definition for backward compatibility.
|
|
*/
|
|
|
|
#if __UAPI_DEF_IPX_ROUTE_DEF
|
|
struct ipx_route_def {
|
|
__be32 ipx_network;
|
|
__be32 ipx_router_network;
|
|
#define IPX_ROUTE_NO_ROUTER 0
|
|
unsigned char ipx_router_node[IPX_NODE_LEN];
|
|
unsigned char ipx_device[16];
|
|
unsigned short ipx_flags;
|
|
#define IPX_RT_SNAP 8
|
|
#define IPX_RT_8022 4
|
|
#define IPX_RT_BLUEBOOK 2
|
|
#define IPX_RT_ROUTED 1
|
|
};
|
|
#endif /* __UAPI_DEF_IPX_ROUTE_DEF */
|
|
|
|
#define SIOCAIPXITFCRT (SIOCPROTOPRIVATE)
|
|
#define SIOCAIPXPRISLT (SIOCPROTOPRIVATE + 1)
|
|
#define SIOCIPXCFGDATA (SIOCPROTOPRIVATE + 2)
|
|
#define SIOCIPXNCPCONN (SIOCPROTOPRIVATE + 3)
|
|
#endif /* _IPX_H_ */
|