linux/include/uapi/linux/cec.h

/* SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) */
/*
 * cec - HDMI Consumer Electronics Control public header
 *
 * Copyright 2016 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
 */

#ifndef _CEC_UAPI_H
#define _CEC_UAPI_H

#include <linux/types.h>
#include <linux/string.h>

#define CEC_MAX_MSG_SIZE

/**
 * struct cec_msg - CEC message structure.
 * @tx_ts:	Timestamp in nanoseconds using CLOCK_MONOTONIC. Set by the
 *		driver when the message transmission has finished.
 * @rx_ts:	Timestamp in nanoseconds using CLOCK_MONOTONIC. Set by the
 *		driver when the message was received.
 * @len:	Length in bytes of the message.
 * @timeout:	The timeout (in ms) that is used to timeout CEC_RECEIVE.
 *		Set to 0 if you want to wait forever. This timeout can also be
 *		used with CEC_TRANSMIT as the timeout for waiting for a reply.
 *		If 0, then it will use a 1 second timeout instead of waiting
 *		forever as is done with CEC_RECEIVE.
 * @sequence:	The framework assigns a sequence number to messages that are
 *		sent. This can be used to track replies to previously sent
 *		messages.
 * @flags:	Set to 0.
 * @msg:	The message payload.
 * @reply:	This field is ignored with CEC_RECEIVE and is only used by
 *		CEC_TRANSMIT. If non-zero, then wait for a reply with this
 *		opcode. Set to CEC_MSG_FEATURE_ABORT if you want to wait for
 *		a possible ABORT reply. If there was an error when sending the
 *		msg or FeatureAbort was returned, then reply is set to 0.
 *		If reply is non-zero upon return, then len/msg are set to
 *		the received message.
 *		If reply is zero upon return and status has the
 *		CEC_TX_STATUS_FEATURE_ABORT bit set, then len/msg are set to
 *		the received feature abort message.
 *		If reply is zero upon return and status has the
 *		CEC_TX_STATUS_MAX_RETRIES bit set, then no reply was seen at
 *		all. If reply is non-zero for CEC_TRANSMIT and the message is a
 *		broadcast, then -EINVAL is returned.
 *		if reply is non-zero, then timeout is set to 1000 (the required
 *		maximum response time).
 * @rx_status:	The message receive status bits. Set by the driver.
 * @tx_status:	The message transmit status bits. Set by the driver.
 * @tx_arb_lost_cnt: The number of 'Arbitration Lost' events. Set by the driver.
 * @tx_nack_cnt: The number of 'Not Acknowledged' events. Set by the driver.
 * @tx_low_drive_cnt: The number of 'Low Drive Detected' events. Set by the
 *		driver.
 * @tx_error_cnt: The number of 'Error' events. Set by the driver.
 */
struct cec_msg {};

/**
 * cec_msg_initiator - return the initiator's logical address.
 * @msg:	the message structure
 */
static inline __u8 cec_msg_initiator(const struct cec_msg *msg)
{}

/**
 * cec_msg_destination - return the destination's logical address.
 * @msg:	the message structure
 */
static inline __u8 cec_msg_destination(const struct cec_msg *msg)
{}

/**
 * cec_msg_opcode - return the opcode of the message, -1 for poll
 * @msg:	the message structure
 */
static inline int cec_msg_opcode(const struct cec_msg *msg)
{}

/**
 * cec_msg_is_broadcast - return true if this is a broadcast message.
 * @msg:	the message structure
 */
static inline int cec_msg_is_broadcast(const struct cec_msg *msg)
{}

/**
 * cec_msg_init - initialize the message structure.
 * @msg:	the message structure
 * @initiator:	the logical address of the initiator
 * @destination:the logical address of the destination (0xf for broadcast)
 *
 * The whole structure is zeroed, the len field is set to 1 (i.e. a poll
 * message) and the initiator and destination are filled in.
 */
static inline void cec_msg_init(struct cec_msg *msg,
				__u8 initiator, __u8 destination)
{}

/**
 * cec_msg_set_reply_to - fill in destination/initiator in a reply message.
 * @msg:	the message structure for the reply
 * @orig:	the original message structure
 *
 * Set the msg destination to the orig initiator and the msg initiator to the
 * orig destination. Note that msg and orig may be the same pointer, in which
 * case the change is done in place.
 *
 * It also zeroes the reply, timeout and flags fields.
 */
static inline void cec_msg_set_reply_to(struct cec_msg *msg,
					struct cec_msg *orig)
{}

/**
 * cec_msg_recv_is_tx_result - return true if this message contains the
 *			       result of an earlier non-blocking transmit
 * @msg:	the message structure from CEC_RECEIVE
 */
static inline int cec_msg_recv_is_tx_result(const struct cec_msg *msg)
{}

/**
 * cec_msg_recv_is_rx_result - return true if this message contains the
 *			       reply of an earlier non-blocking transmit
 * @msg:	the message structure from CEC_RECEIVE
 */
static inline int cec_msg_recv_is_rx_result(const struct cec_msg *msg)
{}

/* cec_msg flags field */
#define CEC_MSG_FL_REPLY_TO_FOLLOWERS
#define CEC_MSG_FL_RAW
#define CEC_MSG_FL_REPLY_VENDOR_ID

/* cec_msg tx/rx_status field */
#define CEC_TX_STATUS_OK
#define CEC_TX_STATUS_ARB_LOST
#define CEC_TX_STATUS_NACK
#define CEC_TX_STATUS_LOW_DRIVE
#define CEC_TX_STATUS_ERROR
#define CEC_TX_STATUS_MAX_RETRIES
#define CEC_TX_STATUS_ABORTED
#define CEC_TX_STATUS_TIMEOUT

#define CEC_RX_STATUS_OK
#define CEC_RX_STATUS_TIMEOUT
#define CEC_RX_STATUS_FEATURE_ABORT
#define CEC_RX_STATUS_ABORTED

static inline int cec_msg_status_is_ok(const struct cec_msg *msg)
{}

#define CEC_LOG_ADDR_INVALID
#define CEC_PHYS_ADDR_INVALID

/*
 * The maximum number of logical addresses one device can be assigned to.
 * The CEC 2.0 spec allows for only 2 logical addresses at the moment. The
 * Analog Devices CEC hardware supports 3. So let's go wild and go for 4.
 */
#define CEC_MAX_LOG_ADDRS

/* The logical addresses defined by CEC 2.0 */
#define CEC_LOG_ADDR_TV
#define CEC_LOG_ADDR_RECORD_1
#define CEC_LOG_ADDR_RECORD_2
#define CEC_LOG_ADDR_TUNER_1
#define CEC_LOG_ADDR_PLAYBACK_1
#define CEC_LOG_ADDR_AUDIOSYSTEM
#define CEC_LOG_ADDR_TUNER_2
#define CEC_LOG_ADDR_TUNER_3
#define CEC_LOG_ADDR_PLAYBACK_2
#define CEC_LOG_ADDR_RECORD_3
#define CEC_LOG_ADDR_TUNER_4
#define CEC_LOG_ADDR_PLAYBACK_3
#define CEC_LOG_ADDR_BACKUP_1
#define CEC_LOG_ADDR_BACKUP_2
#define CEC_LOG_ADDR_SPECIFIC
#define CEC_LOG_ADDR_UNREGISTERED
#define CEC_LOG_ADDR_BROADCAST

/* The logical address types that the CEC device wants to claim */
#define CEC_LOG_ADDR_TYPE_TV
#define CEC_LOG_ADDR_TYPE_RECORD
#define CEC_LOG_ADDR_TYPE_TUNER
#define CEC_LOG_ADDR_TYPE_PLAYBACK
#define CEC_LOG_ADDR_TYPE_AUDIOSYSTEM
#define CEC_LOG_ADDR_TYPE_SPECIFIC
#define CEC_LOG_ADDR_TYPE_UNREGISTERED
/*
 * Switches should use UNREGISTERED.
 * Processors should use SPECIFIC.
 */

#define CEC_LOG_ADDR_MASK_TV
#define CEC_LOG_ADDR_MASK_RECORD
#define CEC_LOG_ADDR_MASK_TUNER
#define CEC_LOG_ADDR_MASK_PLAYBACK
#define CEC_LOG_ADDR_MASK_AUDIOSYSTEM
#define CEC_LOG_ADDR_MASK_BACKUP
#define CEC_LOG_ADDR_MASK_SPECIFIC
#define CEC_LOG_ADDR_MASK_UNREGISTERED

static inline int cec_has_tv(__u16 log_addr_mask)
{}

static inline int cec_has_record(__u16 log_addr_mask)
{}

static inline int cec_has_tuner(__u16 log_addr_mask)
{}

static inline int cec_has_playback(__u16 log_addr_mask)
{}

static inline int cec_has_audiosystem(__u16 log_addr_mask)
{}

static inline int cec_has_backup(__u16 log_addr_mask)
{}

static inline int cec_has_specific(__u16 log_addr_mask)
{}

static inline int cec_is_unregistered(__u16 log_addr_mask)
{}

static inline int cec_is_unconfigured(__u16 log_addr_mask)
{}

/*
 * Use this if there is no vendor ID (CEC_G_VENDOR_ID) or if the vendor ID
 * should be disabled (CEC_S_VENDOR_ID)
 */
#define CEC_VENDOR_ID_NONE

/* The message handling modes */
/* Modes for initiator */
#define CEC_MODE_NO_INITIATOR
#define CEC_MODE_INITIATOR
#define CEC_MODE_EXCL_INITIATOR
#define CEC_MODE_INITIATOR_MSK

/* Modes for follower */
#define CEC_MODE_NO_FOLLOWER
#define CEC_MODE_FOLLOWER
#define CEC_MODE_EXCL_FOLLOWER
#define CEC_MODE_EXCL_FOLLOWER_PASSTHRU
#define CEC_MODE_MONITOR_PIN
#define CEC_MODE_MONITOR
#define CEC_MODE_MONITOR_ALL
#define CEC_MODE_FOLLOWER_MSK

/* Userspace has to configure the physical address */
#define CEC_CAP_PHYS_ADDR
/* Userspace has to configure the logical addresses */
#define CEC_CAP_LOG_ADDRS
/* Userspace can transmit messages (and thus become follower as well) */
#define CEC_CAP_TRANSMIT
/*
 * Passthrough all messages instead of processing them.
 */
#define CEC_CAP_PASSTHROUGH
/* Supports remote control */
#define CEC_CAP_RC
/* Hardware can monitor all messages, not just directed and broadcast. */
#define CEC_CAP_MONITOR_ALL
/* Hardware can use CEC only if the HDMI HPD pin is high. */
#define CEC_CAP_NEEDS_HPD
/* Hardware can monitor CEC pin transitions */
#define CEC_CAP_MONITOR_PIN
/* CEC_ADAP_G_CONNECTOR_INFO is available */
#define CEC_CAP_CONNECTOR_INFO
/* CEC_MSG_FL_REPLY_VENDOR_ID is available */
#define CEC_CAP_REPLY_VENDOR_ID

/**
 * struct cec_caps - CEC capabilities structure.
 * @driver: name of the CEC device driver.
 * @name: name of the CEC device. @driver + @name must be unique.
 * @available_log_addrs: number of available logical addresses.
 * @capabilities: capabilities of the CEC adapter.
 * @version: version of the CEC adapter framework.
 */
struct cec_caps {};

/**
 * struct cec_log_addrs - CEC logical addresses structure.
 * @log_addr: the claimed logical addresses. Set by the driver.
 * @log_addr_mask: current logical address mask. Set by the driver.
 * @cec_version: the CEC version that the adapter should implement. Set by the
 *	caller.
 * @num_log_addrs: how many logical addresses should be claimed. Set by the
 *	caller.
 * @vendor_id: the vendor ID of the device. Set by the caller.
 * @flags: flags.
 * @osd_name: the OSD name of the device. Set by the caller.
 * @primary_device_type: the primary device type for each logical address.
 *	Set by the caller.
 * @log_addr_type: the logical address types. Set by the caller.
 * @all_device_types: CEC 2.0: all device types represented by the logical
 *	address. Set by the caller.
 * @features:	CEC 2.0: The logical address features. Set by the caller.
 */
struct cec_log_addrs {};

/* Allow a fallback to unregistered */
#define CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK
/* Passthrough RC messages to the input subsystem */
#define CEC_LOG_ADDRS_FL_ALLOW_RC_PASSTHRU
/* CDC-Only device: supports only CDC messages */
#define CEC_LOG_ADDRS_FL_CDC_ONLY

/**
 * struct cec_drm_connector_info - tells which drm connector is
 * associated with the CEC adapter.
 * @card_no: drm card number
 * @connector_id: drm connector ID
 */
struct cec_drm_connector_info {};

#define CEC_CONNECTOR_TYPE_NO_CONNECTOR
#define CEC_CONNECTOR_TYPE_DRM

/**
 * struct cec_connector_info - tells if and which connector is
 * associated with the CEC adapter.
 * @type: connector type (if any)
 * @drm: drm connector info
 * @raw: array to pad the union
 */
struct cec_connector_info {};

/* Events */

/* Event that occurs when the adapter state changes */
#define CEC_EVENT_STATE_CHANGE
/*
 * This event is sent when messages are lost because the application
 * didn't empty the message queue in time
 */
#define CEC_EVENT_LOST_MSGS
#define CEC_EVENT_PIN_CEC_LOW
#define CEC_EVENT_PIN_CEC_HIGH
#define CEC_EVENT_PIN_HPD_LOW
#define CEC_EVENT_PIN_HPD_HIGH
#define CEC_EVENT_PIN_5V_LOW
#define CEC_EVENT_PIN_5V_HIGH

#define CEC_EVENT_FL_INITIAL_STATE
#define CEC_EVENT_FL_DROPPED_EVENTS

/**
 * struct cec_event_state_change - used when the CEC adapter changes state.
 * @phys_addr: the current physical address
 * @log_addr_mask: the current logical address mask
 * @have_conn_info: if non-zero, then HDMI connector information is available.
 *	This field is only valid if CEC_CAP_CONNECTOR_INFO is set. If that
 *	capability is set and @have_conn_info is zero, then that indicates
 *	that the HDMI connector device is not instantiated, either because
 *	the HDMI driver is still configuring the device or because the HDMI
 *	device was unbound.
 */
struct cec_event_state_change {};

/**
 * struct cec_event_lost_msgs - tells you how many messages were lost.
 * @lost_msgs: how many messages were lost.
 */
struct cec_event_lost_msgs {};

/**
 * struct cec_event - CEC event structure
 * @ts: the timestamp of when the event was sent.
 * @event: the event.
 * @flags: event flags.
 * @state_change: the event payload for CEC_EVENT_STATE_CHANGE.
 * @lost_msgs: the event payload for CEC_EVENT_LOST_MSGS.
 * @raw: array to pad the union.
 */
struct cec_event {};

/* ioctls */

/* Adapter capabilities */
#define CEC_ADAP_G_CAPS

/*
 * phys_addr is either 0 (if this is the CEC root device)
 * or a valid physical address obtained from the sink's EDID
 * as read by this CEC device (if this is a source device)
 * or a physical address obtained and modified from a sink
 * EDID and used for a sink CEC device.
 * If nothing is connected, then phys_addr is 0xffff.
 * See HDMI 1.4b, section 8.7 (Physical Address).
 *
 * The CEC_ADAP_S_PHYS_ADDR ioctl may not be available if that is handled
 * internally.
 */
#define CEC_ADAP_G_PHYS_ADDR
#define CEC_ADAP_S_PHYS_ADDR

/*
 * Configure the CEC adapter. It sets the device type and which
 * logical types it will try to claim. It will return which
 * logical addresses it could actually claim.
 * An error is returned if the adapter is disabled or if there
 * is no physical address assigned.
 */

#define CEC_ADAP_G_LOG_ADDRS
#define CEC_ADAP_S_LOG_ADDRS

/* Transmit/receive a CEC command */
#define CEC_TRANSMIT
#define CEC_RECEIVE

/* Dequeue CEC events */
#define CEC_DQEVENT

/*
 * Get and set the message handling mode for this filehandle.
 */
#define CEC_G_MODE
#define CEC_S_MODE

/* Get the connector info */
#define CEC_ADAP_G_CONNECTOR_INFO

/*
 * The remainder of this header defines all CEC messages and operands.
 * The format matters since it the cec-ctl utility parses it to generate
 * code for implementing all these messages.
 *
 * Comments ending with 'Feature' group messages for each feature.
 * If messages are part of multiple features, then the "Has also"
 * comment is used to list the previously defined messages that are
 * supported by the feature.
 *
 * Before operands are defined a comment is added that gives the
 * name of the operand and in brackets the variable name of the
 * corresponding argument in the cec-funcs.h function.
 */

/* Messages */

/* One Touch Play Feature */
#define CEC_MSG_ACTIVE_SOURCE
#define CEC_MSG_IMAGE_VIEW_ON
#define CEC_MSG_TEXT_VIEW_ON


/* Routing Control Feature */

/*
 * Has also:
 *	CEC_MSG_ACTIVE_SOURCE
 */

#define CEC_MSG_INACTIVE_SOURCE
#define CEC_MSG_REQUEST_ACTIVE_SOURCE
#define CEC_MSG_ROUTING_CHANGE
#define CEC_MSG_ROUTING_INFORMATION
#define CEC_MSG_SET_STREAM_PATH


/* Standby Feature */
#define CEC_MSG_STANDBY


/* One Touch Record Feature */
#define CEC_MSG_RECORD_OFF
#define CEC_MSG_RECORD_ON
/* Record Source Type Operand (rec_src_type) */
#define CEC_OP_RECORD_SRC_OWN
#define CEC_OP_RECORD_SRC_DIGITAL
#define CEC_OP_RECORD_SRC_ANALOG
#define CEC_OP_RECORD_SRC_EXT_PLUG
#define CEC_OP_RECORD_SRC_EXT_PHYS_ADDR
/* Service Identification Method Operand (service_id_method) */
#define CEC_OP_SERVICE_ID_METHOD_BY_DIG_ID
#define CEC_OP_SERVICE_ID_METHOD_BY_CHANNEL
/* Digital Service Broadcast System Operand (dig_bcast_system) */
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ARIB_GEN
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ATSC_GEN
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_DVB_GEN
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ARIB_BS
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ARIB_CS
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ARIB_T
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ATSC_CABLE
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ATSC_SAT
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_ATSC_T
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_DVB_C
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_DVB_S
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_DVB_S2
#define CEC_OP_DIG_SERVICE_BCAST_SYSTEM_DVB_T
/* Analogue Broadcast Type Operand (ana_bcast_type) */
#define CEC_OP_ANA_BCAST_TYPE_CABLE
#define CEC_OP_ANA_BCAST_TYPE_SATELLITE
#define CEC_OP_ANA_BCAST_TYPE_TERRESTRIAL
/* Broadcast System Operand (bcast_system) */
#define CEC_OP_BCAST_SYSTEM_PAL_BG
#define CEC_OP_BCAST_SYSTEM_SECAM_LQ
#define CEC_OP_BCAST_SYSTEM_PAL_M
#define CEC_OP_BCAST_SYSTEM_NTSC_M
#define CEC_OP_BCAST_SYSTEM_PAL_I
#define CEC_OP_BCAST_SYSTEM_SECAM_DK
#define CEC_OP_BCAST_SYSTEM_SECAM_BG
#define CEC_OP_BCAST_SYSTEM_SECAM_L
#define CEC_OP_BCAST_SYSTEM_PAL_DK
#define CEC_OP_BCAST_SYSTEM_OTHER
/* Channel Number Format Operand (channel_number_fmt) */
#define CEC_OP_CHANNEL_NUMBER_FMT_1_PART
#define CEC_OP_CHANNEL_NUMBER_FMT_2_PART

#define CEC_MSG_RECORD_STATUS
/* Record Status Operand (rec_status) */
#define CEC_OP_RECORD_STATUS_CUR_SRC
#define CEC_OP_RECORD_STATUS_DIG_SERVICE
#define CEC_OP_RECORD_STATUS_ANA_SERVICE
#define CEC_OP_RECORD_STATUS_EXT_INPUT
#define CEC_OP_RECORD_STATUS_NO_DIG_SERVICE
#define CEC_OP_RECORD_STATUS_NO_ANA_SERVICE
#define CEC_OP_RECORD_STATUS_NO_SERVICE
#define CEC_OP_RECORD_STATUS_INVALID_EXT_PLUG
#define CEC_OP_RECORD_STATUS_INVALID_EXT_PHYS_ADDR
#define CEC_OP_RECORD_STATUS_UNSUP_CA
#define CEC_OP_RECORD_STATUS_NO_CA_ENTITLEMENTS
#define CEC_OP_RECORD_STATUS_CANT_COPY_SRC
#define CEC_OP_RECORD_STATUS_NO_MORE_COPIES
#define CEC_OP_RECORD_STATUS_NO_MEDIA
#define CEC_OP_RECORD_STATUS_PLAYING
#define CEC_OP_RECORD_STATUS_ALREADY_RECORDING
#define CEC_OP_RECORD_STATUS_MEDIA_PROT
#define CEC_OP_RECORD_STATUS_NO_SIGNAL
#define CEC_OP_RECORD_STATUS_MEDIA_PROBLEM
#define CEC_OP_RECORD_STATUS_NO_SPACE
#define CEC_OP_RECORD_STATUS_PARENTAL_LOCK
#define CEC_OP_RECORD_STATUS_TERMINATED_OK
#define CEC_OP_RECORD_STATUS_ALREADY_TERM
#define CEC_OP_RECORD_STATUS_OTHER

#define CEC_MSG_RECORD_TV_SCREEN


/* Timer Programming Feature */
#define CEC_MSG_CLEAR_ANALOGUE_TIMER
/* Recording Sequence Operand (recording_seq) */
#define CEC_OP_REC_SEQ_SUNDAY
#define CEC_OP_REC_SEQ_MONDAY
#define CEC_OP_REC_SEQ_TUESDAY
#define CEC_OP_REC_SEQ_WEDNESDAY
#define CEC_OP_REC_SEQ_THURSDAY
#define CEC_OP_REC_SEQ_FRIDAY
#define CEC_OP_REC_SEQ_SATURDAY
#define CEC_OP_REC_SEQ_ONCE_ONLY

#define CEC_MSG_CLEAR_DIGITAL_TIMER

#define CEC_MSG_CLEAR_EXT_TIMER
/* External Source Specifier Operand (ext_src_spec) */
#define CEC_OP_EXT_SRC_PLUG
#define CEC_OP_EXT_SRC_PHYS_ADDR

#define CEC_MSG_SET_ANALOGUE_TIMER
#define CEC_MSG_SET_DIGITAL_TIMER
#define CEC_MSG_SET_EXT_TIMER

#define CEC_MSG_SET_TIMER_PROGRAM_TITLE
#define CEC_MSG_TIMER_CLEARED_STATUS
/* Timer Cleared Status Data Operand (timer_cleared_status) */
#define CEC_OP_TIMER_CLR_STAT_RECORDING
#define CEC_OP_TIMER_CLR_STAT_NO_MATCHING
#define CEC_OP_TIMER_CLR_STAT_NO_INFO
#define CEC_OP_TIMER_CLR_STAT_CLEARED

#define CEC_MSG_TIMER_STATUS
/* Timer Overlap Warning Operand (timer_overlap_warning) */
#define CEC_OP_TIMER_OVERLAP_WARNING_NO_OVERLAP
#define CEC_OP_TIMER_OVERLAP_WARNING_OVERLAP
/* Media Info Operand (media_info) */
#define CEC_OP_MEDIA_INFO_UNPROT_MEDIA
#define CEC_OP_MEDIA_INFO_PROT_MEDIA
#define CEC_OP_MEDIA_INFO_NO_MEDIA
/* Programmed Indicator Operand (prog_indicator) */
#define CEC_OP_PROG_IND_NOT_PROGRAMMED
#define CEC_OP_PROG_IND_PROGRAMMED
/* Programmed Info Operand (prog_info) */
#define CEC_OP_PROG_INFO_ENOUGH_SPACE
#define CEC_OP_PROG_INFO_NOT_ENOUGH_SPACE
#define CEC_OP_PROG_INFO_MIGHT_NOT_BE_ENOUGH_SPACE
#define CEC_OP_PROG_INFO_NONE_AVAILABLE
/* Not Programmed Error Info Operand (prog_error) */
#define CEC_OP_PROG_ERROR_NO_FREE_TIMER
#define CEC_OP_PROG_ERROR_DATE_OUT_OF_RANGE
#define CEC_OP_PROG_ERROR_REC_SEQ_ERROR
#define CEC_OP_PROG_ERROR_INV_EXT_PLUG
#define CEC_OP_PROG_ERROR_INV_EXT_PHYS_ADDR
#define CEC_OP_PROG_ERROR_CA_UNSUPP
#define CEC_OP_PROG_ERROR_INSUF_CA_ENTITLEMENTS
#define CEC_OP_PROG_ERROR_RESOLUTION_UNSUPP
#define CEC_OP_PROG_ERROR_PARENTAL_LOCK
#define CEC_OP_PROG_ERROR_CLOCK_FAILURE
#define CEC_OP_PROG_ERROR_DUPLICATE


/* System Information Feature */
#define CEC_MSG_CEC_VERSION
/* CEC Version Operand (cec_version) */
#define CEC_OP_CEC_VERSION_1_3A
#define CEC_OP_CEC_VERSION_1_4
#define CEC_OP_CEC_VERSION_2_0

#define CEC_MSG_GET_CEC_VERSION
#define CEC_MSG_GIVE_PHYSICAL_ADDR
#define CEC_MSG_GET_MENU_LANGUAGE
#define CEC_MSG_REPORT_PHYSICAL_ADDR
/* Primary Device Type Operand (prim_devtype) */
#define CEC_OP_PRIM_DEVTYPE_TV
#define CEC_OP_PRIM_DEVTYPE_RECORD
#define CEC_OP_PRIM_DEVTYPE_TUNER
#define CEC_OP_PRIM_DEVTYPE_PLAYBACK
#define CEC_OP_PRIM_DEVTYPE_AUDIOSYSTEM
#define CEC_OP_PRIM_DEVTYPE_SWITCH
#define CEC_OP_PRIM_DEVTYPE_PROCESSOR

#define CEC_MSG_SET_MENU_LANGUAGE
#define CEC_MSG_REPORT_FEATURES
/* All Device Types Operand (all_device_types) */
#define CEC_OP_ALL_DEVTYPE_TV
#define CEC_OP_ALL_DEVTYPE_RECORD
#define CEC_OP_ALL_DEVTYPE_TUNER
#define CEC_OP_ALL_DEVTYPE_PLAYBACK
#define CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM
#define CEC_OP_ALL_DEVTYPE_SWITCH
/*
 * And if you wondering what happened to PROCESSOR devices: those should
 * be mapped to a SWITCH.
 */

/* Valid for RC Profile and Device Feature operands */
#define CEC_OP_FEAT_EXT
/* RC Profile Operand (rc_profile) */
#define CEC_OP_FEAT_RC_TV_PROFILE_NONE
#define CEC_OP_FEAT_RC_TV_PROFILE_1
#define CEC_OP_FEAT_RC_TV_PROFILE_2
#define CEC_OP_FEAT_RC_TV_PROFILE_3
#define CEC_OP_FEAT_RC_TV_PROFILE_4
#define CEC_OP_FEAT_RC_SRC_HAS_DEV_ROOT_MENU
#define CEC_OP_FEAT_RC_SRC_HAS_DEV_SETUP_MENU
#define CEC_OP_FEAT_RC_SRC_HAS_CONTENTS_MENU
#define CEC_OP_FEAT_RC_SRC_HAS_MEDIA_TOP_MENU
#define CEC_OP_FEAT_RC_SRC_HAS_MEDIA_CONTEXT_MENU
/* Device Feature Operand (dev_features) */
#define CEC_OP_FEAT_DEV_HAS_RECORD_TV_SCREEN
#define CEC_OP_FEAT_DEV_HAS_SET_OSD_STRING
#define CEC_OP_FEAT_DEV_HAS_DECK_CONTROL
#define CEC_OP_FEAT_DEV_HAS_SET_AUDIO_RATE
#define CEC_OP_FEAT_DEV_SINK_HAS_ARC_TX
#define CEC_OP_FEAT_DEV_SOURCE_HAS_ARC_RX
#define CEC_OP_FEAT_DEV_HAS_SET_AUDIO_VOLUME_LEVEL

#define CEC_MSG_GIVE_FEATURES


/* Deck Control Feature */
#define CEC_MSG_DECK_CONTROL
/* Deck Control Mode Operand (deck_control_mode) */
#define CEC_OP_DECK_CTL_MODE_SKIP_FWD
#define CEC_OP_DECK_CTL_MODE_SKIP_REV
#define CEC_OP_DECK_CTL_MODE_STOP
#define CEC_OP_DECK_CTL_MODE_EJECT

#define CEC_MSG_DECK_STATUS
/* Deck Info Operand (deck_info) */
#define CEC_OP_DECK_INFO_PLAY
#define CEC_OP_DECK_INFO_RECORD
#define CEC_OP_DECK_INFO_PLAY_REV
#define CEC_OP_DECK_INFO_STILL
#define CEC_OP_DECK_INFO_SLOW
#define CEC_OP_DECK_INFO_SLOW_REV
#define CEC_OP_DECK_INFO_FAST_FWD
#define CEC_OP_DECK_INFO_FAST_REV
#define CEC_OP_DECK_INFO_NO_MEDIA
#define CEC_OP_DECK_INFO_STOP
#define CEC_OP_DECK_INFO_SKIP_FWD
#define CEC_OP_DECK_INFO_SKIP_REV
#define CEC_OP_DECK_INFO_INDEX_SEARCH_FWD
#define CEC_OP_DECK_INFO_INDEX_SEARCH_REV
#define CEC_OP_DECK_INFO_OTHER

#define CEC_MSG_GIVE_DECK_STATUS
/* Status Request Operand (status_req) */
#define CEC_OP_STATUS_REQ_ON
#define CEC_OP_STATUS_REQ_OFF
#define CEC_OP_STATUS_REQ_ONCE

#define CEC_MSG_PLAY
/* Play Mode Operand (play_mode) */
#define CEC_OP_PLAY_MODE_PLAY_FWD
#define CEC_OP_PLAY_MODE_PLAY_REV
#define CEC_OP_PLAY_MODE_PLAY_STILL
#define CEC_OP_PLAY_MODE_PLAY_FAST_FWD_MIN
#define CEC_OP_PLAY_MODE_PLAY_FAST_FWD_MED
#define CEC_OP_PLAY_MODE_PLAY_FAST_FWD_MAX
#define CEC_OP_PLAY_MODE_PLAY_FAST_REV_MIN
#define CEC_OP_PLAY_MODE_PLAY_FAST_REV_MED
#define CEC_OP_PLAY_MODE_PLAY_FAST_REV_MAX
#define CEC_OP_PLAY_MODE_PLAY_SLOW_FWD_MIN
#define CEC_OP_PLAY_MODE_PLAY_SLOW_FWD_MED
#define CEC_OP_PLAY_MODE_PLAY_SLOW_FWD_MAX
#define CEC_OP_PLAY_MODE_PLAY_SLOW_REV_MIN
#define CEC_OP_PLAY_MODE_PLAY_SLOW_REV_MED
#define CEC_OP_PLAY_MODE_PLAY_SLOW_REV_MAX


/* Tuner Control Feature */
#define CEC_MSG_GIVE_TUNER_DEVICE_STATUS
#define CEC_MSG_SELECT_ANALOGUE_SERVICE
#define CEC_MSG_SELECT_DIGITAL_SERVICE
#define CEC_MSG_TUNER_DEVICE_STATUS
/* Recording Flag Operand (rec_flag) */
#define CEC_OP_REC_FLAG_NOT_USED
#define CEC_OP_REC_FLAG_USED
/* Tuner Display Info Operand (tuner_display_info) */
#define CEC_OP_TUNER_DISPLAY_INFO_DIGITAL
#define CEC_OP_TUNER_DISPLAY_INFO_NONE
#define CEC_OP_TUNER_DISPLAY_INFO_ANALOGUE

#define CEC_MSG_TUNER_STEP_DECREMENT
#define CEC_MSG_TUNER_STEP_INCREMENT


/* Vendor Specific Commands Feature */

/*
 * Has also:
 *	CEC_MSG_CEC_VERSION
 *	CEC_MSG_GET_CEC_VERSION
 */
#define CEC_MSG_DEVICE_VENDOR_ID
#define CEC_MSG_GIVE_DEVICE_VENDOR_ID
#define CEC_MSG_VENDOR_COMMAND
#define CEC_MSG_VENDOR_COMMAND_WITH_ID
#define CEC_MSG_VENDOR_REMOTE_BUTTON_DOWN
#define CEC_MSG_VENDOR_REMOTE_BUTTON_UP


/* OSD Display Feature */
#define CEC_MSG_SET_OSD_STRING
/* Display Control Operand (disp_ctl) */
#define CEC_OP_DISP_CTL_DEFAULT
#define CEC_OP_DISP_CTL_UNTIL_CLEARED
#define CEC_OP_DISP_CTL_CLEAR


/* Device OSD Transfer Feature */
#define CEC_MSG_GIVE_OSD_NAME
#define CEC_MSG_SET_OSD_NAME


/* Device Menu Control Feature */
#define CEC_MSG_MENU_REQUEST
/* Menu Request Type Operand (menu_req) */
#define CEC_OP_MENU_REQUEST_ACTIVATE
#define CEC_OP_MENU_REQUEST_DEACTIVATE
#define CEC_OP_MENU_REQUEST_QUERY

#define CEC_MSG_MENU_STATUS
/* Menu State Operand (menu_state) */
#define CEC_OP_MENU_STATE_ACTIVATED
#define CEC_OP_MENU_STATE_DEACTIVATED

#define CEC_MSG_USER_CONTROL_PRESSED
/* UI Command Operand (ui_cmd) */
#define CEC_OP_UI_CMD_SELECT
#define CEC_OP_UI_CMD_UP
#define CEC_OP_UI_CMD_DOWN
#define CEC_OP_UI_CMD_LEFT
#define CEC_OP_UI_CMD_RIGHT
#define CEC_OP_UI_CMD_RIGHT_UP
#define CEC_OP_UI_CMD_RIGHT_DOWN
#define CEC_OP_UI_CMD_LEFT_UP
#define CEC_OP_UI_CMD_LEFT_DOWN
#define CEC_OP_UI_CMD_DEVICE_ROOT_MENU
#define CEC_OP_UI_CMD_DEVICE_SETUP_MENU
#define CEC_OP_UI_CMD_CONTENTS_MENU
#define CEC_OP_UI_CMD_FAVORITE_MENU
#define CEC_OP_UI_CMD_BACK
#define CEC_OP_UI_CMD_MEDIA_TOP_MENU
#define CEC_OP_UI_CMD_MEDIA_CONTEXT_SENSITIVE_MENU
#define CEC_OP_UI_CMD_NUMBER_ENTRY_MODE
#define CEC_OP_UI_CMD_NUMBER_11
#define CEC_OP_UI_CMD_NUMBER_12
#define CEC_OP_UI_CMD_NUMBER_0_OR_NUMBER_10
#define CEC_OP_UI_CMD_NUMBER_1
#define CEC_OP_UI_CMD_NUMBER_2
#define CEC_OP_UI_CMD_NUMBER_3
#define CEC_OP_UI_CMD_NUMBER_4
#define CEC_OP_UI_CMD_NUMBER_5
#define CEC_OP_UI_CMD_NUMBER_6
#define CEC_OP_UI_CMD_NUMBER_7
#define CEC_OP_UI_CMD_NUMBER_8
#define CEC_OP_UI_CMD_NUMBER_9
#define CEC_OP_UI_CMD_DOT
#define CEC_OP_UI_CMD_ENTER
#define CEC_OP_UI_CMD_CLEAR
#define CEC_OP_UI_CMD_NEXT_FAVORITE
#define CEC_OP_UI_CMD_CHANNEL_UP
#define CEC_OP_UI_CMD_CHANNEL_DOWN
#define CEC_OP_UI_CMD_PREVIOUS_CHANNEL
#define CEC_OP_UI_CMD_SOUND_SELECT
#define CEC_OP_UI_CMD_INPUT_SELECT
#define CEC_OP_UI_CMD_DISPLAY_INFORMATION
#define CEC_OP_UI_CMD_HELP
#define CEC_OP_UI_CMD_PAGE_UP
#define CEC_OP_UI_CMD_PAGE_DOWN
#define CEC_OP_UI_CMD_POWER
#define CEC_OP_UI_CMD_VOLUME_UP
#define CEC_OP_UI_CMD_VOLUME_DOWN
#define CEC_OP_UI_CMD_MUTE
#define CEC_OP_UI_CMD_PLAY
#define CEC_OP_UI_CMD_STOP
#define CEC_OP_UI_CMD_PAUSE
#define CEC_OP_UI_CMD_RECORD
#define CEC_OP_UI_CMD_REWIND
#define CEC_OP_UI_CMD_FAST_FORWARD
#define CEC_OP_UI_CMD_EJECT
#define CEC_OP_UI_CMD_SKIP_FORWARD
#define CEC_OP_UI_CMD_SKIP_BACKWARD
#define CEC_OP_UI_CMD_STOP_RECORD
#define CEC_OP_UI_CMD_PAUSE_RECORD
#define CEC_OP_UI_CMD_ANGLE
#define CEC_OP_UI_CMD_SUB_PICTURE
#define CEC_OP_UI_CMD_VIDEO_ON_DEMAND
#define CEC_OP_UI_CMD_ELECTRONIC_PROGRAM_GUIDE
#define CEC_OP_UI_CMD_TIMER_PROGRAMMING
#define CEC_OP_UI_CMD_INITIAL_CONFIGURATION
#define CEC_OP_UI_CMD_SELECT_BROADCAST_TYPE
#define CEC_OP_UI_CMD_SELECT_SOUND_PRESENTATION
#define CEC_OP_UI_CMD_AUDIO_DESCRIPTION
#define CEC_OP_UI_CMD_INTERNET
#define CEC_OP_UI_CMD_3D_MODE
#define CEC_OP_UI_CMD_PLAY_FUNCTION
#define CEC_OP_UI_CMD_PAUSE_PLAY_FUNCTION
#define CEC_OP_UI_CMD_RECORD_FUNCTION
#define CEC_OP_UI_CMD_PAUSE_RECORD_FUNCTION
#define CEC_OP_UI_CMD_STOP_FUNCTION
#define CEC_OP_UI_CMD_MUTE_FUNCTION
#define CEC_OP_UI_CMD_RESTORE_VOLUME_FUNCTION
#define CEC_OP_UI_CMD_TUNE_FUNCTION
#define CEC_OP_UI_CMD_SELECT_MEDIA_FUNCTION
#define CEC_OP_UI_CMD_SELECT_AV_INPUT_FUNCTION
#define CEC_OP_UI_CMD_SELECT_AUDIO_INPUT_FUNCTION
#define CEC_OP_UI_CMD_POWER_TOGGLE_FUNCTION
#define CEC_OP_UI_CMD_POWER_OFF_FUNCTION
#define CEC_OP_UI_CMD_POWER_ON_FUNCTION
#define CEC_OP_UI_CMD_F1_BLUE
#define CEC_OP_UI_CMD_F2_RED
#define CEC_OP_UI_CMD_F3_GREEN
#define CEC_OP_UI_CMD_F4_YELLOW
#define CEC_OP_UI_CMD_F5
#define CEC_OP_UI_CMD_DATA
/* UI Broadcast Type Operand (ui_bcast_type) */
#define CEC_OP_UI_BCAST_TYPE_TOGGLE_ALL
#define CEC_OP_UI_BCAST_TYPE_TOGGLE_DIG_ANA
#define CEC_OP_UI_BCAST_TYPE_ANALOGUE
#define CEC_OP_UI_BCAST_TYPE_ANALOGUE_T
#define CEC_OP_UI_BCAST_TYPE_ANALOGUE_CABLE
#define CEC_OP_UI_BCAST_TYPE_ANALOGUE_SAT
#define CEC_OP_UI_BCAST_TYPE_DIGITAL
#define CEC_OP_UI_BCAST_TYPE_DIGITAL_T
#define CEC_OP_UI_BCAST_TYPE_DIGITAL_CABLE
#define CEC_OP_UI_BCAST_TYPE_DIGITAL_SAT
#define CEC_OP_UI_BCAST_TYPE_DIGITAL_COM_SAT
#define CEC_OP_UI_BCAST_TYPE_DIGITAL_COM_SAT2
#define CEC_OP_UI_BCAST_TYPE_IP
/* UI Sound Presentation Control Operand (ui_snd_pres_ctl) */
#define CEC_OP_UI_SND_PRES_CTL_DUAL_MONO
#define CEC_OP_UI_SND_PRES_CTL_KARAOKE
#define CEC_OP_UI_SND_PRES_CTL_DOWNMIX
#define CEC_OP_UI_SND_PRES_CTL_REVERB
#define CEC_OP_UI_SND_PRES_CTL_EQUALIZER
#define CEC_OP_UI_SND_PRES_CTL_BASS_UP
#define CEC_OP_UI_SND_PRES_CTL_BASS_NEUTRAL
#define CEC_OP_UI_SND_PRES_CTL_BASS_DOWN
#define CEC_OP_UI_SND_PRES_CTL_TREBLE_UP
#define CEC_OP_UI_SND_PRES_CTL_TREBLE_NEUTRAL
#define CEC_OP_UI_SND_PRES_CTL_TREBLE_DOWN

#define CEC_MSG_USER_CONTROL_RELEASED


/* Remote Control Passthrough Feature */

/*
 * Has also:
 *	CEC_MSG_USER_CONTROL_PRESSED
 *	CEC_MSG_USER_CONTROL_RELEASED
 */


/* Power Status Feature */
#define CEC_MSG_GIVE_DEVICE_POWER_STATUS
#define CEC_MSG_REPORT_POWER_STATUS
/* Power Status Operand (pwr_state) */
#define CEC_OP_POWER_STATUS_ON
#define CEC_OP_POWER_STATUS_STANDBY
#define CEC_OP_POWER_STATUS_TO_ON
#define CEC_OP_POWER_STATUS_TO_STANDBY


/* General Protocol Messages */
#define CEC_MSG_FEATURE_ABORT
/* Abort Reason Operand (reason) */
#define CEC_OP_ABORT_UNRECOGNIZED_OP
#define CEC_OP_ABORT_INCORRECT_MODE
#define CEC_OP_ABORT_NO_SOURCE
#define CEC_OP_ABORT_INVALID_OP
#define CEC_OP_ABORT_REFUSED
#define CEC_OP_ABORT_UNDETERMINED

#define CEC_MSG_ABORT


/* System Audio Control Feature */

/*
 * Has also:
 *	CEC_MSG_USER_CONTROL_PRESSED
 *	CEC_MSG_USER_CONTROL_RELEASED
 */
#define CEC_MSG_GIVE_AUDIO_STATUS
#define CEC_MSG_GIVE_SYSTEM_AUDIO_MODE_STATUS
#define CEC_MSG_REPORT_AUDIO_STATUS
/* Audio Mute Status Operand (aud_mute_status) */
#define CEC_OP_AUD_MUTE_STATUS_OFF
#define CEC_OP_AUD_MUTE_STATUS_ON

#define CEC_MSG_REPORT_SHORT_AUDIO_DESCRIPTOR
#define CEC_MSG_REQUEST_SHORT_AUDIO_DESCRIPTOR
#define CEC_MSG_SET_SYSTEM_AUDIO_MODE
/* System Audio Status Operand (sys_aud_status) */
#define CEC_OP_SYS_AUD_STATUS_OFF
#define CEC_OP_SYS_AUD_STATUS_ON

#define CEC_MSG_SYSTEM_AUDIO_MODE_REQUEST
#define CEC_MSG_SYSTEM_AUDIO_MODE_STATUS
/* Audio Format ID Operand (audio_format_id) */
#define CEC_OP_AUD_FMT_ID_CEA861
#define CEC_OP_AUD_FMT_ID_CEA861_CXT

#define CEC_MSG_SET_AUDIO_VOLUME_LEVEL

/* Audio Rate Control Feature */
#define CEC_MSG_SET_AUDIO_RATE
/* Audio Rate Operand (audio_rate) */
#define CEC_OP_AUD_RATE_OFF
#define CEC_OP_AUD_RATE_WIDE_STD
#define CEC_OP_AUD_RATE_WIDE_FAST
#define CEC_OP_AUD_RATE_WIDE_SLOW
#define CEC_OP_AUD_RATE_NARROW_STD
#define CEC_OP_AUD_RATE_NARROW_FAST
#define CEC_OP_AUD_RATE_NARROW_SLOW


/* Audio Return Channel Control Feature */
#define CEC_MSG_INITIATE_ARC
#define CEC_MSG_REPORT_ARC_INITIATED
#define CEC_MSG_REPORT_ARC_TERMINATED
#define CEC_MSG_REQUEST_ARC_INITIATION
#define CEC_MSG_REQUEST_ARC_TERMINATION
#define CEC_MSG_TERMINATE_ARC


/* Dynamic Audio Lipsync Feature */
/* Only for CEC 2.0 and up */
#define CEC_MSG_REQUEST_CURRENT_LATENCY
#define CEC_MSG_REPORT_CURRENT_LATENCY
/* Low Latency Mode Operand (low_latency_mode) */
#define CEC_OP_LOW_LATENCY_MODE_OFF
#define CEC_OP_LOW_LATENCY_MODE_ON
/* Audio Output Compensated Operand (audio_out_compensated) */
#define CEC_OP_AUD_OUT_COMPENSATED_NA
#define CEC_OP_AUD_OUT_COMPENSATED_DELAY
#define CEC_OP_AUD_OUT_COMPENSATED_NO_DELAY
#define CEC_OP_AUD_OUT_COMPENSATED_PARTIAL_DELAY


/* Capability Discovery and Control Feature */
#define CEC_MSG_CDC_MESSAGE
/* Ethernet-over-HDMI: nobody ever does this... */
#define CEC_MSG_CDC_HEC_INQUIRE_STATE
#define CEC_MSG_CDC_HEC_REPORT_STATE
/* HEC Functionality State Operand (hec_func_state) */
#define CEC_OP_HEC_FUNC_STATE_NOT_SUPPORTED
#define CEC_OP_HEC_FUNC_STATE_INACTIVE
#define CEC_OP_HEC_FUNC_STATE_ACTIVE
#define CEC_OP_HEC_FUNC_STATE_ACTIVATION_FIELD
/* Host Functionality State Operand (host_func_state) */
#define CEC_OP_HOST_FUNC_STATE_NOT_SUPPORTED
#define CEC_OP_HOST_FUNC_STATE_INACTIVE
#define CEC_OP_HOST_FUNC_STATE_ACTIVE
/* ENC Functionality State Operand (enc_func_state) */
#define CEC_OP_ENC_FUNC_STATE_EXT_CON_NOT_SUPPORTED
#define CEC_OP_ENC_FUNC_STATE_EXT_CON_INACTIVE
#define CEC_OP_ENC_FUNC_STATE_EXT_CON_ACTIVE
/* CDC Error Code Operand (cdc_errcode) */
#define CEC_OP_CDC_ERROR_CODE_NONE
#define CEC_OP_CDC_ERROR_CODE_CAP_UNSUPPORTED
#define CEC_OP_CDC_ERROR_CODE_WRONG_STATE
#define CEC_OP_CDC_ERROR_CODE_OTHER
/* HEC Support Operand (hec_support) */
#define CEC_OP_HEC_SUPPORT_NO
#define CEC_OP_HEC_SUPPORT_YES
/* HEC Activation Operand (hec_activation) */
#define CEC_OP_HEC_ACTIVATION_ON
#define CEC_OP_HEC_ACTIVATION_OFF

#define CEC_MSG_CDC_HEC_SET_STATE_ADJACENT
#define CEC_MSG_CDC_HEC_SET_STATE
/* HEC Set State Operand (hec_set_state) */
#define CEC_OP_HEC_SET_STATE_DEACTIVATE
#define CEC_OP_HEC_SET_STATE_ACTIVATE

#define CEC_MSG_CDC_HEC_REQUEST_DEACTIVATION
#define CEC_MSG_CDC_HEC_NOTIFY_ALIVE
#define CEC_MSG_CDC_HEC_DISCOVER
/* Hotplug Detect messages */
#define CEC_MSG_CDC_HPD_SET_STATE
/* HPD State Operand (hpd_state) */
#define CEC_OP_HPD_STATE_CP_EDID_DISABLE
#define CEC_OP_HPD_STATE_CP_EDID_ENABLE
#define CEC_OP_HPD_STATE_CP_EDID_DISABLE_ENABLE
#define CEC_OP_HPD_STATE_EDID_DISABLE
#define CEC_OP_HPD_STATE_EDID_ENABLE
#define CEC_OP_HPD_STATE_EDID_DISABLE_ENABLE
#define CEC_MSG_CDC_HPD_REPORT_STATE
/* HPD Error Code Operand (hpd_error) */
#define CEC_OP_HPD_ERROR_NONE
#define CEC_OP_HPD_ERROR_INITIATOR_NOT_CAPABLE
#define CEC_OP_HPD_ERROR_INITIATOR_WRONG_STATE
#define CEC_OP_HPD_ERROR_OTHER
#define CEC_OP_HPD_ERROR_NONE_NO_VIDEO

/* End of Messages */

/* Helper functions to identify the 'special' CEC devices */

static inline int cec_is_2nd_tv(const struct cec_log_addrs *las)
{}

static inline int cec_is_processor(const struct cec_log_addrs *las)
{}

static inline int cec_is_switch(const struct cec_log_addrs *las)
{}

static inline int cec_is_cdc_only(const struct cec_log_addrs *las)
{}

#endif