/* Copyright (c) 2012, Broadcom Europe Ltd All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* * TV service command enumeration and parameter types. */ #ifndef _VC_TVSERVICE_DEFS_H_ #define _VC_TVSERVICE_DEFS_H_ #include "vcinclude/common.h" #include "interface/vchi/message_drivers/message.h" #include "vc_hdmi.h" #include "vc_sdtv.h" #define VC_TVSERVICE_VER 1 #define TVSERVICE_MSGFIFO_SIZE 1024 #define TVSERVICE_CLIENT_NAME MAKE_FOURCC("TVSV") #define TVSERVICE_NOTIFY_NAME MAKE_FOURCC("TVNT") #define TVSERVICE_MAX_CALLBACKS 5 //TV service commands typedef enum { VC_TV_GET_STATE = 0, VC_TV_HDMI_ON_PREFERRED, VC_TV_HDMI_ON_BEST, VC_TV_HDMI_ON_EXPLICIT, VC_TV_SDTV_ON, VC_TV_OFF, VC_TV_QUERY_SUPPORTED_MODES, VC_TV_QUERY_MODE_SUPPORT, VC_TV_QUERY_AUDIO_SUPPORT, VC_TV_ENABLE_COPY_PROTECT, VC_TV_DISABLE_COPY_PROTECT, VC_TV_SHOW_INFO, VC_TV_GET_AV_LATENCY, VC_TV_HDCP_SET_KEY, VC_TV_HDCP_SET_SRM, VC_TV_SET_SPD, VC_TV_SET_DISPLAY_OPTIONS, VC_TV_TEST_MODE_START, VC_TV_TEST_MODE_STOP, VC_TV_DDC_READ, VC_TV_SET_ATTACHED, VC_TV_SET_PROP, VC_TV_GET_PROP, VC_TV_GET_DISPLAY_STATE, VC_TV_QUERY_SUPPORTED_MODES_ACTUAL, VC_TV_GET_DEVICE_ID, VC_TV_GET_ATTACHED_DEVICES, //Add more commands here VC_TV_END_OF_LIST } VC_TV_CMD_CODE_T; // Define a bit in the command that sets whether command contains a display ID #define TVSERVICE_COMMAND_HAS_DISPLAY_ID (1 << 31) //Parameters for each command (padded to multiple of 16 bytes) //See vc_hdmi.h and vc_sdtv.h for details //GET_STATE //Parameters: none //Reply: state (flags of VC_HDMI_NOTIFY_T and VC_SDTV_NOTIFY_T) // current width // current height // current refresh rate // current scan mode typedef struct { uint32_t state; /**