Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
ps3av.h File Reference

Go to the source code of this file.

Data Structures

struct  ps3av_send_hdr
 
struct  ps3av_reply_hdr
 
struct  ps3av_pkt_av_init
 
struct  ps3av_pkt_av_fin
 
struct  ps3av_pkt_av_get_hw_conf
 
struct  ps3av_info_resolution
 
struct  ps3av_info_cs
 
struct  ps3av_info_color
 
struct  ps3av_info_audio
 
struct  ps3av_info_monitor
 
struct  ps3av_pkt_av_get_monitor_info
 
struct  ps3av_pkt_av_event
 
struct  ps3av_pkt_av_video_cs
 
struct  ps3av_av_mute
 
struct  ps3av_pkt_av_video_mute
 
struct  ps3av_pkt_av_video_disable_sig
 
struct  ps3av_audio_info_frame
 
struct  ps3av_audio_info_frame::pb1_bit
 
struct  ps3av_audio_info_frame::pb2_bit
 
struct  ps3av_audio_info_frame::pb5_bit
 
struct  ps3av_pkt_av_audio_param
 
struct  ps3av_pkt_av_audio_mute
 
struct  ps3av_pkt_av_hdmi_mode
 
struct  ps3av_pkt_av_tv_mute
 
struct  ps3av_pkt_video_init
 
struct  ps3av_pkt_video_mode
 
struct  ps3av_pkt_video_format
 
struct  ps3av_pkt_video_pitch
 
struct  ps3av_pkt_audio_init
 
struct  ps3av_pkt_audio_mode
 
struct  ps3av_audio_mute
 
struct  ps3av_pkt_audio_mute
 
struct  ps3av_pkt_audio_active
 
struct  ps3av_pkt_audio_spdif_bit
 
struct  ps3av_pkt_audio_ctrl
 
struct  ps3av_pkt_avb_param
 

Macros

#define PS3AV_VERSION   0x205 /* version of ps3av command */
 
#define PS3AV_CID_AV_INIT   0x00000001
 
#define PS3AV_CID_AV_FIN   0x00000002
 
#define PS3AV_CID_AV_GET_HW_CONF   0x00000003
 
#define PS3AV_CID_AV_GET_MONITOR_INFO   0x00000004
 
#define PS3AV_CID_AV_ENABLE_EVENT   0x00000006
 
#define PS3AV_CID_AV_DISABLE_EVENT   0x00000007
 
#define PS3AV_CID_AV_TV_MUTE   0x0000000a
 
#define PS3AV_CID_AV_VIDEO_CS   0x00010001
 
#define PS3AV_CID_AV_VIDEO_MUTE   0x00010002
 
#define PS3AV_CID_AV_VIDEO_DISABLE_SIG   0x00010003
 
#define PS3AV_CID_AV_AUDIO_PARAM   0x00020001
 
#define PS3AV_CID_AV_AUDIO_MUTE   0x00020002
 
#define PS3AV_CID_AV_HDMI_MODE   0x00040001
 
#define PS3AV_CID_VIDEO_INIT   0x01000001
 
#define PS3AV_CID_VIDEO_MODE   0x01000002
 
#define PS3AV_CID_VIDEO_FORMAT   0x01000004
 
#define PS3AV_CID_VIDEO_PITCH   0x01000005
 
#define PS3AV_CID_AUDIO_INIT   0x02000001
 
#define PS3AV_CID_AUDIO_MODE   0x02000002
 
#define PS3AV_CID_AUDIO_MUTE   0x02000003
 
#define PS3AV_CID_AUDIO_ACTIVE   0x02000004
 
#define PS3AV_CID_AUDIO_INACTIVE   0x02000005
 
#define PS3AV_CID_AUDIO_SPDIF_BIT   0x02000006
 
#define PS3AV_CID_AUDIO_CTRL   0x02000007
 
#define PS3AV_CID_EVENT_UNPLUGGED   0x10000001
 
#define PS3AV_CID_EVENT_PLUGGED   0x10000002
 
#define PS3AV_CID_EVENT_HDCP_DONE   0x10000003
 
#define PS3AV_CID_EVENT_HDCP_FAIL   0x10000004
 
#define PS3AV_CID_EVENT_HDCP_AUTH   0x10000005
 
#define PS3AV_CID_EVENT_HDCP_ERROR   0x10000006
 
#define PS3AV_CID_AVB_PARAM   0x04000001
 
#define PS3AV_HDMI_MAX   2 /* HDMI_0 HDMI_1 */
 
#define PS3AV_AVMULTI_MAX   1 /* AVMULTI_0 */
 
#define PS3AV_AV_PORT_MAX   (PS3AV_HDMI_MAX + PS3AV_AVMULTI_MAX)
 
#define PS3AV_OPT_PORT_MAX   1 /* SPDIF0 */
 
#define PS3AV_HEAD_MAX   2 /* HEAD_A HEAD_B */
 
#define PS3AV_AVB_NUM_VIDEO   PS3AV_HEAD_MAX
 
#define PS3AV_AVB_NUM_AUDIO   0 /* not supported */
 
#define PS3AV_AVB_NUM_AV_VIDEO   PS3AV_AV_PORT_MAX
 
#define PS3AV_AVB_NUM_AV_AUDIO   PS3AV_HDMI_MAX
 
#define PS3AV_MUTE_PORT_MAX   1 /* num of ports in mute pkt */
 
#define PS3AV_CMD_EVENT_BIT_UNPLUGGED   (1 << 0)
 
#define PS3AV_CMD_EVENT_BIT_PLUGGED   (1 << 1)
 
#define PS3AV_CMD_EVENT_BIT_HDCP_DONE   (1 << 2)
 
#define PS3AV_CMD_EVENT_BIT_HDCP_FAIL   (1 << 3)
 
#define PS3AV_CMD_EVENT_BIT_HDCP_REAUTH   (1 << 4)
 
#define PS3AV_CMD_EVENT_BIT_HDCP_TOPOLOGY   (1 << 5)
 
#define PS3AV_CMD_MUTE_OFF   0x0000
 
#define PS3AV_CMD_MUTE_ON   0x0001
 
#define PS3AV_CMD_AVPORT_HDMI_0   0x0000
 
#define PS3AV_CMD_AVPORT_HDMI_1   0x0001
 
#define PS3AV_CMD_AVPORT_AVMULTI_0   0x0010
 
#define PS3AV_CMD_AVPORT_SPDIF_0   0x0020
 
#define PS3AV_CMD_AVPORT_SPDIF_1   0x0021
 
#define PS3AV_CMD_AV_MCLK_128   0x0000
 
#define PS3AV_CMD_AV_MCLK_256   0x0001
 
#define PS3AV_CMD_AV_MCLK_512   0x0003
 
#define PS3AV_CMD_AV_INPUTLEN_16   0x02
 
#define PS3AV_CMD_AV_INPUTLEN_20   0x0a
 
#define PS3AV_CMD_AV_INPUTLEN_24   0x0b
 
#define PS3AV_CMD_AV_LAYOUT_32   (1 << 0)
 
#define PS3AV_CMD_AV_LAYOUT_44   (1 << 1)
 
#define PS3AV_CMD_AV_LAYOUT_48   (1 << 2)
 
#define PS3AV_CMD_AV_LAYOUT_88   (1 << 3)
 
#define PS3AV_CMD_AV_LAYOUT_96   (1 << 4)
 
#define PS3AV_CMD_AV_LAYOUT_176   (1 << 5)
 
#define PS3AV_CMD_AV_LAYOUT_192   (1 << 6)
 
#define PS3AV_CMD_AV_HDMI_MODE_NORMAL   0xff
 
#define PS3AV_CMD_AV_HDMI_HDCP_OFF   0x01
 
#define PS3AV_CMD_AV_HDMI_EDID_PASS   0x80
 
#define PS3AV_CMD_AV_HDMI_DVI   0x40
 
#define PS3AV_CMD_VIDEO_HEAD_A   0x0000
 
#define PS3AV_CMD_VIDEO_HEAD_B   0x0001
 
#define PS3AV_CMD_VIDEO_CS_NONE   0x0000
 
#define PS3AV_CMD_VIDEO_CS_RGB_8   0x0001
 
#define PS3AV_CMD_VIDEO_CS_YUV444_8   0x0002
 
#define PS3AV_CMD_VIDEO_CS_YUV422_8   0x0003
 
#define PS3AV_CMD_VIDEO_CS_XVYCC_8   0x0004
 
#define PS3AV_CMD_VIDEO_CS_RGB_10   0x0005
 
#define PS3AV_CMD_VIDEO_CS_YUV444_10   0x0006
 
#define PS3AV_CMD_VIDEO_CS_YUV422_10   0x0007
 
#define PS3AV_CMD_VIDEO_CS_XVYCC_10   0x0008
 
#define PS3AV_CMD_VIDEO_CS_RGB_12   0x0009
 
#define PS3AV_CMD_VIDEO_CS_YUV444_12   0x000a
 
#define PS3AV_CMD_VIDEO_CS_YUV422_12   0x000b
 
#define PS3AV_CMD_VIDEO_CS_XVYCC_12   0x000c
 
#define PS3AV_CMD_VIDEO_VID_NONE   0x0000
 
#define PS3AV_CMD_VIDEO_VID_480I   0x0001
 
#define PS3AV_CMD_VIDEO_VID_576I   0x0003
 
#define PS3AV_CMD_VIDEO_VID_480P   0x0005
 
#define PS3AV_CMD_VIDEO_VID_576P   0x0006
 
#define PS3AV_CMD_VIDEO_VID_1080I_60HZ   0x0007
 
#define PS3AV_CMD_VIDEO_VID_1080I_50HZ   0x0008
 
#define PS3AV_CMD_VIDEO_VID_720P_60HZ   0x0009
 
#define PS3AV_CMD_VIDEO_VID_720P_50HZ   0x000a
 
#define PS3AV_CMD_VIDEO_VID_1080P_60HZ   0x000b
 
#define PS3AV_CMD_VIDEO_VID_1080P_50HZ   0x000c
 
#define PS3AV_CMD_VIDEO_VID_WXGA   0x000d
 
#define PS3AV_CMD_VIDEO_VID_SXGA   0x000e
 
#define PS3AV_CMD_VIDEO_VID_WUXGA   0x000f
 
#define PS3AV_CMD_VIDEO_VID_480I_A   0x0010
 
#define PS3AV_CMD_VIDEO_FORMAT_BLACK   0x0000
 
#define PS3AV_CMD_VIDEO_FORMAT_ARGB_8BIT   0x0007
 
#define PS3AV_CMD_VIDEO_ORDER_RGB   0x0000
 
#define PS3AV_CMD_VIDEO_ORDER_BGR   0x0001
 
#define PS3AV_CMD_VIDEO_FMT_X8R8G8B8   0x0000
 
#define PS3AV_CMD_VIDEO_OUT_FORMAT_RGB_12BIT   0x0000
 
#define PS3AV_CMD_VIDEO_CL_CNV_ENABLE_LUT   0x0000
 
#define PS3AV_CMD_VIDEO_CL_CNV_DISABLE_LUT   0x0010
 
#define PS3AV_CMD_VIDEO_SYNC_VSYNC   0x0001
 
#define PS3AV_CMD_VIDEO_SYNC_CSYNC   0x0004
 
#define PS3AV_CMD_VIDEO_SYNC_HSYNC   0x0010
 
#define PS3AV_CMD_AUDIO_NUM_OF_CH_2   0x0000
 
#define PS3AV_CMD_AUDIO_NUM_OF_CH_3   0x0001
 
#define PS3AV_CMD_AUDIO_NUM_OF_CH_4   0x0002
 
#define PS3AV_CMD_AUDIO_NUM_OF_CH_5   0x0003
 
#define PS3AV_CMD_AUDIO_NUM_OF_CH_6   0x0004
 
#define PS3AV_CMD_AUDIO_NUM_OF_CH_7   0x0005
 
#define PS3AV_CMD_AUDIO_NUM_OF_CH_8   0x0006
 
#define PS3AV_CMD_AUDIO_FS_32K   0x0001
 
#define PS3AV_CMD_AUDIO_FS_44K   0x0002
 
#define PS3AV_CMD_AUDIO_FS_48K   0x0003
 
#define PS3AV_CMD_AUDIO_FS_88K   0x0004
 
#define PS3AV_CMD_AUDIO_FS_96K   0x0005
 
#define PS3AV_CMD_AUDIO_FS_176K   0x0006
 
#define PS3AV_CMD_AUDIO_FS_192K   0x0007
 
#define PS3AV_CMD_AUDIO_WORD_BITS_16   0x0001
 
#define PS3AV_CMD_AUDIO_WORD_BITS_20   0x0002
 
#define PS3AV_CMD_AUDIO_WORD_BITS_24   0x0003
 
#define PS3AV_CMD_AUDIO_FORMAT_PCM   0x0001
 
#define PS3AV_CMD_AUDIO_FORMAT_BITSTREAM   0x00ff
 
#define PS3AV_CMD_AUDIO_SOURCE_SERIAL   0x0000
 
#define PS3AV_CMD_AUDIO_SOURCE_SPDIF   0x0001
 
#define PS3AV_CMD_AUDIO_SWAP_0   0x0000
 
#define PS3AV_CMD_AUDIO_SWAP_1   0x0000
 
#define PS3AV_CMD_AUDIO_MAP_OUTPUT_0   0x0000
 
#define PS3AV_CMD_AUDIO_MAP_OUTPUT_1   0x0001
 
#define PS3AV_CMD_AUDIO_MAP_OUTPUT_2   0x0002
 
#define PS3AV_CMD_AUDIO_MAP_OUTPUT_3   0x0003
 
#define PS3AV_CMD_AUDIO_LAYOUT_2CH   0x0000
 
#define PS3AV_CMD_AUDIO_LAYOUT_6CH   0x000b /* LREClr */
 
#define PS3AV_CMD_AUDIO_LAYOUT_8CH   0x001f /* LREClrXY */
 
#define PS3AV_CMD_AUDIO_DOWNMIX_PERMITTED   0x0000
 
#define PS3AV_CMD_AUDIO_DOWNMIX_PROHIBITED   0x0001
 
#define PS3AV_CMD_AUDIO_PORT_HDMI_0   ( 1 << 0 )
 
#define PS3AV_CMD_AUDIO_PORT_HDMI_1   ( 1 << 1 )
 
#define PS3AV_CMD_AUDIO_PORT_AVMULTI_0   ( 1 << 10 )
 
#define PS3AV_CMD_AUDIO_PORT_SPDIF_0   ( 1 << 20 )
 
#define PS3AV_CMD_AUDIO_PORT_SPDIF_1   ( 1 << 21 )
 
#define PS3AV_CMD_AUDIO_CTRL_ID_DAC_RESET   0x0000
 
#define PS3AV_CMD_AUDIO_CTRL_ID_DAC_DE_EMPHASIS   0x0001
 
#define PS3AV_CMD_AUDIO_CTRL_ID_AVCLK   0x0002
 
#define PS3AV_CMD_AUDIO_CTRL_RESET_NEGATE   0x0000
 
#define PS3AV_CMD_AUDIO_CTRL_RESET_ASSERT   0x0001
 
#define PS3AV_CMD_AUDIO_CTRL_DE_EMPHASIS_OFF   0x0000
 
#define PS3AV_CMD_AUDIO_CTRL_DE_EMPHASIS_ON   0x0001
 
#define PS3AV_CMD_AUDIO_CTRL_AVCLK_22   0x0000
 
#define PS3AV_CMD_AUDIO_CTRL_AVCLK_18   0x0001
 
#define PS3AV_CMD_AV_VID_480I   0x0000
 
#define PS3AV_CMD_AV_VID_480P   0x0001
 
#define PS3AV_CMD_AV_VID_720P_60HZ   0x0002
 
#define PS3AV_CMD_AV_VID_1080I_60HZ   0x0003
 
#define PS3AV_CMD_AV_VID_1080P_60HZ   0x0004
 
#define PS3AV_CMD_AV_VID_576I   0x0005
 
#define PS3AV_CMD_AV_VID_576P   0x0006
 
#define PS3AV_CMD_AV_VID_720P_50HZ   0x0007
 
#define PS3AV_CMD_AV_VID_1080I_50HZ   0x0008
 
#define PS3AV_CMD_AV_VID_1080P_50HZ   0x0009
 
#define PS3AV_CMD_AV_VID_WXGA   0x000a
 
#define PS3AV_CMD_AV_VID_SXGA   0x000b
 
#define PS3AV_CMD_AV_VID_WUXGA   0x000c
 
#define PS3AV_CMD_AV_CS_RGB_8   0x0000
 
#define PS3AV_CMD_AV_CS_YUV444_8   0x0001
 
#define PS3AV_CMD_AV_CS_YUV422_8   0x0002
 
#define PS3AV_CMD_AV_CS_XVYCC_8   0x0003
 
#define PS3AV_CMD_AV_CS_RGB_10   0x0004
 
#define PS3AV_CMD_AV_CS_YUV444_10   0x0005
 
#define PS3AV_CMD_AV_CS_YUV422_10   0x0006
 
#define PS3AV_CMD_AV_CS_XVYCC_10   0x0007
 
#define PS3AV_CMD_AV_CS_RGB_12   0x0008
 
#define PS3AV_CMD_AV_CS_YUV444_12   0x0009
 
#define PS3AV_CMD_AV_CS_YUV422_12   0x000a
 
#define PS3AV_CMD_AV_CS_XVYCC_12   0x000b
 
#define PS3AV_CMD_AV_CS_8   0x0000
 
#define PS3AV_CMD_AV_CS_10   0x0001
 
#define PS3AV_CMD_AV_CS_12   0x0002
 
#define PS3AV_CMD_AV_DITHER_OFF   0x0000
 
#define PS3AV_CMD_AV_DITHER_ON   0x0001
 
#define PS3AV_CMD_AV_DITHER_8BIT   0x0000
 
#define PS3AV_CMD_AV_DITHER_10BIT   0x0002
 
#define PS3AV_CMD_AV_DITHER_12BIT   0x0004
 
#define PS3AV_CMD_AV_SUPER_WHITE_OFF   0x0000
 
#define PS3AV_CMD_AV_SUPER_WHITE_ON   0x0001
 
#define PS3AV_CMD_AV_ASPECT_16_9   0x0000
 
#define PS3AV_CMD_AV_ASPECT_4_3   0x0001
 
#define PS3AV_CMD_VIDEO_CS_RGB   0x0001
 
#define PS3AV_CMD_VIDEO_CS_YUV422   0x0002
 
#define PS3AV_CMD_VIDEO_CS_YUV444   0x0003
 
#define PS3AV_RESBIT_720x480P   0x0003 /* 0x0001 | 0x0002 */
 
#define PS3AV_RESBIT_720x576P   0x0003 /* 0x0001 | 0x0002 */
 
#define PS3AV_RESBIT_1280x720P   0x0004
 
#define PS3AV_RESBIT_1920x1080I   0x0008
 
#define PS3AV_RESBIT_1920x1080P   0x4000
 
#define PS3AV_RES_MASK_60
 
#define PS3AV_RES_MASK_50
 
#define PS3AV_RESBIT_VGA   0x0001
 
#define PS3AV_RESBIT_WXGA   0x0002
 
#define PS3AV_RESBIT_SXGA   0x0004
 
#define PS3AV_RESBIT_WUXGA   0x0008
 
#define PS3AV_RES_MASK_VESA
 
#define PS3AV_MONITOR_TYPE_HDMI   1 /* HDMI */
 
#define PS3AV_MONITOR_TYPE_DVI   2 /* DVI */
 
#define PS3AV_MODE_MASK   0x000F
 
#define PS3AV_MODE_HDCP_OFF   0x1000 /* Retail PS3 product doesn't support this */
 
#define PS3AV_MODE_DITHER   0x0800
 
#define PS3AV_MODE_COLOR   0x0400
 
#define PS3AV_MODE_WHITE   0x0200
 
#define PS3AV_MODE_FULL   0x0080
 
#define PS3AV_MODE_DVI   0x0040
 
#define PS3AV_MODE_RGB   0x0020
 
#define PS3AV_DEFAULT_HDMI_MODE_ID_REG_60   PS3AV_MODE_480P
 
#define PS3AV_DEFAULT_AVMULTI_MODE_ID_REG_60   PS3AV_MODE_480I
 
#define PS3AV_DEFAULT_HDMI_MODE_ID_REG_50   PS3AV_MODE_576P
 
#define PS3AV_DEFAULT_AVMULTI_MODE_ID_REG_50   PS3AV_MODE_576I
 
#define PS3AV_REGION_60   0x01
 
#define PS3AV_REGION_50   0x02
 
#define PS3AV_REGION_RGB   0x10
 
#define get_status(buf)   (((__u32 *)buf)[2])
 
#define PS3AV_HDR_SIZE   4 /* version + size */
 
#define PS3AV_PKT_AVB_PARAM_MAX_BUF_SIZE
 
#define PS3AV_STATUS_SUCCESS   0x0000 /* success */
 
#define PS3AV_STATUS_RECEIVE_VUART_ERROR   0x0001 /* receive vuart error */
 
#define PS3AV_STATUS_SYSCON_COMMUNICATE_FAIL   0x0002 /* syscon communication error */
 
#define PS3AV_STATUS_INVALID_COMMAND   0x0003 /* obsolete invalid CID */
 
#define PS3AV_STATUS_INVALID_PORT   0x0004 /* invalid port number */
 
#define PS3AV_STATUS_INVALID_VID   0x0005 /* invalid video format */
 
#define PS3AV_STATUS_INVALID_COLOR_SPACE   0x0006 /* invalid video colose space */
 
#define PS3AV_STATUS_INVALID_FS   0x0007 /* invalid audio sampling freq */
 
#define PS3AV_STATUS_INVALID_AUDIO_CH   0x0008 /* invalid audio channel number */
 
#define PS3AV_STATUS_UNSUPPORTED_VERSION   0x0009 /* version mismatch */
 
#define PS3AV_STATUS_INVALID_SAMPLE_SIZE   0x000a /* invalid audio sample bit size */
 
#define PS3AV_STATUS_FAILURE   0x000b /* other failures */
 
#define PS3AV_STATUS_UNSUPPORTED_COMMAND   0x000c /* unsupported cid */
 
#define PS3AV_STATUS_BUFFER_OVERFLOW   0x000d /* write buffer overflow */
 
#define PS3AV_STATUS_INVALID_VIDEO_PARAM   0x000e /* invalid video param */
 
#define PS3AV_STATUS_NO_SEL   0x000f /* not exist selector */
 
#define PS3AV_STATUS_INVALID_AV_PARAM   0x0010 /* invalid backend param */
 
#define PS3AV_STATUS_INVALID_AUDIO_PARAM   0x0011 /* invalid audio param */
 
#define PS3AV_STATUS_UNSUPPORTED_HDMI_MODE   0x0012 /* unsupported hdmi mode */
 
#define PS3AV_STATUS_NO_SYNC_HEAD   0x0013 /* sync head failed */
 

Enumerations

enum  ps3av_mode_num {
  PS3AV_MODE_AUTO = 0, PS3AV_MODE_480I = 1, PS3AV_MODE_480P = 2, PS3AV_MODE_720P60 = 3,
  PS3AV_MODE_1080I60 = 4, PS3AV_MODE_1080P60 = 5, PS3AV_MODE_576I = 6, PS3AV_MODE_576P = 7,
  PS3AV_MODE_720P50 = 8, PS3AV_MODE_1080I50 = 9, PS3AV_MODE_1080P50 = 10, PS3AV_MODE_WXGA = 11,
  PS3AV_MODE_SXGA = 12, PS3AV_MODE_WUXGA = 13
}
 

Functions

struct ps3av_info_monitor __attribute__ ((packed))
 
void ps3av_set_hdr (u32, u16, struct ps3av_send_hdr *)
 
int ps3av_do_pkt (u32, u16, size_t, struct ps3av_send_hdr *)
 
int ps3av_cmd_init (void)
 
int ps3av_cmd_fin (void)
 
int ps3av_cmd_av_video_mute (int, u32 *, u32)
 
int ps3av_cmd_av_video_disable_sig (u32)
 
int ps3av_cmd_av_tv_mute (u32, u32)
 
int ps3av_cmd_enable_event (void)
 
int ps3av_cmd_av_hdmi_mode (u8)
 
u32 ps3av_cmd_set_av_video_cs (void *, u32, int, int, int, u32)
 
u32 ps3av_cmd_set_video_mode (void *, u32, int, int, u32)
 
int ps3av_cmd_video_format_black (u32, u32, u32)
 
int ps3av_cmd_av_audio_mute (int, u32 *, u32)
 
u32 ps3av_cmd_set_av_audio_param (void *, u32, const struct ps3av_pkt_audio_mode *, u32)
 
void ps3av_cmd_set_audio_mode (struct ps3av_pkt_audio_mode *, u32, u32, u32, u32, u32, u32)
 
int ps3av_cmd_audio_mode (struct ps3av_pkt_audio_mode *)
 
int ps3av_cmd_audio_mute (int, u32 *, u32)
 
int ps3av_cmd_audio_active (int, u32)
 
int ps3av_cmd_avb_param (struct ps3av_pkt_avb_param *, u32)
 
int ps3av_cmd_av_get_hw_conf (struct ps3av_pkt_av_get_hw_conf *)
 
int ps3av_cmd_video_get_monitor_info (struct ps3av_pkt_av_get_monitor_info *, u32)
 
int ps3av_set_video_mode (int)
 
int ps3av_set_audio_mode (u32, u32, u32, u32, u32)
 
int ps3av_get_auto_mode (void)
 
int ps3av_get_mode (void)
 
int ps3av_video_mode2res (u32, u32 *, u32 *)
 
int ps3av_video_mute (int)
 
int ps3av_audio_mute (int)
 
int ps3av_audio_mute_analog (int)
 
int ps3av_dev_open (void)
 
int ps3av_dev_close (void)
 

Variables

u8 avport
 
u8 monitor_id [10]
 
u8 monitor_type
 
u8 monitor_name [16]
 
struct ps3av_info_resolution res_60
 
struct ps3av_info_resolution res_50
 
struct ps3av_info_resolution res_other
 
struct ps3av_info_resolution res_vesa
 
struct ps3av_info_cs cs
 
struct ps3av_info_color color
 
u8 supported_ai
 
u8 speaker_info
 
u8 num_of_audio_block
 
struct ps3av_info_audio audio [0]
 
u8 reserved [169]
 
struct
ps3av_pkt_av_get_monitor_info 
__attribute__
 
u8 ps3av_mode_cs_info []
 

Macro Definition Documentation

#define get_status (   buf)    (((__u32 *)buf)[2])

Definition at line 351 of file ps3av.h.

#define PS3AV_AV_PORT_MAX   (PS3AV_HDMI_MAX + PS3AV_AVMULTI_MAX)

Definition at line 67 of file ps3av.h.

#define PS3AV_AVB_NUM_AUDIO   0 /* not supported */

Definition at line 73 of file ps3av.h.

#define PS3AV_AVB_NUM_AV_AUDIO   PS3AV_HDMI_MAX

Definition at line 75 of file ps3av.h.

#define PS3AV_AVB_NUM_AV_VIDEO   PS3AV_AV_PORT_MAX

Definition at line 74 of file ps3av.h.

#define PS3AV_AVB_NUM_VIDEO   PS3AV_HEAD_MAX

Definition at line 72 of file ps3av.h.

#define PS3AV_AVMULTI_MAX   1 /* AVMULTI_0 */

Definition at line 66 of file ps3av.h.

#define PS3AV_CID_AUDIO_ACTIVE   0x02000004

Definition at line 50 of file ps3av.h.

#define PS3AV_CID_AUDIO_CTRL   0x02000007

Definition at line 53 of file ps3av.h.

#define PS3AV_CID_AUDIO_INACTIVE   0x02000005

Definition at line 51 of file ps3av.h.

#define PS3AV_CID_AUDIO_INIT   0x02000001

Definition at line 47 of file ps3av.h.

#define PS3AV_CID_AUDIO_MODE   0x02000002

Definition at line 48 of file ps3av.h.

#define PS3AV_CID_AUDIO_MUTE   0x02000003

Definition at line 49 of file ps3av.h.

#define PS3AV_CID_AUDIO_SPDIF_BIT   0x02000006

Definition at line 52 of file ps3av.h.

#define PS3AV_CID_AV_AUDIO_MUTE   0x00020002

Definition at line 39 of file ps3av.h.

#define PS3AV_CID_AV_AUDIO_PARAM   0x00020001

Definition at line 38 of file ps3av.h.

#define PS3AV_CID_AV_DISABLE_EVENT   0x00000007

Definition at line 32 of file ps3av.h.

#define PS3AV_CID_AV_ENABLE_EVENT   0x00000006

Definition at line 31 of file ps3av.h.

#define PS3AV_CID_AV_FIN   0x00000002

Definition at line 28 of file ps3av.h.

#define PS3AV_CID_AV_GET_HW_CONF   0x00000003

Definition at line 29 of file ps3av.h.

#define PS3AV_CID_AV_GET_MONITOR_INFO   0x00000004

Definition at line 30 of file ps3av.h.

#define PS3AV_CID_AV_HDMI_MODE   0x00040001

Definition at line 40 of file ps3av.h.

#define PS3AV_CID_AV_INIT   0x00000001

Definition at line 27 of file ps3av.h.

#define PS3AV_CID_AV_TV_MUTE   0x0000000a

Definition at line 33 of file ps3av.h.

#define PS3AV_CID_AV_VIDEO_CS   0x00010001

Definition at line 35 of file ps3av.h.

#define PS3AV_CID_AV_VIDEO_DISABLE_SIG   0x00010003

Definition at line 37 of file ps3av.h.

#define PS3AV_CID_AV_VIDEO_MUTE   0x00010002

Definition at line 36 of file ps3av.h.

#define PS3AV_CID_AVB_PARAM   0x04000001

Definition at line 62 of file ps3av.h.

#define PS3AV_CID_EVENT_HDCP_AUTH   0x10000005

Definition at line 59 of file ps3av.h.

#define PS3AV_CID_EVENT_HDCP_DONE   0x10000003

Definition at line 57 of file ps3av.h.

#define PS3AV_CID_EVENT_HDCP_ERROR   0x10000006

Definition at line 60 of file ps3av.h.

#define PS3AV_CID_EVENT_HDCP_FAIL   0x10000004

Definition at line 58 of file ps3av.h.

#define PS3AV_CID_EVENT_PLUGGED   0x10000002

Definition at line 56 of file ps3av.h.

#define PS3AV_CID_EVENT_UNPLUGGED   0x10000001

Definition at line 55 of file ps3av.h.

#define PS3AV_CID_VIDEO_FORMAT   0x01000004

Definition at line 44 of file ps3av.h.

#define PS3AV_CID_VIDEO_INIT   0x01000001

Definition at line 42 of file ps3av.h.

#define PS3AV_CID_VIDEO_MODE   0x01000002

Definition at line 43 of file ps3av.h.

#define PS3AV_CID_VIDEO_PITCH   0x01000005

Definition at line 45 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_AVCLK_18   0x0001

Definition at line 235 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_AVCLK_22   0x0000

Definition at line 234 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_DE_EMPHASIS_OFF   0x0000

Definition at line 231 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_DE_EMPHASIS_ON   0x0001

Definition at line 232 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_ID_AVCLK   0x0002

Definition at line 226 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_ID_DAC_DE_EMPHASIS   0x0001

Definition at line 225 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_ID_DAC_RESET   0x0000

Definition at line 224 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_RESET_ASSERT   0x0001

Definition at line 229 of file ps3av.h.

#define PS3AV_CMD_AUDIO_CTRL_RESET_NEGATE   0x0000

Definition at line 228 of file ps3av.h.

#define PS3AV_CMD_AUDIO_DOWNMIX_PERMITTED   0x0000

Definition at line 213 of file ps3av.h.

#define PS3AV_CMD_AUDIO_DOWNMIX_PROHIBITED   0x0001

Definition at line 214 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FORMAT_BITSTREAM   0x00ff

Definition at line 196 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FORMAT_PCM   0x0001

Definition at line 195 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FS_176K   0x0006

Definition at line 188 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FS_192K   0x0007

Definition at line 189 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FS_32K   0x0001

Definition at line 183 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FS_44K   0x0002

Definition at line 184 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FS_48K   0x0003

Definition at line 185 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FS_88K   0x0004

Definition at line 186 of file ps3av.h.

#define PS3AV_CMD_AUDIO_FS_96K   0x0005

Definition at line 187 of file ps3av.h.

#define PS3AV_CMD_AUDIO_LAYOUT_2CH   0x0000

Definition at line 209 of file ps3av.h.

#define PS3AV_CMD_AUDIO_LAYOUT_6CH   0x000b /* LREClr */

Definition at line 210 of file ps3av.h.

#define PS3AV_CMD_AUDIO_LAYOUT_8CH   0x001f /* LREClrXY */

Definition at line 211 of file ps3av.h.

#define PS3AV_CMD_AUDIO_MAP_OUTPUT_0   0x0000

Definition at line 204 of file ps3av.h.

#define PS3AV_CMD_AUDIO_MAP_OUTPUT_1   0x0001

Definition at line 205 of file ps3av.h.

#define PS3AV_CMD_AUDIO_MAP_OUTPUT_2   0x0002

Definition at line 206 of file ps3av.h.

#define PS3AV_CMD_AUDIO_MAP_OUTPUT_3   0x0003

Definition at line 207 of file ps3av.h.

#define PS3AV_CMD_AUDIO_NUM_OF_CH_2   0x0000

Definition at line 175 of file ps3av.h.

#define PS3AV_CMD_AUDIO_NUM_OF_CH_3   0x0001

Definition at line 176 of file ps3av.h.

#define PS3AV_CMD_AUDIO_NUM_OF_CH_4   0x0002

Definition at line 177 of file ps3av.h.

#define PS3AV_CMD_AUDIO_NUM_OF_CH_5   0x0003

Definition at line 178 of file ps3av.h.

#define PS3AV_CMD_AUDIO_NUM_OF_CH_6   0x0004

Definition at line 179 of file ps3av.h.

#define PS3AV_CMD_AUDIO_NUM_OF_CH_7   0x0005

Definition at line 180 of file ps3av.h.

#define PS3AV_CMD_AUDIO_NUM_OF_CH_8   0x0006

Definition at line 181 of file ps3av.h.

#define PS3AV_CMD_AUDIO_PORT_AVMULTI_0   ( 1 << 10 )

Definition at line 219 of file ps3av.h.

#define PS3AV_CMD_AUDIO_PORT_HDMI_0   ( 1 << 0 )

Definition at line 217 of file ps3av.h.

#define PS3AV_CMD_AUDIO_PORT_HDMI_1   ( 1 << 1 )

Definition at line 218 of file ps3av.h.

#define PS3AV_CMD_AUDIO_PORT_SPDIF_0   ( 1 << 20 )

Definition at line 220 of file ps3av.h.

#define PS3AV_CMD_AUDIO_PORT_SPDIF_1   ( 1 << 21 )

Definition at line 221 of file ps3av.h.

#define PS3AV_CMD_AUDIO_SOURCE_SERIAL   0x0000

Definition at line 198 of file ps3av.h.

#define PS3AV_CMD_AUDIO_SOURCE_SPDIF   0x0001

Definition at line 199 of file ps3av.h.

#define PS3AV_CMD_AUDIO_SWAP_0   0x0000

Definition at line 201 of file ps3av.h.

#define PS3AV_CMD_AUDIO_SWAP_1   0x0000

Definition at line 202 of file ps3av.h.

#define PS3AV_CMD_AUDIO_WORD_BITS_16   0x0001

Definition at line 191 of file ps3av.h.

#define PS3AV_CMD_AUDIO_WORD_BITS_20   0x0002

Definition at line 192 of file ps3av.h.

#define PS3AV_CMD_AUDIO_WORD_BITS_24   0x0003

Definition at line 193 of file ps3av.h.

#define PS3AV_CMD_AV_ASPECT_16_9   0x0000

Definition at line 279 of file ps3av.h.

#define PS3AV_CMD_AV_ASPECT_4_3   0x0001

Definition at line 280 of file ps3av.h.

#define PS3AV_CMD_AV_CS_10   0x0001

Definition at line 267 of file ps3av.h.

#define PS3AV_CMD_AV_CS_12   0x0002

Definition at line 268 of file ps3av.h.

#define PS3AV_CMD_AV_CS_8   0x0000

Definition at line 266 of file ps3av.h.

#define PS3AV_CMD_AV_CS_RGB_10   0x0004

Definition at line 258 of file ps3av.h.

#define PS3AV_CMD_AV_CS_RGB_12   0x0008

Definition at line 262 of file ps3av.h.

#define PS3AV_CMD_AV_CS_RGB_8   0x0000

Definition at line 254 of file ps3av.h.

#define PS3AV_CMD_AV_CS_XVYCC_10   0x0007

Definition at line 261 of file ps3av.h.

#define PS3AV_CMD_AV_CS_XVYCC_12   0x000b

Definition at line 265 of file ps3av.h.

#define PS3AV_CMD_AV_CS_XVYCC_8   0x0003

Definition at line 257 of file ps3av.h.

#define PS3AV_CMD_AV_CS_YUV422_10   0x0006

Definition at line 260 of file ps3av.h.

#define PS3AV_CMD_AV_CS_YUV422_12   0x000a

Definition at line 264 of file ps3av.h.

#define PS3AV_CMD_AV_CS_YUV422_8   0x0002

Definition at line 256 of file ps3av.h.

#define PS3AV_CMD_AV_CS_YUV444_10   0x0005

Definition at line 259 of file ps3av.h.

#define PS3AV_CMD_AV_CS_YUV444_12   0x0009

Definition at line 263 of file ps3av.h.

#define PS3AV_CMD_AV_CS_YUV444_8   0x0001

Definition at line 255 of file ps3av.h.

#define PS3AV_CMD_AV_DITHER_10BIT   0x0002

Definition at line 273 of file ps3av.h.

#define PS3AV_CMD_AV_DITHER_12BIT   0x0004

Definition at line 274 of file ps3av.h.

#define PS3AV_CMD_AV_DITHER_8BIT   0x0000

Definition at line 272 of file ps3av.h.

#define PS3AV_CMD_AV_DITHER_OFF   0x0000

Definition at line 270 of file ps3av.h.

#define PS3AV_CMD_AV_DITHER_ON   0x0001

Definition at line 271 of file ps3av.h.

#define PS3AV_CMD_AV_HDMI_DVI   0x40

Definition at line 119 of file ps3av.h.

#define PS3AV_CMD_AV_HDMI_EDID_PASS   0x80

Definition at line 118 of file ps3av.h.

#define PS3AV_CMD_AV_HDMI_HDCP_OFF   0x01

Definition at line 117 of file ps3av.h.

#define PS3AV_CMD_AV_HDMI_MODE_NORMAL   0xff

Definition at line 116 of file ps3av.h.

#define PS3AV_CMD_AV_INPUTLEN_16   0x02

Definition at line 104 of file ps3av.h.

#define PS3AV_CMD_AV_INPUTLEN_20   0x0a

Definition at line 105 of file ps3av.h.

#define PS3AV_CMD_AV_INPUTLEN_24   0x0b

Definition at line 106 of file ps3av.h.

#define PS3AV_CMD_AV_LAYOUT_176   (1 << 5)

Definition at line 113 of file ps3av.h.

#define PS3AV_CMD_AV_LAYOUT_192   (1 << 6)

Definition at line 114 of file ps3av.h.

#define PS3AV_CMD_AV_LAYOUT_32   (1 << 0)

Definition at line 108 of file ps3av.h.

#define PS3AV_CMD_AV_LAYOUT_44   (1 << 1)

Definition at line 109 of file ps3av.h.

#define PS3AV_CMD_AV_LAYOUT_48   (1 << 2)

Definition at line 110 of file ps3av.h.

#define PS3AV_CMD_AV_LAYOUT_88   (1 << 3)

Definition at line 111 of file ps3av.h.

#define PS3AV_CMD_AV_LAYOUT_96   (1 << 4)

Definition at line 112 of file ps3av.h.

#define PS3AV_CMD_AV_MCLK_128   0x0000

Definition at line 100 of file ps3av.h.

#define PS3AV_CMD_AV_MCLK_256   0x0001

Definition at line 101 of file ps3av.h.

#define PS3AV_CMD_AV_MCLK_512   0x0003

Definition at line 102 of file ps3av.h.

#define PS3AV_CMD_AV_SUPER_WHITE_OFF   0x0000

Definition at line 276 of file ps3av.h.

#define PS3AV_CMD_AV_SUPER_WHITE_ON   0x0001

Definition at line 277 of file ps3av.h.

#define PS3AV_CMD_AV_VID_1080I_50HZ   0x0008

Definition at line 247 of file ps3av.h.

#define PS3AV_CMD_AV_VID_1080I_60HZ   0x0003

Definition at line 242 of file ps3av.h.

#define PS3AV_CMD_AV_VID_1080P_50HZ   0x0009

Definition at line 248 of file ps3av.h.

#define PS3AV_CMD_AV_VID_1080P_60HZ   0x0004

Definition at line 243 of file ps3av.h.

#define PS3AV_CMD_AV_VID_480I   0x0000

Definition at line 239 of file ps3av.h.

#define PS3AV_CMD_AV_VID_480P   0x0001

Definition at line 240 of file ps3av.h.

#define PS3AV_CMD_AV_VID_576I   0x0005

Definition at line 244 of file ps3av.h.

#define PS3AV_CMD_AV_VID_576P   0x0006

Definition at line 245 of file ps3av.h.

#define PS3AV_CMD_AV_VID_720P_50HZ   0x0007

Definition at line 246 of file ps3av.h.

#define PS3AV_CMD_AV_VID_720P_60HZ   0x0002

Definition at line 241 of file ps3av.h.

#define PS3AV_CMD_AV_VID_SXGA   0x000b

Definition at line 250 of file ps3av.h.

#define PS3AV_CMD_AV_VID_WUXGA   0x000c

Definition at line 251 of file ps3av.h.

#define PS3AV_CMD_AV_VID_WXGA   0x000a

Definition at line 249 of file ps3av.h.

#define PS3AV_CMD_AVPORT_AVMULTI_0   0x0010

Definition at line 94 of file ps3av.h.

#define PS3AV_CMD_AVPORT_HDMI_0   0x0000

Definition at line 92 of file ps3av.h.

#define PS3AV_CMD_AVPORT_HDMI_1   0x0001

Definition at line 93 of file ps3av.h.

#define PS3AV_CMD_AVPORT_SPDIF_0   0x0020

Definition at line 95 of file ps3av.h.

#define PS3AV_CMD_AVPORT_SPDIF_1   0x0021

Definition at line 96 of file ps3av.h.

#define PS3AV_CMD_EVENT_BIT_HDCP_DONE   (1 << 2)

Definition at line 82 of file ps3av.h.

#define PS3AV_CMD_EVENT_BIT_HDCP_FAIL   (1 << 3)

Definition at line 83 of file ps3av.h.

#define PS3AV_CMD_EVENT_BIT_HDCP_REAUTH   (1 << 4)

Definition at line 84 of file ps3av.h.

#define PS3AV_CMD_EVENT_BIT_HDCP_TOPOLOGY   (1 << 5)

Definition at line 85 of file ps3av.h.

#define PS3AV_CMD_EVENT_BIT_PLUGGED   (1 << 1)

Definition at line 81 of file ps3av.h.

#define PS3AV_CMD_EVENT_BIT_UNPLUGGED   (1 << 0)

Definition at line 80 of file ps3av.h.

#define PS3AV_CMD_MUTE_OFF   0x0000

Definition at line 89 of file ps3av.h.

#define PS3AV_CMD_MUTE_ON   0x0001

Definition at line 90 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CL_CNV_DISABLE_LUT   0x0010

Definition at line 167 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CL_CNV_ENABLE_LUT   0x0000

Definition at line 166 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_NONE   0x0000

Definition at line 126 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_RGB   0x0001

Definition at line 282 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_RGB_10   0x0005

Definition at line 131 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_RGB_12   0x0009

Definition at line 135 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_RGB_8   0x0001

Definition at line 127 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_XVYCC_10   0x0008

Definition at line 134 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_XVYCC_12   0x000c

Definition at line 138 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_XVYCC_8   0x0004

Definition at line 130 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV422   0x0002

Definition at line 283 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV422_10   0x0007

Definition at line 133 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV422_12   0x000b

Definition at line 137 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV422_8   0x0003

Definition at line 129 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV444   0x0003

Definition at line 284 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV444_10   0x0006

Definition at line 132 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV444_12   0x000a

Definition at line 136 of file ps3av.h.

#define PS3AV_CMD_VIDEO_CS_YUV444_8   0x0002

Definition at line 128 of file ps3av.h.

#define PS3AV_CMD_VIDEO_FMT_X8R8G8B8   0x0000

Definition at line 162 of file ps3av.h.

#define PS3AV_CMD_VIDEO_FORMAT_ARGB_8BIT   0x0007

Definition at line 157 of file ps3av.h.

#define PS3AV_CMD_VIDEO_FORMAT_BLACK   0x0000

Definition at line 156 of file ps3av.h.

#define PS3AV_CMD_VIDEO_HEAD_A   0x0000

Definition at line 123 of file ps3av.h.

#define PS3AV_CMD_VIDEO_HEAD_B   0x0001

Definition at line 124 of file ps3av.h.

#define PS3AV_CMD_VIDEO_ORDER_BGR   0x0001

Definition at line 160 of file ps3av.h.

#define PS3AV_CMD_VIDEO_ORDER_RGB   0x0000

Definition at line 159 of file ps3av.h.

#define PS3AV_CMD_VIDEO_OUT_FORMAT_RGB_12BIT   0x0000

Definition at line 164 of file ps3av.h.

#define PS3AV_CMD_VIDEO_SYNC_CSYNC   0x0004

Definition at line 170 of file ps3av.h.

#define PS3AV_CMD_VIDEO_SYNC_HSYNC   0x0010

Definition at line 171 of file ps3av.h.

#define PS3AV_CMD_VIDEO_SYNC_VSYNC   0x0001

Definition at line 169 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_1080I_50HZ   0x0008

Definition at line 146 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_1080I_60HZ   0x0007

Definition at line 145 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_1080P_50HZ   0x000c

Definition at line 150 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_1080P_60HZ   0x000b

Definition at line 149 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_480I   0x0001

Definition at line 141 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_480I_A   0x0010

Definition at line 154 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_480P   0x0005

Definition at line 143 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_576I   0x0003

Definition at line 142 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_576P   0x0006

Definition at line 144 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_720P_50HZ   0x000a

Definition at line 148 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_720P_60HZ   0x0009

Definition at line 147 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_NONE   0x0000

Definition at line 140 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_SXGA   0x000e

Definition at line 152 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_WUXGA   0x000f

Definition at line 153 of file ps3av.h.

#define PS3AV_CMD_VIDEO_VID_WXGA   0x000d

Definition at line 151 of file ps3av.h.

#define PS3AV_DEFAULT_AVMULTI_MODE_ID_REG_50   PS3AV_MODE_576I

Definition at line 345 of file ps3av.h.

#define PS3AV_DEFAULT_AVMULTI_MODE_ID_REG_60   PS3AV_MODE_480I

Definition at line 343 of file ps3av.h.

#define PS3AV_DEFAULT_HDMI_MODE_ID_REG_50   PS3AV_MODE_576P

Definition at line 344 of file ps3av.h.

#define PS3AV_DEFAULT_HDMI_MODE_ID_REG_60   PS3AV_MODE_480P

Definition at line 342 of file ps3av.h.

#define PS3AV_HDMI_MAX   2 /* HDMI_0 HDMI_1 */

Definition at line 65 of file ps3av.h.

#define PS3AV_HDR_SIZE   4 /* version + size */

Definition at line 352 of file ps3av.h.

#define PS3AV_HEAD_MAX   2 /* HEAD_A HEAD_B */

Definition at line 69 of file ps3av.h.

#define PS3AV_MODE_COLOR   0x0400

Definition at line 335 of file ps3av.h.

#define PS3AV_MODE_DITHER   0x0800

Definition at line 334 of file ps3av.h.

#define PS3AV_MODE_DVI   0x0040

Definition at line 338 of file ps3av.h.

#define PS3AV_MODE_FULL   0x0080

Definition at line 337 of file ps3av.h.

#define PS3AV_MODE_HDCP_OFF   0x1000 /* Retail PS3 product doesn't support this */

Definition at line 333 of file ps3av.h.

#define PS3AV_MODE_MASK   0x000F

Definition at line 332 of file ps3av.h.

#define PS3AV_MODE_RGB   0x0020

Definition at line 339 of file ps3av.h.

#define PS3AV_MODE_WHITE   0x0200

Definition at line 336 of file ps3av.h.

#define PS3AV_MONITOR_TYPE_DVI   2 /* DVI */

Definition at line 311 of file ps3av.h.

#define PS3AV_MONITOR_TYPE_HDMI   1 /* HDMI */

Definition at line 310 of file ps3av.h.

#define PS3AV_MUTE_PORT_MAX   1 /* num of ports in mute pkt */

Definition at line 77 of file ps3av.h.

#define PS3AV_OPT_PORT_MAX   1 /* SPDIF0 */

Definition at line 68 of file ps3av.h.

#define PS3AV_PKT_AVB_PARAM_MAX_BUF_SIZE
Value:

Definition at line 658 of file ps3av.h.

#define PS3AV_REGION_50   0x02

Definition at line 348 of file ps3av.h.

#define PS3AV_REGION_60   0x01

Definition at line 347 of file ps3av.h.

#define PS3AV_REGION_RGB   0x10

Definition at line 349 of file ps3av.h.

#define PS3AV_RES_MASK_50
#define PS3AV_RES_MASK_60
#define PS3AV_RES_MASK_VESA
Value:
PS3AV_RESBIT_SXGA |\
PS3AV_RESBIT_WUXGA)

Definition at line 306 of file ps3av.h.

#define PS3AV_RESBIT_1280x720P   0x0004

Definition at line 289 of file ps3av.h.

#define PS3AV_RESBIT_1920x1080I   0x0008

Definition at line 290 of file ps3av.h.

#define PS3AV_RESBIT_1920x1080P   0x4000

Definition at line 291 of file ps3av.h.

#define PS3AV_RESBIT_720x480P   0x0003 /* 0x0001 | 0x0002 */

Definition at line 287 of file ps3av.h.

#define PS3AV_RESBIT_720x576P   0x0003 /* 0x0001 | 0x0002 */

Definition at line 288 of file ps3av.h.

#define PS3AV_RESBIT_SXGA   0x0004

Definition at line 304 of file ps3av.h.

#define PS3AV_RESBIT_VGA   0x0001

Definition at line 302 of file ps3av.h.

#define PS3AV_RESBIT_WUXGA   0x0008

Definition at line 305 of file ps3av.h.

#define PS3AV_RESBIT_WXGA   0x0002

Definition at line 303 of file ps3av.h.

#define PS3AV_STATUS_BUFFER_OVERFLOW   0x000d /* write buffer overflow */

Definition at line 698 of file ps3av.h.

#define PS3AV_STATUS_FAILURE   0x000b /* other failures */

Definition at line 696 of file ps3av.h.

#define PS3AV_STATUS_INVALID_AUDIO_CH   0x0008 /* invalid audio channel number */

Definition at line 693 of file ps3av.h.

#define PS3AV_STATUS_INVALID_AUDIO_PARAM   0x0011 /* invalid audio param */

Definition at line 702 of file ps3av.h.

#define PS3AV_STATUS_INVALID_AV_PARAM   0x0010 /* invalid backend param */

Definition at line 701 of file ps3av.h.

#define PS3AV_STATUS_INVALID_COLOR_SPACE   0x0006 /* invalid video colose space */

Definition at line 691 of file ps3av.h.

#define PS3AV_STATUS_INVALID_COMMAND   0x0003 /* obsolete invalid CID */

Definition at line 688 of file ps3av.h.

#define PS3AV_STATUS_INVALID_FS   0x0007 /* invalid audio sampling freq */

Definition at line 692 of file ps3av.h.

#define PS3AV_STATUS_INVALID_PORT   0x0004 /* invalid port number */

Definition at line 689 of file ps3av.h.

#define PS3AV_STATUS_INVALID_SAMPLE_SIZE   0x000a /* invalid audio sample bit size */

Definition at line 695 of file ps3av.h.

#define PS3AV_STATUS_INVALID_VID   0x0005 /* invalid video format */

Definition at line 690 of file ps3av.h.

#define PS3AV_STATUS_INVALID_VIDEO_PARAM   0x000e /* invalid video param */

Definition at line 699 of file ps3av.h.

#define PS3AV_STATUS_NO_SEL   0x000f /* not exist selector */

Definition at line 700 of file ps3av.h.

#define PS3AV_STATUS_NO_SYNC_HEAD   0x0013 /* sync head failed */

Definition at line 704 of file ps3av.h.

#define PS3AV_STATUS_RECEIVE_VUART_ERROR   0x0001 /* receive vuart error */

Definition at line 686 of file ps3av.h.

#define PS3AV_STATUS_SUCCESS   0x0000 /* success */

command status

Definition at line 685 of file ps3av.h.

#define PS3AV_STATUS_SYSCON_COMMUNICATE_FAIL   0x0002 /* syscon communication error */

Definition at line 687 of file ps3av.h.

#define PS3AV_STATUS_UNSUPPORTED_COMMAND   0x000c /* unsupported cid */

Definition at line 697 of file ps3av.h.

#define PS3AV_STATUS_UNSUPPORTED_HDMI_MODE   0x0012 /* unsupported hdmi mode */

Definition at line 703 of file ps3av.h.

#define PS3AV_STATUS_UNSUPPORTED_VERSION   0x0009 /* version mismatch */

Definition at line 694 of file ps3av.h.

#define PS3AV_VERSION   0x205 /* version of ps3av command */

command for ioctl()

Definition at line 25 of file ps3av.h.

Enumeration Type Documentation

Enumerator:
PS3AV_MODE_AUTO 
PS3AV_MODE_480I 
PS3AV_MODE_480P 
PS3AV_MODE_720P60 
PS3AV_MODE_1080I60 
PS3AV_MODE_1080P60 
PS3AV_MODE_576I 
PS3AV_MODE_576P 
PS3AV_MODE_720P50 
PS3AV_MODE_1080I50 
PS3AV_MODE_1080P50 
PS3AV_MODE_WXGA 
PS3AV_MODE_SXGA 
PS3AV_MODE_WUXGA 

Definition at line 315 of file ps3av.h.

Function Documentation

Definition at line 171 of file esd_usb2.c.

Definition at line 928 of file ps3av.c.

int ps3av_audio_mute_analog ( int  )

Definition at line 913 of file ps3av.c.

int ps3av_cmd_audio_active ( int  ,
u32   
)

Definition at line 840 of file ps3av_cmd.c.

int ps3av_cmd_audio_mode ( struct ps3av_pkt_audio_mode )

Definition at line 795 of file ps3av_cmd.c.

int ps3av_cmd_audio_mute ( int  ,
u32 ,
u32   
)

Definition at line 811 of file ps3av_cmd.c.

int ps3av_cmd_av_audio_mute ( int  ,
u32 ,
u32   
)

Definition at line 448 of file ps3av_cmd.c.

int ps3av_cmd_av_get_hw_conf ( struct ps3av_pkt_av_get_hw_conf )

Definition at line 886 of file ps3av_cmd.c.

int ps3av_cmd_av_hdmi_mode ( u8  )

Definition at line 319 of file ps3av_cmd.c.

int ps3av_cmd_av_tv_mute ( u32  ,
u32   
)

Definition at line 276 of file ps3av_cmd.c.

int ps3av_cmd_av_video_disable_sig ( u32  )

Definition at line 253 of file ps3av_cmd.c.

int ps3av_cmd_av_video_mute ( int  ,
u32 ,
u32   
)

Definition at line 225 of file ps3av_cmd.c.

int ps3av_cmd_avb_param ( struct ps3av_pkt_avb_param ,
u32   
)

Definition at line 864 of file ps3av_cmd.c.

int ps3av_cmd_enable_event ( void  )

Definition at line 298 of file ps3av_cmd.c.

int ps3av_cmd_fin ( void  )

Definition at line 206 of file ps3av_cmd.c.

int ps3av_cmd_init ( void  )

Definition at line 155 of file ps3av_cmd.c.

void ps3av_cmd_set_audio_mode ( struct ps3av_pkt_audio_mode ,
u32  ,
u32  ,
u32  ,
u32  ,
u32  ,
u32   
)

Definition at line 678 of file ps3av_cmd.c.

u32 ps3av_cmd_set_av_audio_param ( void ,
u32  ,
const struct ps3av_pkt_audio_mode ,
u32   
)

Definition at line 635 of file ps3av_cmd.c.

u32 ps3av_cmd_set_av_video_cs ( void ,
u32  ,
int  ,
int  ,
int  ,
u32   
)

Definition at line 339 of file ps3av_cmd.c.

u32 ps3av_cmd_set_video_mode ( void ,
u32  ,
int  ,
int  ,
u32   
)

Definition at line 378 of file ps3av_cmd.c.

int ps3av_cmd_video_format_black ( u32  ,
u32  ,
u32   
)

Definition at line 421 of file ps3av_cmd.c.

int ps3av_cmd_video_get_monitor_info ( struct ps3av_pkt_av_get_monitor_info ,
u32   
)

Definition at line 904 of file ps3av_cmd.c.

int ps3av_dev_close ( void  )
int ps3av_dev_open ( void  )
int ps3av_do_pkt ( u32  ,
u16  ,
size_t  ,
struct ps3av_send_hdr  
)

Definition at line 300 of file ps3av.c.

int ps3av_get_auto_mode ( void  )

Definition at line 875 of file ps3av.c.

int ps3av_get_mode ( void  )

Definition at line 881 of file ps3av.c.

int ps3av_set_audio_mode ( u32  ,
u32  ,
u32  ,
u32  ,
u32   
)

Definition at line 419 of file ps3av.c.

void ps3av_set_hdr ( u32  ,
u16  ,
struct ps3av_send_hdr  
)

Definition at line 293 of file ps3av.c.

int ps3av_set_video_mode ( int  )

Definition at line 842 of file ps3av.c.

int ps3av_video_mode2res ( u32  ,
u32 ,
u32  
)

Definition at line 888 of file ps3av.c.

int ps3av_video_mute ( int  )

Definition at line 905 of file ps3av.c.

Variable Documentation

Definition at line 455 of file ps3av.h.

u8 avport

Definition at line 442 of file ps3av.h.

Definition at line 451 of file ps3av.h.

Definition at line 450 of file ps3av.h.

u8 monitor_id[10]

Definition at line 443 of file ps3av.h.

u8 monitor_name[16]

Definition at line 445 of file ps3av.h.

u8 monitor_type

Definition at line 444 of file ps3av.h.

u8 num_of_audio_block

Definition at line 454 of file ps3av.h.

u8 ps3av_mode_cs_info[]

Definition at line 664 of file ps3av_cmd.c.

Definition at line 447 of file ps3av.h.

Definition at line 446 of file ps3av.h.

Definition at line 448 of file ps3av.h.

Definition at line 449 of file ps3av.h.

u8 reserved[169]

Definition at line 456 of file ps3av.h.

u8 speaker_info

Definition at line 453 of file ps3av.h.

u8 supported_ai

Definition at line 452 of file ps3av.h.