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/dvdio.h

Version: -  FREEBSD  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-2  -  FREEBSD-11-1  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-4  -  FREEBSD-10-3  -  FREEBSD-10-2  -  FREEBSD-10-1  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-3  -  FREEBSD-9-2  -  FREEBSD-9-1  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-4  -  FREEBSD-8-3  -  FREEBSD-8-2  -  FREEBSD-8-1  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-4  -  FREEBSD-7-3  -  FREEBSD-7-2  -  FREEBSD-7-1  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-4  -  FREEBSD-6-3  -  FREEBSD-6-2  -  FREEBSD-6-1  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-5  -  FREEBSD-5-4  -  FREEBSD-5-3  -  FREEBSD-5-2  -  FREEBSD-5-1  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  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) 1999,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: releng/11.1/sys/sys/dvdio.h 230132 2012-01-15 13:23:18Z uqs $
   29  */
   30 
   31 #ifndef _SYS_DVDIO_H_
   32 #define _SYS_DVDIO_H_
   33 
   34 struct dvd_layer {
   35         u_int8_t book_type      :4;
   36         u_int8_t book_version   :4;
   37         u_int8_t disc_size      :4;
   38         u_int8_t max_rate       :4;
   39         u_int8_t nlayers        :2;
   40         u_int8_t track_path     :1;
   41         u_int8_t layer_type     :4;
   42         u_int8_t linear_density :4;
   43         u_int8_t track_density  :4;
   44         u_int8_t bca            :1;
   45         u_int32_t start_sector;
   46         u_int32_t end_sector;
   47         u_int32_t end_sector_l0;
   48 };
   49 
   50 struct dvd_struct {
   51         u_char format;
   52         u_char layer_num;
   53         u_char cpst;
   54         u_char rmi;
   55         u_int8_t agid           :2;
   56         u_int32_t length;
   57         u_char data[2048];
   58 };
   59 
   60 struct dvd_authinfo {
   61         unsigned char format;
   62         u_int8_t agid           :2;
   63         u_int8_t asf            :1;
   64         u_int8_t cpm            :1;
   65         u_int8_t cp_sec         :1;
   66         u_int8_t cgms           :2;
   67         u_int8_t reg_type       :2;
   68         u_int8_t vend_rsts      :3;
   69         u_int8_t user_rsts      :3;
   70         u_int8_t region;
   71         u_int8_t rpc_scheme;
   72         u_int32_t lba;
   73         u_char keychal[10];
   74 };
   75 
   76 #define DVD_STRUCT_PHYSICAL     0x00
   77 #define DVD_STRUCT_COPYRIGHT    0x01
   78 #define DVD_STRUCT_DISCKEY      0x02
   79 #define DVD_STRUCT_BCA          0x03
   80 #define DVD_STRUCT_MANUFACT     0x04
   81 #define DVD_STRUCT_CMI          0x05
   82 #define DVD_STRUCT_PROTDISCID   0x06
   83 #define DVD_STRUCT_DISCKEYBLOCK 0x07
   84 #define DVD_STRUCT_DDS          0x08
   85 #define DVD_STRUCT_MEDIUM_STAT  0x09
   86 #define DVD_STRUCT_SPARE_AREA   0x0A
   87 #define DVD_STRUCT_RMD_LAST     0x0C
   88 #define DVD_STRUCT_RMD_RMA      0x0D
   89 #define DVD_STRUCT_PRERECORDED  0x0E
   90 #define DVD_STRUCT_UNIQUEID     0x0F
   91 #define DVD_STRUCT_DCB          0x30
   92 #define DVD_STRUCT_LIST         0xFF
   93 
   94 #define DVD_REPORT_AGID         0
   95 #define DVD_REPORT_CHALLENGE    1
   96 #define DVD_REPORT_KEY1         2
   97 #define DVD_REPORT_TITLE_KEY    4
   98 #define DVD_REPORT_ASF          5
   99 #define DVD_REPORT_RPC          8
  100 #define DVD_INVALIDATE_AGID     0x3f
  101 
  102 #define DVD_SEND_CHALLENGE      1
  103 #define DVD_SEND_KEY2           3
  104 #define DVD_SEND_RPC            6
  105 
  106 #define DVDIOCREPORTKEY         _IOWR('c', 200, struct dvd_authinfo)
  107 #define DVDIOCSENDKEY           _IOWR('c', 201, struct dvd_authinfo)
  108 #define DVDIOCREADSTRUCTURE     _IOWR('c', 202, struct dvd_struct)
  109 
  110 #endif /* _SYS_DVDIO_H_ */

Cache object: 3bbe830a908db189057723e5eaef9ed9


[ 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.