Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
e9ea66ae
Commit
e9ea66ae
authored
Aug 08, 2001
by
Sam Hocevar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Solaris DVD decryption support by H}kan Hjort <d95hjort@dtek.chalmers.se>.
parent
641341e8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
329 additions
and
43 deletions
+329
-43
AUTHORS
AUTHORS
+4
-0
ChangeLog
ChangeLog
+1
-1
configure
configure
+111
-39
configure.in
configure.in
+8
-0
extras/libdvdcss/ioctl.c
extras/libdvdcss/ioctl.c
+180
-1
extras/libdvdcss/ioctl.h
extras/libdvdcss/ioctl.h
+22
-2
include/defs.h.in
include/defs.h.in
+3
-0
No files found.
AUTHORS
View file @
e9ea66ae
...
@@ -106,6 +106,10 @@ E: jimmy@via.ecp.fr
...
@@ -106,6 +106,10 @@ E: jimmy@via.ecp.fr
C: jimmy
C: jimmy
D: IDCT and YUV transformations
D: IDCT and YUV transformations
N: H}kan Hjort
E: d95hjort@dtek.chalmers.se
D: Solaris port of the DVD ioctls
N: Samuel Hocevar
N: Samuel Hocevar
E: sam@zoy.org
E: sam@zoy.org
C: sam
C: sam
...
...
ChangeLog
View file @
e9ea66ae
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
HEAD
HEAD
*
Nothing
yet
.
*
Solaris
DVD
decryption
support
by
H
}
kan
Hjort
<
d95hjort
@
dtek
.
chalmers
.
se
>
.
0.2.82
0.2.82
Tue
,
7
Aug
2001
12
:
39
:
16
+
0200
Tue
,
7
Aug
2001
12
:
39
:
16
+
0200
...
...
configure
View file @
e9ea66ae
...
@@ -3617,6 +3617,78 @@ EOF
...
@@ -3617,6 +3617,78 @@ EOF
fi
fi
rm
-f
conftest
*
rm
-f
conftest
*
ac_safe
=
`
echo
"/usr/include/sys/scsi/scsi_types.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for /usr/include/sys/scsi/scsi_types.h""...
$ac_c
"
1>&6
echo
"configure:3623: checking for /usr/include/sys/scsi/scsi_types.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3628 "configure"
#include "confdefs.h"
#include </usr/include/sys/scsi/scsi_types.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:3633:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
eval
"ac_cv_header_
$ac_safe
=yes"
else
echo
"
$ac_err
"
>
&5
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_header_
$ac_safe
=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
ac_safe
=
`
echo
"sys/scsi/impl/uscsi.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for sys/scsi/impl/uscsi.h""...
$ac_c
"
1>&6
echo
"configure:3652: checking for sys/scsi/impl/uscsi.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
cat
>
conftest.
$ac_ext
<<
EOF
#line 3657 "configure"
#include "confdefs.h"
#include <sys/scsi/impl/uscsi.h>
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:3662:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
eval
"ac_cv_header_
$ac_safe
=yes"
else
echo
"
$ac_err
"
>
&5
echo
"configure: failed program was:"
>
&5
cat
conftest.
$ac_ext
>
&5
rm
-rf
conftest
*
eval
"ac_cv_header_
$ac_safe
=no"
fi
rm
-f
conftest
*
fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
cat
>>
confdefs.h
<<
\
EOF
#define SOLARIS_USCSI 1
EOF
else
echo
"
$ac_t
""no"
1>&6
fi
else
echo
"
$ac_t
""no"
1>&6
fi
if
test
x
$LINUX_DVD_STRUCT
=
x1
;
then
if
test
x
$LINUX_DVD_STRUCT
=
x1
;
then
cat
>>
confdefs.h
<<
\
EOF
cat
>>
confdefs.h
<<
\
EOF
#define HAVE_LINUX_DVD_STRUCT 1
#define HAVE_LINUX_DVD_STRUCT 1
...
@@ -3727,7 +3799,7 @@ if test "${enable_pth+set}" = set; then
...
@@ -3727,7 +3799,7 @@ if test "${enable_pth+set}" = set; then
enableval
=
"
$enable_pth
"
enableval
=
"
$enable_pth
"
if
test
x
$enableval
=
xyes
;
then
if
test
x
$enableval
=
xyes
;
then
echo
$ac_n
"checking for pth_init in -lpth""...
$ac_c
"
1>&6
echo
$ac_n
"checking for pth_init in -lpth""...
$ac_c
"
1>&6
echo
"configure:3
731
: checking for pth_init in -lpth"
>
&5
echo
"configure:3
803
: checking for pth_init in -lpth"
>
&5
ac_lib_var
=
`
echo
pth
'_'
pth_init |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
pth
'_'
pth_init |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -3735,7 +3807,7 @@ else
...
@@ -3735,7 +3807,7 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lpth
$LIBS
"
LIBS
=
"-lpth
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
739
"configure"
#line 3
811
"configure"
#include "confdefs.h"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
/* We use char because int might match the return type of a gcc2
...
@@ -3746,7 +3818,7 @@ int main() {
...
@@ -3746,7 +3818,7 @@ int main() {
pth_init()
pth_init()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:3
750
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:3
822
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
@@ -3774,7 +3846,7 @@ else
...
@@ -3774,7 +3846,7 @@ else
fi
fi
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 3
778
"configure"
#line 3
850
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <pth.h>
#include <pth.h>
EOF
EOF
...
@@ -3938,7 +4010,7 @@ if test "${enable_esd+set}" = set; then
...
@@ -3938,7 +4010,7 @@ if test "${enable_esd+set}" = set; then
# Extract the first word of "esd-config", so it can be a program name with args.
# Extract the first word of "esd-config", so it can be a program name with args.
set
dummy esd-config
;
ac_word
=
$2
set
dummy esd-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:
3942
: checking for
$ac_word
"
>
&5
echo
"configure:
4014
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_ESD_CONFIG
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_ESD_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -4005,17 +4077,17 @@ else
...
@@ -4005,17 +4077,17 @@ else
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:40
09
: checking for
$ac_hdr
"
>
&5
echo
"configure:40
81
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 40
14
"configure"
#line 40
86
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:40
19
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:40
91
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4060,17 +4132,17 @@ fi
...
@@ -4060,17 +4132,17 @@ fi
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
064
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
136
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
069
"configure"
#line 4
141
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
074
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
146
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4138,7 +4210,7 @@ then
...
@@ -4138,7 +4210,7 @@ then
# Extract the first word of "sdl12-config", so it can be a program name with args.
# Extract the first word of "sdl12-config", so it can be a program name with args.
set
dummy sdl12-config
;
ac_word
=
$2
set
dummy sdl12-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:4
142
: checking for
$ac_word
"
>
&5
echo
"configure:4
214
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL12_CONFIG
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL12_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -4178,7 +4250,7 @@ fi
...
@@ -4178,7 +4250,7 @@ fi
# Extract the first word of "sdl11-config", so it can be a program name with args.
# Extract the first word of "sdl11-config", so it can be a program name with args.
set
dummy sdl11-config
;
ac_word
=
$2
set
dummy sdl11-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:4
182
: checking for
$ac_word
"
>
&5
echo
"configure:4
254
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL11_CONFIG
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL11_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -4219,7 +4291,7 @@ fi
...
@@ -4219,7 +4291,7 @@ fi
# Extract the first word of "sdl-config", so it can be a program name with args.
# Extract the first word of "sdl-config", so it can be a program name with args.
set
dummy sdl-config
;
ac_word
=
$2
set
dummy sdl-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:42
23
: checking for
$ac_word
"
>
&5
echo
"configure:42
95
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL_CONFIG
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_SDL_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -4265,17 +4337,17 @@ fi
...
@@ -4265,17 +4337,17 @@ fi
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
269
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
341
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
274
"configure"
#line 4
346
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
279
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
351
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4338,17 +4410,17 @@ if test "${with_directx+set}" = set; then
...
@@ -4338,17 +4410,17 @@ if test "${with_directx+set}" = set; then
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
342
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
414
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
347
"configure"
#line 4
419
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
352
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
424
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4386,17 +4458,17 @@ fi
...
@@ -4386,17 +4458,17 @@ fi
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
390
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
462
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
395
"configure"
#line 4
467
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:44
00
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:44
72
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4508,7 +4580,7 @@ then
...
@@ -4508,7 +4580,7 @@ then
# Extract the first word of "gtk-config", so it can be a program name with args.
# Extract the first word of "gtk-config", so it can be a program name with args.
set
dummy gtk-config
;
ac_word
=
$2
set
dummy gtk-config
;
ac_word
=
$2
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_word
""...
$ac_c
"
1>&6
echo
"configure:45
12
: checking for
$ac_word
"
>
&5
echo
"configure:45
84
: checking for
$ac_word
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_GTK_CONFIG
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_path_GTK_CONFIG
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
...
@@ -4553,17 +4625,17 @@ fi
...
@@ -4553,17 +4625,17 @@ fi
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
557
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
629
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
562
"configure"
#line 4
634
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
567
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
639
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4614,17 +4686,17 @@ if test x$enable_x11 != xno; then
...
@@ -4614,17 +4686,17 @@ if test x$enable_x11 != xno; then
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:46
18
: checking for
$ac_hdr
"
>
&5
echo
"configure:46
90
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 46
23
"configure"
#line 46
95
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
628
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
700
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4676,17 +4748,17 @@ if test x$enable_xvideo != xno; then
...
@@ -4676,17 +4748,17 @@ if test x$enable_xvideo != xno; then
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
"configure:4
680
: checking for
$ac_hdr
"
>
&5
echo
"configure:4
752
: checking for
$ac_hdr
"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
685
"configure"
#line 4
757
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <
$ac_hdr
>
#include <
$ac_hdr
>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
690
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
762
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4726,17 +4798,17 @@ if test "${enable_alsa+set}" = set; then
...
@@ -4726,17 +4798,17 @@ if test "${enable_alsa+set}" = set; then
then
then
ac_safe
=
`
echo
"sys/asoundlib.h"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"sys/asoundlib.h"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for sys/asoundlib.h""...
$ac_c
"
1>&6
echo
$ac_n
"checking for sys/asoundlib.h""...
$ac_c
"
1>&6
echo
"configure:4
730
: checking for sys/asoundlib.h"
>
&5
echo
"configure:4
802
: checking for sys/asoundlib.h"
>
&5
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_header_
$ac_safe
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
else
else
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
735
"configure"
#line 4
807
"configure"
#include "confdefs.h"
#include "confdefs.h"
#include <sys/asoundlib.h>
#include <sys/asoundlib.h>
EOF
EOF
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
ac_try
=
"
$ac_cpp
conftest.
$ac_ext
>/dev/null 2>conftest.out"
{
(
eval echo
configure:4
740
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
{
(
eval echo
configure:4
812
:
\"
$ac_try
\"
)
1>&5
;
(
eval
$ac_try
)
2>&5
;
}
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
ac_err
=
`
grep
-v
'^ *+'
conftest.out |
grep
-v
"^conftest.
${
ac_ext
}
\$
"
`
if
test
-z
"
$ac_err
"
;
then
if
test
-z
"
$ac_err
"
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
...
@@ -4753,7 +4825,7 @@ fi
...
@@ -4753,7 +4825,7 @@ fi
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
if
eval
"test
\"
`
echo
'$ac_cv_header_'
$ac_safe
`
\"
= yes"
;
then
echo
"
$ac_t
""yes"
1>&6
echo
"
$ac_t
""yes"
1>&6
echo
$ac_n
"checking for main in -lasound""...
$ac_c
"
1>&6
echo
$ac_n
"checking for main in -lasound""...
$ac_c
"
1>&6
echo
"configure:4
757
: checking for main in -lasound"
>
&5
echo
"configure:4
829
: checking for main in -lasound"
>
&5
ac_lib_var
=
`
echo
asound
'_'
main |
sed
'y%./+-%__p_%'
`
ac_lib_var
=
`
echo
asound
'_'
main |
sed
'y%./+-%__p_%'
`
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
if
eval
"test
\"
`
echo
'$''{'
ac_cv_lib_
$ac_lib_var
'+set}'
`
\"
= set"
;
then
echo
$ac_n
"(cached)
$ac_c
"
1>&6
echo
$ac_n
"(cached)
$ac_c
"
1>&6
...
@@ -4761,14 +4833,14 @@ else
...
@@ -4761,14 +4833,14 @@ else
ac_save_LIBS
=
"
$LIBS
"
ac_save_LIBS
=
"
$LIBS
"
LIBS
=
"-lasound
$LIBS
"
LIBS
=
"-lasound
$LIBS
"
cat
>
conftest.
$ac_ext
<<
EOF
cat
>
conftest.
$ac_ext
<<
EOF
#line 4
765
"configure"
#line 4
837
"configure"
#include "confdefs.h"
#include "confdefs.h"
int main() {
int main() {
main()
main()
; return 0; }
; return 0; }
EOF
EOF
if
{
(
eval echo
configure:4
772
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
if
{
(
eval echo
configure:4
844
:
\"
$ac_link
\"
)
1>&5
;
(
eval
$ac_link
)
2>&5
;
}
&&
test
-s
conftest
${
ac_exeext
}
;
then
rm
-rf
conftest
*
rm
-rf
conftest
*
eval
"ac_cv_lib_
$ac_lib_var
=yes"
eval
"ac_cv_lib_
$ac_lib_var
=yes"
else
else
...
...
configure.in
View file @
e9ea66ae
...
@@ -256,6 +256,14 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
...
@@ -256,6 +256,14 @@ AC_CHECK_HEADERS(sys/ioctl.h,[
LINUX_DVD_STRUCT=1
LINUX_DVD_STRUCT=1
])
])
dnl
dnl
dnl Solaris: sys/scsi/generic/commands.h sys/scsi/impl/uscsi.h
dnl
AC_CHECK_HEADER(/usr/include/sys/scsi/scsi_types.h,[
AC_CHECK_HEADER(sys/scsi/impl/uscsi.h,[
AC_DEFINE(SOLARIS_USCSI, 1, Have userspace SCSI headers.)
])
])
dnl
dnl Final tests to check what was detected
dnl Final tests to check what was detected
dnl
dnl
if test x$LINUX_DVD_STRUCT = x1; then
if test x$LINUX_DVD_STRUCT = x1; then
...
...
extras/libdvdcss/ioctl.c
View file @
e9ea66ae
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ioctl.c: DVD ioctl replacement function
* ioctl.c: DVD ioctl replacement function
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: ioctl.c,v 1.
7 2001/08/07 02:48:2
4 sam Exp $
* $Id: ioctl.c,v 1.
8 2001/08/08 02:48:4
4 sam Exp $
*
*
* Authors: Markus Kuespert <ltlBeBoy@beosmail.com>
* Authors: Markus Kuespert <ltlBeBoy@beosmail.com>
* Samuel Hocevar <sam@zoy.org>
* Samuel Hocevar <sam@zoy.org>
...
@@ -55,6 +55,12 @@
...
@@ -55,6 +55,12 @@
# include <malloc.h>
# include <malloc.h>
# include <scsi.h>
# include <scsi.h>
#endif
#endif
#ifdef SOLARIS_USCSI
# include <unistd.h>
# include <stropts.h>
# include </usr/include/sys/scsi/scsi_types.h>
# include <sys/scsi/impl/uscsi.h>
#endif
#include "config.h"
#include "config.h"
#include "common.h"
#include "common.h"
...
@@ -72,6 +78,13 @@
...
@@ -72,6 +78,13 @@
static
void
BeInitRDC
(
raw_device_command
*
,
int
);
static
void
BeInitRDC
(
raw_device_command
*
,
int
);
#endif
#endif
/*****************************************************************************
* Local prototypes, Solaris specific
*****************************************************************************/
#if defined( SOLARIS_USCSI )
static
void
SolarisInitUSCSI
(
struct
uscsi_cmd
*
p_sc
,
int
i_type
);
#endif
/*****************************************************************************
/*****************************************************************************
* Local prototypes, win32 (aspi) specific
* Local prototypes, win32 (aspi) specific
*****************************************************************************/
*****************************************************************************/
...
@@ -117,6 +130,21 @@ int ioctl_ReadCopyright( int i_fd, int i_layer, int *pi_copyright )
...
@@ -117,6 +130,21 @@ int ioctl_ReadCopyright( int i_fd, int i_layer, int *pi_copyright )
*
pi_copyright
=
p_buffer
[
4
];
*
pi_copyright
=
p_buffer
[
4
];
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_READ_DVD_STRUCTURE
,
8
);
rs_cdb
.
cdb_opaque
[
6
]
=
i_layer
;
rs_cdb
.
cdb_opaque
[
7
]
=
DVD_STRUCT_COPYRIGHT
;
i_ret
=
ioctl
(
i_fd
,
USCSICMD
,
&
sc
);
if
(
i_ret
<
0
||
sc
.
uscsi_status
)
{
i_ret
=
-
1
;
}
*
pi_copyright
=
p_buffer
[
4
];
// s->copyright.rmi = p_buffer[ 5 ];
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
*
pi_copyright
=
1
;
*
pi_copyright
=
1
;
...
@@ -240,6 +268,22 @@ int ioctl_ReadKey( int i_fd, int *pi_agid, u8 *p_key )
...
@@ -240,6 +268,22 @@ int ioctl_ReadKey( int i_fd, int *pi_agid, u8 *p_key )
memcpy
(
p_key
,
p_buffer
+
4
,
2048
);
memcpy
(
p_key
,
p_buffer
+
4
,
2048
);
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_READ_DVD_STRUCTURE
,
2048
+
4
);
rs_cdb
.
cdb_opaque
[
7
]
=
DVD_STRUCT_DISCKEY
;
rs_cdb
.
cdb_opaque
[
10
]
=
*
pi_agid
<<
6
;
i_ret
=
ioctl
(
i_fd
,
USCSICMD
,
&
sc
);
if
(
i_ret
<
0
||
sc
.
uscsi_status
)
{
i_ret
=
-
1
;
return
i_ret
;
}
memcpy
(
p_key
,
p_buffer
+
4
,
2048
);
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
i_ret
=
0
;
i_ret
=
0
;
...
@@ -330,6 +374,20 @@ int ioctl_ReportAgid( int i_fd, int *pi_agid )
...
@@ -330,6 +374,20 @@ int ioctl_ReportAgid( int i_fd, int *pi_agid )
*
pi_agid
=
p_buffer
[
7
]
>>
6
;
*
pi_agid
=
p_buffer
[
7
]
>>
6
;
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_REPORT_KEY
,
8
);
rs_cdb
.
cdb_opaque
[
10
]
=
DVD_REPORT_AGID
|
(
*
pi_agid
<<
6
);
i_ret
=
ioctl
(
i_fd
,
USCSICMD
,
&
sc
);
if
(
i_ret
<
0
||
sc
.
uscsi_status
)
{
i_ret
=
-
1
;
}
*
pi_agid
=
p_buffer
[
7
]
>>
6
;
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
INIT_DVDIOCTL
(
8
);
INIT_DVDIOCTL
(
8
);
...
@@ -407,6 +465,20 @@ int ioctl_ReportChallenge( int i_fd, int *pi_agid, u8 *p_challenge )
...
@@ -407,6 +465,20 @@ int ioctl_ReportChallenge( int i_fd, int *pi_agid, u8 *p_challenge )
memcpy
(
p_challenge
,
p_buffer
+
4
,
12
);
memcpy
(
p_challenge
,
p_buffer
+
4
,
12
);
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_REPORT_KEY
,
16
);
rs_cdb
.
cdb_opaque
[
10
]
=
DVD_REPORT_CHALLENGE
|
(
*
pi_agid
<<
6
);
i_ret
=
ioctl
(
i_fd
,
USCSICMD
,
&
sc
);
if
(
i_ret
<
0
||
sc
.
uscsi_status
)
{
i_ret
=
-
1
;
}
memcpy
(
p_challenge
,
p_buffer
+
4
,
12
);
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
INIT_DVDIOCTL
(
16
);
INIT_DVDIOCTL
(
16
);
...
@@ -499,6 +571,20 @@ int ioctl_ReportASF( int i_fd, int *pi_agid, int *pi_asf )
...
@@ -499,6 +571,20 @@ int ioctl_ReportASF( int i_fd, int *pi_agid, int *pi_asf )
*
pi_asf
=
p_buffer
[
7
]
&
1
;
*
pi_asf
=
p_buffer
[
7
]
&
1
;
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_REPORT_KEY
,
8
);
rs_cdb
.
cdb_opaque
[
10
]
=
DVD_REPORT_ASF
|
(
*
pi_agid
<<
6
);
i_ret
=
ioctl
(
i_fd
,
USCSICMD
,
&
sc
);
if
(
i_ret
<
0
||
sc
.
uscsi_status
)
{
i_ret
=
-
1
;
}
*
pi_asf
=
p_buffer
[
7
]
&
1
;
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
INIT_DVDIOCTL
(
8
);
INIT_DVDIOCTL
(
8
);
...
@@ -591,6 +677,20 @@ int ioctl_ReportKey1( int i_fd, int *pi_agid, u8 *p_key )
...
@@ -591,6 +677,20 @@ int ioctl_ReportKey1( int i_fd, int *pi_agid, u8 *p_key )
memcpy
(
p_key
,
p_buffer
+
4
,
8
);
memcpy
(
p_key
,
p_buffer
+
4
,
8
);
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_REPORT_KEY
,
12
);
rs_cdb
.
cdb_opaque
[
10
]
=
DVD_REPORT_KEY1
|
(
*
pi_agid
<<
6
);
i_ret
=
ioctl
(
i_fd
,
USCSICMD
,
&
sc
);
if
(
i_ret
<
0
||
sc
.
uscsi_status
)
{
i_ret
=
-
1
;
}
memcpy
(
p_key
,
p_buffer
+
4
,
8
);;
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
INIT_DVDIOCTL
(
12
);
INIT_DVDIOCTL
(
12
);
...
@@ -673,6 +773,18 @@ int ioctl_InvalidateAgid( int i_fd, int *pi_agid )
...
@@ -673,6 +773,18 @@ int ioctl_InvalidateAgid( int i_fd, int *pi_agid )
i_ret
=
ioctl
(
i_fd
,
B_RAW_DEVICE_COMMAND
,
&
rdc
,
sizeof
(
rdc
)
);
i_ret
=
ioctl
(
i_fd
,
B_RAW_DEVICE_COMMAND
,
&
rdc
,
sizeof
(
rdc
)
);
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_REPORT_KEY
,
0
);
rs_cdb
.
cdb_opaque
[
10
]
=
DVD_INVALIDATE_AGID
|
(
*
pi_agid
<<
6
);
i_ret
=
ioctl
(
i_fd
,
USCSICMD
,
&
sc
);
if
(
i_ret
<
0
||
sc
.
uscsi_status
)
{
i_ret
=
-
1
;
}
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
INIT_DVDIOCTL
(
0
);
INIT_DVDIOCTL
(
0
);
...
@@ -749,6 +861,21 @@ int ioctl_SendChallenge( int i_fd, int *pi_agid, u8 *p_challenge )
...
@@ -749,6 +861,21 @@ int ioctl_SendChallenge( int i_fd, int *pi_agid, u8 *p_challenge )
return
ioctl
(
i_fd
,
B_RAW_DEVICE_COMMAND
,
&
rdc
,
sizeof
(
rdc
)
);
return
ioctl
(
i_fd
,
B_RAW_DEVICE_COMMAND
,
&
rdc
,
sizeof
(
rdc
)
);
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_SEND_KEY
,
16
);
rs_cdb
.
cdb_opaque
[
10
]
=
DVD_SEND_CHALLENGE
|
(
*
pi_agid
<<
6
);
p_buffer
[
1
]
=
0xe
;
memcpy
(
p_buffer
+
4
,
p_challenge
,
12
);
if
(
ioctl
(
i_fd
,
USCSICMD
,
&
sc
)
<
0
||
sc
.
uscsi_status
)
{
return
-
1
;
}
return
0
;
#elif defined( SYS_DARWIN )
#elif defined( SYS_DARWIN )
INIT_DVDIOCTL
(
16
);
INIT_DVDIOCTL
(
16
);
...
@@ -833,6 +960,21 @@ int ioctl_SendKey2( int i_fd, int *pi_agid, u8 *p_key )
...
@@ -833,6 +960,21 @@ int ioctl_SendKey2( int i_fd, int *pi_agid, u8 *p_key )
return
ioctl
(
i_fd
,
B_RAW_DEVICE_COMMAND
,
&
rdc
,
sizeof
(
rdc
)
);
return
ioctl
(
i_fd
,
B_RAW_DEVICE_COMMAND
,
&
rdc
,
sizeof
(
rdc
)
);
#elif defined( SOLARIS_USCSI )
INIT_USCSI
(
GPCMD_SEND_KEY
,
12
);
rs_cdb
.
cdb_opaque
[
10
]
=
DVD_SEND_KEY2
|
(
*
pi_agid
<<
6
);
p_buffer
[
1
]
=
0xa
;
memcpy
(
p_buffer
+
4
,
p_key
,
8
);
if
(
ioctl
(
i_fd
,
USCSICMD
,
&
sc
)
<
0
||
sc
.
uscsi_status
)
{
return
-
1
;
}
return
0
;
#elif defined( WIN32 )
#elif defined( WIN32 )
if
(
WIN2K
)
/* NT/Win2000/Whistler */
if
(
WIN2K
)
/* NT/Win2000/Whistler */
{
{
...
@@ -920,6 +1062,43 @@ static void BeInitRDC( raw_device_command *p_rdc, int i_type )
...
@@ -920,6 +1062,43 @@ static void BeInitRDC( raw_device_command *p_rdc, int i_type )
}
}
#endif
#endif
#if defined( SOLARIS_USCSI )
/*****************************************************************************
* SolarisInitUSCSI: initialize a USCSICMD structure for the Solaris kernel
*****************************************************************************
* This function initializes a Solaris userspace scsi command structure for
* future use, either a read command or a write command.
*****************************************************************************/
static
void
SolarisInitUSCSI
(
struct
uscsi_cmd
*
p_sc
,
int
i_type
)
{
union
scsi_cdb
*
rs_cdb
;
memset
(
p_sc
->
uscsi_cdb
,
0
,
sizeof
(
union
scsi_cdb
)
);
memset
(
p_sc
->
uscsi_bufaddr
,
0
,
p_sc
->
uscsi_buflen
);
switch
(
i_type
)
{
case
GPCMD_SEND_KEY
:
p_sc
->
uscsi_flags
=
USCSI_ISOLATE
|
USCSI_WRITE
;
break
;
case
GPCMD_READ_DVD_STRUCTURE
:
case
GPCMD_REPORT_KEY
:
p_sc
->
uscsi_flags
=
USCSI_ISOLATE
|
USCSI_READ
;
break
;
}
rs_cdb
=
(
union
scsi_cdb
*
)
p_sc
->
uscsi_cdb
;
rs_cdb
->
scc_cmd
=
i_type
;
rs_cdb
->
cdb_opaque
[
8
]
=
(
p_sc
->
uscsi_buflen
>>
8
)
&
0xff
;
rs_cdb
->
cdb_opaque
[
9
]
=
p_sc
->
uscsi_buflen
&
0xff
;
p_sc
->
uscsi_cdblen
=
12
;
USCSI_TIMEOUT
(
p_sc
,
15
);
}
#endif
#if defined( WIN32 )
#if defined( WIN32 )
/*****************************************************************************
/*****************************************************************************
* WinInitSSC: initialize a ssc structure for the win32 aspi layer
* WinInitSSC: initialize a ssc structure for the win32 aspi layer
...
...
extras/libdvdcss/ioctl.h
View file @
e9ea66ae
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* ioctl.h: DVD ioctl replacement function
* ioctl.h: DVD ioctl replacement function
*****************************************************************************
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* Copyright (C) 1999-2001 VideoLAN
* $Id: ioctl.h,v 1.
5 2001/07/07 21:10:58 gbazin
Exp $
* $Id: ioctl.h,v 1.
6 2001/08/08 02:48:44 sam
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -45,6 +45,23 @@ int ioctl_SendKey2 ( int, int *, u8 * );
...
@@ -45,6 +45,23 @@ int ioctl_SendKey2 ( int, int *, u8 * );
BeInitRDC( &rdc, (TYPE) );
BeInitRDC( &rdc, (TYPE) );
#endif
#endif
/*****************************************************************************
* Common macro, Solaris specific
*****************************************************************************/
#if defined( SOLARIS_USCSI )
#define USCSI_TIMEOUT( SC, TO ) ( (SC)->uscsi_timeout = (TO) )
#define USCSI_RESID( SC ) ( (SC)->uscsi_resid )
#define INIT_USCSI( TYPE, SIZE ) \
struct uscsi_cmd sc; \
union scsi_cdb rs_cdb; \
u8 p_buffer[ (SIZE) ]; \
memset( &sc, 0, sizeof( struct uscsi_cmd ) ); \
sc.uscsi_cdb = (caddr_t)&rs_cdb; \
sc.uscsi_bufaddr = p_buffer; \
sc.uscsi_buflen = (SIZE); \
SolarisInitUSCSI( &sc, (TYPE) );
#endif
/*****************************************************************************
/*****************************************************************************
* Common macro, Darwin specific
* Common macro, Darwin specific
*****************************************************************************/
*****************************************************************************/
...
@@ -75,15 +92,18 @@ int ioctl_SendKey2 ( int, int *, u8 * );
...
@@ -75,15 +92,18 @@ int ioctl_SendKey2 ( int, int *, u8 * );
* Various DVD I/O tables
* Various DVD I/O tables
*****************************************************************************/
*****************************************************************************/
#if defined( SYS_BEOS ) || defined( WIN32 )
#if defined( SYS_BEOS ) || defined( WIN32 )
|| defined ( SOLARIS_USCSI )
/* The generic packet command opcodes for CD/DVD Logical Units,
/* The generic packet command opcodes for CD/DVD Logical Units,
* From Table 57 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
* From Table 57 of the SFF8090 Ver. 3 (Mt. Fuji) draft standard. */
# define GPCMD_READ_DVD_STRUCTURE 0xad
# define GPCMD_READ_DVD_STRUCTURE 0xad
# define GPCMD_REPORT_KEY 0xa4
# define GPCMD_REPORT_KEY 0xa4
# define GPCMD_SEND_KEY 0xa3
# define GPCMD_SEND_KEY 0xa3
/* DVD struct types */
/* DVD struct types */
# define DVD_STRUCT_PHYSICAL 0x00
# define DVD_STRUCT_COPYRIGHT 0x01
# define DVD_STRUCT_COPYRIGHT 0x01
# define DVD_STRUCT_DISCKEY 0x02
# define DVD_STRUCT_DISCKEY 0x02
# define DVD_STRUCT_BCA 0x03
# define DVD_STRUCT_MANUFACT 0x04
/* Key formats */
/* Key formats */
# define DVD_REPORT_AGID 0x00
# define DVD_REPORT_AGID 0x00
# define DVD_REPORT_CHALLENGE 0x01
# define DVD_REPORT_CHALLENGE 0x01
...
...
include/defs.h.in
View file @
e9ea66ae
...
@@ -190,6 +190,9 @@
...
@@ -190,6 +190,9 @@
/* Define if <dvd.h> defines DVD_STRUCT. */
/* Define if <dvd.h> defines DVD_STRUCT. */
#undef DVD_STRUCT_IN_DVD_H
#undef DVD_STRUCT_IN_DVD_H
/* Have userspace SCSI headers. */
#undef SOLARIS_USCSI
/* Define if Linux-like dvd_struct is defined. */
/* Define if Linux-like dvd_struct is defined. */
#undef HAVE_LINUX_DVD_STRUCT
#undef HAVE_LINUX_DVD_STRUCT
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment