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