mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +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>
68 lines
2.7 KiB
C
68 lines
2.7 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* Copyright (C) 2007 Stefan Kopp, Gechingen, Germany
|
|
* Copyright (C) 2008 Novell, Inc.
|
|
* Copyright (C) 2008 Greg Kroah-Hartman <gregkh@suse.de>
|
|
* Copyright (C) 2015 Dave Penkler <dpenkler@gmail.com>
|
|
*
|
|
* This file holds USB constants defined by the USB Device Class
|
|
* and USB488 Subclass Definitions for Test and Measurement devices
|
|
* published by the USB-IF.
|
|
*
|
|
* It also has the ioctl and capability definitions for the
|
|
* usbtmc kernel driver that userspace needs to know about.
|
|
*/
|
|
|
|
#ifndef __LINUX_USB_TMC_H
|
|
#define __LINUX_USB_TMC_H
|
|
|
|
/* USB TMC status values */
|
|
#define USBTMC_STATUS_SUCCESS 0x01
|
|
#define USBTMC_STATUS_PENDING 0x02
|
|
#define USBTMC_STATUS_FAILED 0x80
|
|
#define USBTMC_STATUS_TRANSFER_NOT_IN_PROGRESS 0x81
|
|
#define USBTMC_STATUS_SPLIT_NOT_IN_PROGRESS 0x82
|
|
#define USBTMC_STATUS_SPLIT_IN_PROGRESS 0x83
|
|
|
|
/* USB TMC requests values */
|
|
#define USBTMC_REQUEST_INITIATE_ABORT_BULK_OUT 1
|
|
#define USBTMC_REQUEST_CHECK_ABORT_BULK_OUT_STATUS 2
|
|
#define USBTMC_REQUEST_INITIATE_ABORT_BULK_IN 3
|
|
#define USBTMC_REQUEST_CHECK_ABORT_BULK_IN_STATUS 4
|
|
#define USBTMC_REQUEST_INITIATE_CLEAR 5
|
|
#define USBTMC_REQUEST_CHECK_CLEAR_STATUS 6
|
|
#define USBTMC_REQUEST_GET_CAPABILITIES 7
|
|
#define USBTMC_REQUEST_INDICATOR_PULSE 64
|
|
#define USBTMC488_REQUEST_READ_STATUS_BYTE 128
|
|
#define USBTMC488_REQUEST_REN_CONTROL 160
|
|
#define USBTMC488_REQUEST_GOTO_LOCAL 161
|
|
#define USBTMC488_REQUEST_LOCAL_LOCKOUT 162
|
|
|
|
/* Request values for USBTMC driver's ioctl entry point */
|
|
#define USBTMC_IOC_NR 91
|
|
#define USBTMC_IOCTL_INDICATOR_PULSE _IO(USBTMC_IOC_NR, 1)
|
|
#define USBTMC_IOCTL_CLEAR _IO(USBTMC_IOC_NR, 2)
|
|
#define USBTMC_IOCTL_ABORT_BULK_OUT _IO(USBTMC_IOC_NR, 3)
|
|
#define USBTMC_IOCTL_ABORT_BULK_IN _IO(USBTMC_IOC_NR, 4)
|
|
#define USBTMC_IOCTL_CLEAR_OUT_HALT _IO(USBTMC_IOC_NR, 6)
|
|
#define USBTMC_IOCTL_CLEAR_IN_HALT _IO(USBTMC_IOC_NR, 7)
|
|
#define USBTMC488_IOCTL_GET_CAPS _IOR(USBTMC_IOC_NR, 17, unsigned char)
|
|
#define USBTMC488_IOCTL_READ_STB _IOR(USBTMC_IOC_NR, 18, unsigned char)
|
|
#define USBTMC488_IOCTL_REN_CONTROL _IOW(USBTMC_IOC_NR, 19, unsigned char)
|
|
#define USBTMC488_IOCTL_GOTO_LOCAL _IO(USBTMC_IOC_NR, 20)
|
|
#define USBTMC488_IOCTL_LOCAL_LOCKOUT _IO(USBTMC_IOC_NR, 21)
|
|
|
|
/* Driver encoded usb488 capabilities */
|
|
#define USBTMC488_CAPABILITY_TRIGGER 1
|
|
#define USBTMC488_CAPABILITY_SIMPLE 2
|
|
#define USBTMC488_CAPABILITY_REN_CONTROL 2
|
|
#define USBTMC488_CAPABILITY_GOTO_LOCAL 2
|
|
#define USBTMC488_CAPABILITY_LOCAL_LOCKOUT 2
|
|
#define USBTMC488_CAPABILITY_488_DOT_2 4
|
|
#define USBTMC488_CAPABILITY_DT1 16
|
|
#define USBTMC488_CAPABILITY_RL1 32
|
|
#define USBTMC488_CAPABILITY_SR1 64
|
|
#define USBTMC488_CAPABILITY_FULL_SCPI 128
|
|
|
|
#endif
|