mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-22 00:09:45 +07:00
e2be04c7f9
Many user space API headers have licensing information, which is either incomplete, badly formatted or just a shorthand for referring to the license under which the file is supposed to be. This makes it hard for compliance tools to determine the correct license. Update these files with an SPDX license identifier. The identifier was chosen based on the license information in the file. GPL/LGPL licensed headers get the matching GPL/LGPL SPDX license identifier with the added 'WITH Linux-syscall-note' exception, which is the officially assigned exception identifier for the kernel syscall exception: 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". This exception makes it possible to include GPL headers into non GPL code, without confusing license compliance tools. Headers which have either explicit dual licensing or are just licensed under a non GPL license are updated with the corresponding SPDX identifier and the GPLv2 with syscall exception identifier. The format is: ((GPL-2.0 WITH Linux-syscall-note) OR SPDX-ID-OF-OTHER-LICENSE) SPDX license identifiers are a legally binding shorthand, which can be used instead of the full boiler plate text. The update does not remove existing license information as this has to be done on a case by case basis and the copyright holders might have to be consulted. This will happen in a separate step. 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>
113 lines
2.6 KiB
C
113 lines
2.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
|
/*
|
|
* Copyright (C) 2000 Jens Axboe <axboe@suse.de>
|
|
* Copyright (C) 2001-2004 Peter Osterlund <petero2@telia.com>
|
|
*
|
|
* May be copied or modified under the terms of the GNU General Public
|
|
* License. See linux/COPYING for more information.
|
|
*
|
|
* Packet writing layer for ATAPI and SCSI CD-R, CD-RW, DVD-R, and
|
|
* DVD-RW devices.
|
|
*
|
|
*/
|
|
#ifndef _UAPI__PKTCDVD_H
|
|
#define _UAPI__PKTCDVD_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
/*
|
|
* 1 for normal debug messages, 2 is very verbose. 0 to turn it off.
|
|
*/
|
|
#define PACKET_DEBUG 1
|
|
|
|
#define MAX_WRITERS 8
|
|
|
|
#define PKT_RB_POOL_SIZE 512
|
|
|
|
/*
|
|
* How long we should hold a non-full packet before starting data gathering.
|
|
*/
|
|
#define PACKET_WAIT_TIME (HZ * 5 / 1000)
|
|
|
|
/*
|
|
* use drive write caching -- we need deferred error handling to be
|
|
* able to successfully recover with this option (drive will return good
|
|
* status as soon as the cdb is validated).
|
|
*/
|
|
#if defined(CONFIG_CDROM_PKTCDVD_WCACHE)
|
|
#define USE_WCACHING 1
|
|
#else
|
|
#define USE_WCACHING 0
|
|
#endif
|
|
|
|
/*
|
|
* No user-servicable parts beyond this point ->
|
|
*/
|
|
|
|
/*
|
|
* device types
|
|
*/
|
|
#define PACKET_CDR 1
|
|
#define PACKET_CDRW 2
|
|
#define PACKET_DVDR 3
|
|
#define PACKET_DVDRW 4
|
|
|
|
/*
|
|
* flags
|
|
*/
|
|
#define PACKET_WRITABLE 1 /* pd is writable */
|
|
#define PACKET_NWA_VALID 2 /* next writable address valid */
|
|
#define PACKET_LRA_VALID 3 /* last recorded address valid */
|
|
#define PACKET_MERGE_SEGS 4 /* perform segment merging to keep */
|
|
/* underlying cdrom device happy */
|
|
|
|
/*
|
|
* Disc status -- from READ_DISC_INFO
|
|
*/
|
|
#define PACKET_DISC_EMPTY 0
|
|
#define PACKET_DISC_INCOMPLETE 1
|
|
#define PACKET_DISC_COMPLETE 2
|
|
#define PACKET_DISC_OTHER 3
|
|
|
|
/*
|
|
* write type, and corresponding data block type
|
|
*/
|
|
#define PACKET_MODE1 1
|
|
#define PACKET_MODE2 2
|
|
#define PACKET_BLOCK_MODE1 8
|
|
#define PACKET_BLOCK_MODE2 10
|
|
|
|
/*
|
|
* Last session/border status
|
|
*/
|
|
#define PACKET_SESSION_EMPTY 0
|
|
#define PACKET_SESSION_INCOMPLETE 1
|
|
#define PACKET_SESSION_RESERVED 2
|
|
#define PACKET_SESSION_COMPLETE 3
|
|
|
|
#define PACKET_MCN "4a656e734178626f65323030300000"
|
|
|
|
#undef PACKET_USE_LS
|
|
|
|
#define PKT_CTRL_CMD_SETUP 0
|
|
#define PKT_CTRL_CMD_TEARDOWN 1
|
|
#define PKT_CTRL_CMD_STATUS 2
|
|
|
|
struct pkt_ctrl_command {
|
|
__u32 command; /* in: Setup, teardown, status */
|
|
__u32 dev_index; /* in/out: Device index */
|
|
__u32 dev; /* in/out: Device nr for cdrw device */
|
|
__u32 pkt_dev; /* in/out: Device nr for packet device */
|
|
__u32 num_devices; /* out: Largest device index + 1 */
|
|
__u32 padding; /* Not used */
|
|
};
|
|
|
|
/*
|
|
* packet ioctls
|
|
*/
|
|
#define PACKET_IOCTL_MAGIC ('X')
|
|
#define PACKET_CTRL_CMD _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command)
|
|
|
|
|
|
#endif /* _UAPI__PKTCDVD_H */
|