]> git.sesse.net Git - vlc/blob - plugins/dvd/dvd_ioctl.h
* additional enhancements to the OS X DVD ioctl module
[vlc] / plugins / dvd / dvd_ioctl.h
1 /*****************************************************************************
2  * dvd_ioctl.h: DVD ioctl replacement function
3  *****************************************************************************
4  * Copyright (C) 1999-2001 VideoLAN
5  * $Id: dvd_ioctl.h,v 1.5 2001/04/04 02:49:18 sam Exp $
6  *
7  * Authors: Samuel Hocevar <sam@zoy.org>
8  *
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.
13  *
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.
18  *
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  *****************************************************************************/
23
24 int ioctl_ReadCopyright     ( int, int, int * );
25 int ioctl_ReadKey           ( css_t *, u8 * );
26
27 int ioctl_LUSendAgid        ( css_t * );
28 int ioctl_LUSendChallenge   ( css_t *, u8 * );
29 int ioctl_LUSendKey1        ( css_t *, u8 * );
30 int ioctl_LUSendASF         ( css_t *, int * );
31 int ioctl_InvalidateAgid    ( css_t * );
32 int ioctl_HostSendChallenge ( css_t *, u8 * );
33 int ioctl_HostSendKey2      ( css_t *, u8 * );
34
35 #ifdef SYS_BEOS
36
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
42
43 /* DVD struct types */
44 #define DVD_STRUCT_COPYRIGHT     0x01
45 #define DVD_STRUCT_DISCKEY       0x02
46
47 #endif
48