linux/include/uapi/linux/pktcdvd.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * Copyright (C) 2000 Jens Axboe <[email protected]>
 * Copyright (C) 2001-2004 Peter Osterlund <[email protected]>
 *
 * 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>

/*
 * UNUSED:
 * 1 for normal debug messages, 2 is very verbose. 0 to turn it off.
 */
#define PACKET_DEBUG

#define MAX_WRITERS

#define PKT_RB_POOL_SIZE

/*
 * How long we should hold a non-full packet before starting data gathering.
 */
#define PACKET_WAIT_TIME

/*
 * No user-servicable parts beyond this point ->
 */

/*
 * device types
 */
#define PACKET_CDR
#define PACKET_CDRW
#define PACKET_DVDR
#define PACKET_DVDRW

/*
 * flags
 */
#define PACKET_WRITABLE
#define PACKET_NWA_VALID
#define PACKET_LRA_VALID
#define PACKET_MERGE_SEGS
					/* underlying cdrom device happy */

/*
 * Disc status -- from READ_DISC_INFO
 */
#define PACKET_DISC_EMPTY
#define PACKET_DISC_INCOMPLETE
#define PACKET_DISC_COMPLETE
#define PACKET_DISC_OTHER

/*
 * write type, and corresponding data block type
 */
#define PACKET_MODE1
#define PACKET_MODE2
#define PACKET_BLOCK_MODE1
#define PACKET_BLOCK_MODE2

/*
 * Last session/border status
 */
#define PACKET_SESSION_EMPTY
#define PACKET_SESSION_INCOMPLETE
#define PACKET_SESSION_RESERVED
#define PACKET_SESSION_COMPLETE

#define PACKET_MCN

#undef PACKET_USE_LS

#define PKT_CTRL_CMD_SETUP
#define PKT_CTRL_CMD_TEARDOWN
#define PKT_CTRL_CMD_STATUS

struct pkt_ctrl_command {};

/*
 * packet ioctls
 */
#define PACKET_IOCTL_MAGIC
#define PACKET_CTRL_CMD


#endif /* _UAPI__PKTCDVD_H */