pktcdvd.h
001: 
002: <axboe@suse.de>
003: <petero2@telia.com>
004: 
005: 
006: 
007: 
008: 
009: 
010: 
011: 
012: #ifndef __PKTCDVD_H
013: #define __PKTCDVD_H
014: 
015: #include <linux/types.h>
016: 
017: 
018: 
019: 
020: #define PACKET_DEBUG            1
021: 
022: #define MAX_WRITERS             8
023: 
024: #define PKT_RB_POOL_SIZE        512
025: 
026: 
027: 
028: 
029: #define PACKET_WAIT_TIME        (HZ * 5 / 1000)
030: 
031: 
032: 
033: 
034: 
035: 
036: #if defined(CONFIG_CDROM_PKTCDVD_WCACHE)
037: #define USE_WCACHING            1
038: #else
039: #define USE_WCACHING            0
040: #endif
041: 
042: 
043: 
044: 
045: 
046: 
047: 
048: 
049: #define PACKET_CDR              1
050: #define PACKET_CDRW             2
051: #define PACKET_DVDR             3
052: #define PACKET_DVDRW            4
053: 
054: 
055: 
056: 
057: #define PACKET_WRITABLE         1       
058: #define PACKET_NWA_VALID        2       
059: #define PACKET_LRA_VALID        3       
060: #define PACKET_MERGE_SEGS       4       
061:                                         
062: 
063: 
064: 
065: 
066: #define PACKET_DISC_EMPTY       0
067: #define PACKET_DISC_INCOMPLETE  1
068: #define PACKET_DISC_COMPLETE    2
069: #define PACKET_DISC_OTHER       3
070: 
071: 
072: 
073: 
074: #define PACKET_MODE1            1
075: #define PACKET_MODE2            2
076: #define PACKET_BLOCK_MODE1      8
077: #define PACKET_BLOCK_MODE2      10
078: 
079: 
080: 
081: 
082: #define PACKET_SESSION_EMPTY            0
083: #define PACKET_SESSION_INCOMPLETE       1
084: #define PACKET_SESSION_RESERVED         2
085: #define PACKET_SESSION_COMPLETE         3
086: 
087: #define PACKET_MCN                      "4a656e734178626f65323030300000"
088: 
089: #undef PACKET_USE_LS
090: 
091: #define PKT_CTRL_CMD_SETUP      0
092: #define PKT_CTRL_CMD_TEARDOWN   1
093: #define PKT_CTRL_CMD_STATUS     2
094: 
095: struct pkt_ctrl_command {
096:         __u32 command;                          
097:         __u32 dev_index;                        
098:         __u32 dev;                              
099:         __u32 pkt_dev;                          
100:         __u32 num_devices;                      
101:         __u32 padding;                          
102: };
103: 
104: 
105: 
106: 
107: #define PACKET_IOCTL_MAGIC      ('X')
108: #define PACKET_CTRL_CMD         _IOWR(PACKET_IOCTL_MAGIC, 1, struct pkt_ctrl_command)
109: 
110: 
111: #endif 
112: 
      
      
      
      
   
      
      
         
            
            © Andrew Scott 2006 -
            2025, 
            All Rights Reserved