/* The purpose of this function is for layers and drivers to be able to set the maximum QoS possible and then "and in" their own limitations  */
void irda_init_max_qos_capabilies(struct qos_info *qos)
/* The purpose of this function is for layers and drivers to be able to set the maximum QoS possible and then "and in" their own limitations  */
void irda_init_max_qos_capabilies(struct qos_info *qos)
{
	int i;
	i = value_lower_bits(sysctl_max_baud_rate, baud_rates, 10,
			     &qos->baud_rate.bits);
	sysctl_max_baud_rate = index_value(i, baud_rates);
	i = value_lower_bits(sysctl_max_noreply_time, link_disc_times, 8,
			     &qos->link_disc_time.bits);
	sysctl_max_noreply_time = index_value(i, link_disc_times);
	qos->baud_rate.bits    &= 0x03ff;
	qos->window_size.bits     = 0x7f;
	qos->min_turn_time.bits   = 0xff;
	qos->max_turn_time.bits   = 0x0f;
	qos->data_size.bits       = 0x3f;
	qos->link_disc_time.bits &= 0xff;
	qos->additional_bofs.bits = 0xff;
}