The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/sys/cdrio.h

Version: -  FREEBSD  -  FREEBSD11  -  FREEBSD10  -  FREEBSD9  -  FREEBSD92  -  FREEBSD91  -  FREEBSD90  -  FREEBSD8  -  FREEBSD82  -  FREEBSD81  -  FREEBSD80  -  FREEBSD7  -  FREEBSD74  -  FREEBSD73  -  FREEBSD72  -  FREEBSD71  -  FREEBSD70  -  FREEBSD6  -  FREEBSD64  -  FREEBSD63  -  FREEBSD62  -  FREEBSD61  -  FREEBSD60  -  FREEBSD5  -  FREEBSD55  -  FREEBSD54  -  FREEBSD53  -  FREEBSD52  -  FREEBSD51  -  FREEBSD50  -  FREEBSD4  -  FREEBSD3  -  FREEBSD22  -  linux-2.6  -  linux-2.4.22  -  MK83  -  MK84  -  PLAN9  -  DFBSD  -  NETBSD  -  NETBSD5  -  NETBSD4  -  NETBSD3  -  NETBSD20  -  OPENBSD  -  xnu-517  -  xnu-792  -  xnu-792.6.70  -  xnu-1228  -  xnu-1456.1.26  -  xnu-1699.24.8  -  xnu-2050.18.24  -  OPENSOLARIS  -  minix-3-1-1 
SearchContext: -  none  -  3  -  10 

    1 /*-
    2  * Copyright (c) 2000,2001,2002 Søren Schmidt <sos@FreeBSD.org>
    3  * All rights reserved.
    4  *
    5  * Redistribution and use in source and binary forms, with or without
    6  * modification, are permitted provided that the following conditions
    7  * are met:
    8  * 1. Redistributions of source code must retain the above copyright
    9  *    notice, this list of conditions and the following disclaimer,
   10  *    without modification, immediately at the beginning of the file.
   11  * 2. Redistributions in binary form must reproduce the above copyright
   12  *    notice, this list of conditions and the following disclaimer in the
   13  *    documentation and/or other materials provided with the distribution.
   14  * 3. The name of the author may not be used to endorse or promote products
   15  *    derived from this software without specific prior written permission.
   16  *
   17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
   18  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   19  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
   20  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
   21  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
   22  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
   23  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
   24  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
   25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
   26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
   27  *
   28  * $FreeBSD: stable/9/sys/sys/cdrio.h 105421 2002-10-18 22:03:39Z njl $
   29  */
   30 
   31 #ifndef _SYS_CDRIO_H_
   32 #define _SYS_CDRIO_H_
   33 
   34 #include <sys/ioccom.h>
   35 
   36 struct cdr_track {
   37         int datablock_type;             /* data type code */
   38 #define CDR_DB_RAW              0x0     /* 2352 bytes of raw data */
   39 #define CDR_DB_RAW_PQ           0x1     /* 2368 bytes raw data + P/Q subchan */
   40 #define CDR_DB_RAW_PW           0x2     /* 2448 bytes raw data + P-W subchan */
   41 #define CDR_DB_RAW_PW_R         0x3     /* 2448 bytes raw data + P-W raw sub */
   42 #define CDR_DB_RES_4            0x4     /* reserved */
   43 #define CDR_DB_RES_5            0x5     /* reserved */
   44 #define CDR_DB_RES_6            0x6     /* reserved */
   45 #define CDR_DB_VS_7             0x7     /* vendor specific */
   46 #define CDR_DB_ROM_MODE1        0x8     /* 2048 bytes Mode 1 (ISO/IEC 10149) */
   47 #define CDR_DB_ROM_MODE2        0x9     /* 2336 bytes Mode 2 (ISO/IEC 10149) */
   48 #define CDR_DB_XA_MODE1         0xa     /* 2048 bytes Mode 1 (CD-ROM XA 1) */
   49 #define CDR_DB_XA_MODE2_F1      0xb     /* 2056 bytes Mode 2 (CD-ROM XA 1) */
   50 #define CDR_DB_XA_MODE2_F2      0xc     /* 2324 bytes Mode 2 (CD-ROM XA 2) */
   51 #define CDR_DB_XA_MODE2_MIX     0xd     /* 2332 bytes Mode 2 (CD-ROM XA 1/2) */
   52 #define CDR_DB_RES_14           0xe     /* reserved */
   53 #define CDR_DB_VS_15            0xf     /* vendor specific */
   54 
   55         int preemp;                     /* preemphasis if audio track*/
   56         int test_write;                 /* use test writes, laser turned off */
   57 };
   58 
   59 struct cdr_cue_entry {
   60         u_int8_t adr:4;
   61         u_int8_t ctl:4;
   62         u_int8_t track;
   63         u_int8_t index;
   64         u_int8_t dataform;
   65         u_int8_t scms;
   66         u_int8_t min;
   67         u_int8_t sec;
   68         u_int8_t frame;
   69 };
   70 
   71 struct cdr_cuesheet {
   72         int32_t len;
   73         struct cdr_cue_entry *entries;
   74         int session_format;
   75 #define CDR_SESS_CDROM          0x00
   76 #define CDR_SESS_CDI            0x10
   77 #define CDR_SESS_CDROM_XA       0x20
   78 
   79         int session_type;
   80 #define CDR_SESS_NONE           0x00
   81 #define CDR_SESS_FINAL          0x01
   82 #define CDR_SESS_RESERVED       0x02
   83 #define CDR_SESS_MULTI          0x03
   84 
   85         int test_write;
   86 };
   87 
   88 struct cdr_format_capacity {
   89         u_int32_t blocks;
   90         u_int32_t reserved:2;
   91         u_int32_t type:6;
   92         u_int32_t param:24;
   93 };
   94 
   95 struct cdr_format_capacities {
   96         u_int8_t reserved1[3];
   97         u_int8_t length;
   98         u_int32_t blocks;
   99         u_int32_t type:2;
  100         u_int32_t reserved2:6;
  101         u_int32_t block_size:24;
  102         struct cdr_format_capacity format[32];
  103 };
  104 
  105 struct cdr_format_params {
  106         u_int8_t reserved;
  107         u_int8_t vs:1;
  108         u_int8_t immed:1;
  109         u_int8_t try_out:1;
  110         u_int8_t ip:1;
  111         u_int8_t stpf:1;
  112         u_int8_t dcrt:1;
  113         u_int8_t dpry:1;
  114         u_int8_t fov:1;
  115         u_int16_t length;
  116         struct cdr_format_capacity format;
  117 };
  118 
  119 #define CDRIOCBLANK             _IOW('c', 100, int)
  120 #define CDR_B_ALL               0x0
  121 #define CDR_B_MIN               0x1
  122 #define CDR_B_SESSION           0x6
  123 
  124 #define CDRIOCNEXTWRITEABLEADDR _IOR('c', 101, int)
  125 #define CDRIOCINITWRITER        _IOW('c', 102, int)
  126 #define CDRIOCINITTRACK         _IOW('c', 103, struct cdr_track)
  127 #define CDRIOCSENDCUE           _IOW('c', 104, struct cdr_cuesheet)
  128 #define CDRIOCFLUSH             _IO('c', 105)
  129 #define CDRIOCFIXATE            _IOW('c', 106, int)
  130 #define CDRIOCREADSPEED         _IOW('c', 107, int)
  131 #define CDRIOCWRITESPEED        _IOW('c', 108, int)
  132 #define CDR_MAX_SPEED           0xffff
  133 #define CDRIOCGETBLOCKSIZE      _IOR('c', 109, int)
  134 #define CDRIOCSETBLOCKSIZE      _IOW('c', 110, int)
  135 #define CDRIOCGETPROGRESS       _IOR('c', 111, int)
  136 #define CDRIOCREADFORMATCAPS    _IOR('c', 112, struct cdr_format_capacities)
  137 #define CDRIOCFORMAT            _IOW('c', 113, struct cdr_format_params)
  138 
  139 #endif /* !_SYS_CDRIO_H_ */

Cache object: d2397a90db4650047020b89c3a1abb5d


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.