mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-21 08:19:28 +00:00
![Greg Kroah-Hartman](/assets/img/avatar_default.png)
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>
62 lines
1.6 KiB
C
62 lines
1.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/* atm_tcp.h - Driver-specific declarations of the ATMTCP driver (for use by
|
|
driver-specific utilities) */
|
|
|
|
/* Written 1997-2000 by Werner Almesberger, EPFL LRC/ICA */
|
|
|
|
|
|
#ifndef _UAPILINUX_ATM_TCP_H
|
|
#define _UAPILINUX_ATM_TCP_H
|
|
|
|
#include <linux/atmapi.h>
|
|
#include <linux/atm.h>
|
|
#include <linux/atmioc.h>
|
|
#include <linux/types.h>
|
|
|
|
|
|
/*
|
|
* All values in struct atmtcp_hdr are in network byte order
|
|
*/
|
|
|
|
struct atmtcp_hdr {
|
|
__u16 vpi;
|
|
__u16 vci;
|
|
__u32 length; /* ... of data part */
|
|
};
|
|
|
|
/*
|
|
* All values in struct atmtcp_command are in host byte order
|
|
*/
|
|
|
|
#define ATMTCP_HDR_MAGIC (~0) /* this length indicates a command */
|
|
#define ATMTCP_CTRL_OPEN 1 /* request/reply */
|
|
#define ATMTCP_CTRL_CLOSE 2 /* request/reply */
|
|
|
|
struct atmtcp_control {
|
|
struct atmtcp_hdr hdr; /* must be first */
|
|
int type; /* message type; both directions */
|
|
atm_kptr_t vcc; /* both directions */
|
|
struct sockaddr_atmpvc addr; /* suggested value from kernel */
|
|
struct atm_qos qos; /* both directions */
|
|
int result; /* to kernel only */
|
|
} __ATM_API_ALIGN;
|
|
|
|
/*
|
|
* Field usage:
|
|
* Messge type dir. hdr.v?i type addr qos vcc result
|
|
* ----------- ---- ------- ---- ---- --- --- ------
|
|
* OPEN K->D Y Y Y Y Y 0
|
|
* OPEN D->K - Y Y Y Y Y
|
|
* CLOSE K->D - - Y - Y 0
|
|
* CLOSE D->K - - - - Y Y
|
|
*/
|
|
|
|
#define SIOCSIFATMTCP _IO('a',ATMIOC_ITF) /* set ATMTCP mode */
|
|
#define ATMTCP_CREATE _IO('a',ATMIOC_ITF+14) /* create persistent ATMTCP
|
|
interface */
|
|
#define ATMTCP_REMOVE _IO('a',ATMIOC_ITF+15) /* destroy persistent ATMTCP
|
|
interface */
|
|
|
|
|
|
|
|
#endif /* _UAPILINUX_ATM_TCP_H */
|