1 /*****************************************************************************
2 * dvd_ioctl.h: DVD ioctl replacement function
3 *****************************************************************************
4 * Copyright (C) 1999-2001 VideoLAN
5 * $Id: dvd_ioctl.h,v 1.8 2001/05/25 04:44:49 sam Exp $
7 * Authors: Samuel Hocevar <sam@zoy.org>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA.
22 *****************************************************************************/
24 int ioctl_ReadCopyright ( int, int, int * );
25 int ioctl_ReadKey ( int, int *, u8 * );
27 int ioctl_ReportAgid ( int, int * );
28 int ioctl_ReportChallenge ( int, int *, u8 * );
29 int ioctl_ReportKey1 ( int, int *, u8 * );
30 int ioctl_ReportASF ( int, int *, int * );
31 int ioctl_InvalidateAgid ( int, int * );
32 int ioctl_SendChallenge ( int, int *, u8 * );
33 int ioctl_SendKey2 ( int, int *, u8 * );
37 /* The generic packet command opcodes for CD/DVD Logical Units,
38 * From Table 57 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
39 #define GPCMD_READ_DVD_STRUCTURE 0xad
40 #define GPCMD_REPORT_KEY 0xa4
41 #define GPCMD_SEND_KEY 0xa3
43 /* DVD struct types */
44 #define DVD_STRUCT_COPYRIGHT 0x01
45 #define DVD_STRUCT_DISCKEY 0x02
48 #define DVD_REPORT_AGID 0x00
49 #define DVD_REPORT_CHALLENGE 0x01
50 #define DVD_SEND_CHALLENGE 0x01
51 #define DVD_REPORT_KEY1 0x02
52 #define DVD_SEND_KEY2 0x03
53 #define DVD_REPORT_ASF 0x05
54 #define DVD_INVALIDATE_AGID 0x3f