summaryrefslogtreecommitdiffstats
path: root/lib/ps3-av.h
blob: a684b0c1f27e840da9fc9362ad86e9eb68b84619 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
/*
 *  PS3 AV settings.
 *
 *  Copyright (C) 2006 Sony Computer Entertainment Inc.
 *  Copyright 2006 Sony Corp.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 */

#if !defined(_B9AAF29B_E200_4804_82F1_A8EAC824F1F5_H)
#define _B9AAF29B_E200_4804_82F1_A8EAC824F1F5_H

#if defined(HAVE_ASM_PS3AV_H)
#include <asm/ps3av.h>
#endif

#if !defined(HAVE_DECL_PS3AV_MODE_MASK) || !HAVE_DECL_PS3AV_MODE_MASK
#define PS3AV_MODE_MASK      0x000F
#endif
#if !defined(HAVE_DECL_PS3AV_MODE_RGB) || !HAVE_DECL_PS3AV_MODE_RGB
#define PS3AV_MODE_RGB       0x0020
#endif
#if !defined(HAVE_DECL_PS3AV_MODE_FULL) || !HAVE_DECL_PS3AV_MODE_FULL
#define PS3AV_MODE_FULL      0x0080
#endif
#if !defined(HAVE_DECL_PS3AV_MODE_WHITE) || !HAVE_DECL_PS3AV_MODE_WHITE
#define PS3AV_MODE_WHITE     0x0200
#endif
#if !defined(HAVE_DECL_PS3AV_MODE_COLOR) || !HAVE_DECL_PS3AV_MODE_COLOR
#define PS3AV_MODE_COLOR     0x0400
#endif
#if !defined(HAVE_DECL_PS3AV_MODE_DITHER) || !HAVE_DECL_PS3AV_MODE_DITHER
#define PS3AV_MODE_DITHER    0x0800
#endif
#if !defined(HAVE_DECL_PS3AV_MODE_HDCP_OFF) || !HAVE_DECL_PS3AV_MODE_HDCP_OFF
#define PS3AV_MODE_HDCP_OFF  0x1000 /* Retail PS3 doesn't support this */
#endif

#define PS3FB_IOCTL_SETMODE          _IOW('r',  1, int)
#define PS3FB_IOCTL_GETMODE          _IOR('r',  2, int)

#endif