FreeBSD/sys/dev/drm2/drm_dp_iic_helper.c
/*
 * Send the address. If the I2C link is running, this 'restarts'
 * the connection with the new address, this is used for doing
 * a write followed by a read (as needed for DDC)
 */
Send the address. If the I2C link is running, this 'restarts'
the connection with the new address, this is used for doing
a write followed by a read (as needed for DDC)
Send the address . If the I2C link is running this ' restarts ' the connection with the new address this is used for doing a write followed by a read ( as needed for DDC )
static int
iic_dp_aux_address(device_t idev, u16 address, bool reading)
{
	struct iic_dp_aux_data *aux_data;
	int mode, ret;
	aux_data = device_get_softc(idev);
	mode = MODE_I2C_START;
	if (reading)
		mode |= MODE_I2C_READ;
	else
		mode |= MODE_I2C_WRITE;
	aux_data->address = address;
	aux_data->running = true;
	ret = iic_dp_aux_transaction(idev, mode, 0, NULL);
	return (ret);
}
static int iic_dp_aux_address ( device_t idev , u16 address , bool reading ) { struct iic_dp_aux_data * aux_data ; int mode , ret ; aux_data = device_get_softc ( idev ) ; mode = MODE_I2C_START ; if ( reading ) mode |= MODE_I2C_READ ; else mode |= MODE_I2C_WRITE ; aux_data -> address = address ; aux_data -> running = true ; ret = iic_dp_aux_transaction ( idev , mode , 0 , NULL ) ; return ( ret ) ; }
Send the address.
Send the address .