#ifndef _i2c_slave_h #define _i2c_slave_h //CONFIG_SUPPORT_U2I_UPGRADE=> enable U2I_UPGRADE function at which port run as hdmi edid function //CONFIG_DDC_CI_SUPPORT => enable U2I_UPGRADE function at which port run as ddc ci function #if defined(CONFIG_DDC_CI_SUPPORT) #else #if defined(CONFIG_SUPPORT_U2I_UPGRADE) //select hdmi1 as U2I interface #if (((CONFIG_HDMI_PORT_MAP >> (0 * 4)) & 0xF) == 1) #define I2C_SLAVE_0_SUPPORT_U2I_UPGRADE #endif #if (((CONFIG_HDMI_PORT_MAP >> (1 * 4)) & 0xF) == 1) #define I2C_SLAVE_1_SUPPORT_U2I_UPGRADE #endif //#define I2C_SLAVE_2_SUPPORT_U2I_UPGRADE #if (((CONFIG_HDMI_PORT_MAP >> (2 * 4)) & 0xF) == 1) #define I2C_SLAVE_3_SUPPORT_U2I_UPGRADE #endif //#define I2C_SLAVE_4_SUPPORT_U2I_UPGRADE #endif #endif void i2c_slave_set_response(unsigned int value); void i2c_slave_set_recv_addr(unsigned int *recv_addr); void i2c_slave_set_ram_value(unsigned int addr, unsigned int *data, unsigned int data_len); void i2c_slave_get_request(void *req_buf); unsigned int i2c_slave_get_recv_pos(void); void i2c_slave_set_recv_pos(unsigned int pos); void i2c_slave_erase_request(void); #endif