2 * Copyright (c) 1999,2000,2001,2002 Søren Schmidt <sos@FreeBSD.org>
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
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.
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.
28 * $FreeBSD: src/sys/sys/dvdio.h,v 1.2.2.2 2002/03/18 08:34:53 sos Exp $
29 * $DragonFly: src/sys/sys/dvdio.h,v 1.3 2003/11/15 21:05:43 dillon Exp $
36 u_int8_t book_type :4;
37 u_int8_t book_version :4;
38 u_int8_t disc_size :4;
41 u_int8_t track_path :1;
42 u_int8_t layer_type :4;
43 u_int8_t linear_density :4;
44 u_int8_t track_density :4;
46 u_int32_t start_sector;
48 u_int32_t end_sector_l0;
69 u_int8_t vend_rsts :3;
70 u_int8_t user_rsts :3;
77 #define DVD_STRUCT_PHYSICAL 0x00
78 #define DVD_STRUCT_COPYRIGHT 0x01
79 #define DVD_STRUCT_DISCKEY 0x02
80 #define DVD_STRUCT_BCA 0x03
81 #define DVD_STRUCT_MANUFACT 0x04
82 #define DVD_STRUCT_CMI 0x05
83 #define DVD_STRUCT_PROTDISCID 0x06
84 #define DVD_STRUCT_DISCKEYBLOCK 0x07
85 #define DVD_STRUCT_DDS 0x08
86 #define DVD_STRUCT_MEDIUM_STAT 0x09
87 #define DVD_STRUCT_SPARE_AREA 0x0A
88 #define DVD_STRUCT_RMD_LAST 0x0C
89 #define DVD_STRUCT_RMD_RMA 0x0D
90 #define DVD_STRUCT_PRERECORDED 0x0E
91 #define DVD_STRUCT_UNIQUEID 0x0F
92 #define DVD_STRUCT_DCB 0x30
93 #define DVD_STRUCT_LIST 0xFF
95 #define DVD_REPORT_AGID 0
96 #define DVD_REPORT_CHALLENGE 1
97 #define DVD_REPORT_KEY1 2
98 #define DVD_REPORT_TITLE_KEY 4
99 #define DVD_REPORT_ASF 5
100 #define DVD_REPORT_RPC 8
101 #define DVD_INVALIDATE_AGID 0x3f
103 #define DVD_SEND_CHALLENGE 1
104 #define DVD_SEND_KEY2 3
105 #define DVD_SEND_RPC 6
107 #define DVDIOCREPORTKEY _IOWR('c', 200, struct dvd_authinfo)
108 #define DVDIOCSENDKEY _IOWR('c', 201, struct dvd_authinfo)
109 #define DVDIOCREADSTRUCTURE _IOWR('c', 202, struct dvd_struct)
111 #endif /* _SYS_DVDIO_H_ */