~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/uapi/linux/pktcdvd.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2 /*
  3  * Copyright (C) 2000 Jens Axboe <axboe@suse.de>
  4  * Copyright (C) 2001-2004 Peter Osterlund <petero2@telia.com>
  5  *
  6  * May be copied or modified under the terms of the GNU General Public
  7  * License.  See linux/COPYING for more information.
  8  *
  9  * Packet writing layer for ATAPI and SCSI CD-R, CD-RW, DVD-R, and
 10  * DVD-RW devices.
 11  *
 12  */
 13 #ifndef _UAPI__PKTCDVD_H
 14 #define _UAPI__PKTCDVD_H
 15 
 16 #include <linux/types.h>
 17 
 18 /*
 19  * UNUSED:
 20  * 1 for normal debug messages, 2 is very verbose. 0 to turn it off.
 21  */
 22 #define PACKET_DEBUG            1
 23 
 24 #define MAX_WRITERS             8
 25 
 26 #define PKT_RB_POOL_SIZE        512
 27 
 28 /*
 29  * How long we should hold a non-full packet before starting data gathering.
 30  */
 31 #define PACKET_WAIT_TIME        (HZ * 5 / 1000)
 32 
 33 /*
 34  * No user-servicable parts beyond this point ->
 35  */
 36 
 37 /*
 38  * device types
 39  */
 40 #define PACKET_CDR              1
 41 #define PACKET_CDRW             2
 42 #define PACKET_DVDR             3
 43 #define PACKET_DVDRW            4
 44 
 45 /*
 46  * flags
 47  */
 48 #define PACKET_WRITABLE         1       /* pd is writable */
 49 #define PACKET_NWA_VALID        2       /* next writable address valid */
 50 #define PACKET_LRA_VALID        3       /* last recorded address valid */
 51 #define PACKET_MERGE_SEGS       4       /* perform segment merging to keep */
 52                                         /* underlying cdrom device happy */
 53 
 54 /*
 55  * Disc status -- from READ_DISC_INFO
 56  */
 57 #define PACKET_DISC_EMPTY       0
 58 #define PACKET_DISC_INCOMPLETE  1
 59 #define PACKET_DISC_COMPLETE    2
 60 #define PACKET_DISC_OTHER       3
 61 
 62 /*
 63  * write type, and corresponding data block type
 64  */
 65 #define PACKET_MODE1            1
 66 #define PACKET_MODE2            2
 67 #define PACKET_BLOCK_MODE1      8
 68 #define PACKET_BLOCK_MODE2      10
 69 
 70 /*
 71  * Last session/border status
 72  */
 73 #define PACKET_SESSION_EMPTY            0
 74 #define PACKET_SESSION_INCOMPLETE       1
 75 #define PACKET_SESSION_RESERVED         2
 76 #define PACKET_SESSION_COMPLETE         3
 77 
 78 #define PACKET_MCN                      "4a656e734178626f65323030300000"
 79 
 80 #undef PACKET_USE_LS
 81 
 82 #define PKT_CTRL_CMD_SETUP      0
 83 #define PKT_CTRL_CMD_TEARDOWN   1
 84 #define PKT_CTRL_CMD_STATUS     2
 85 
 86 struct pkt_ctrl_command {
 87         __u32 command;                          /* in: Setup, teardown, status */
 88         __u32 dev_index;                        /* in/out: Device index */
 89         __u32 dev;                              /* in/out: Device nr for cdrw device */
 90         __u32 pkt_dev;                          /* in/out: Device nr for packet device */
 91         __u32 num_devices;                      /* out: Largest device index + 1 */
 92         __u32 padding;                          /* Not used */
 93 };
 94 
 95 /*
 96  * packet ioctls
 97  */
 98 #define PACKET_IOCTL_MAGIC      ('X')
 99 #define PACKET_CTRL_CMD         _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command)
100 
101 
102 #endif /* _UAPI__PKTCDVD_H */
103 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php