/* set V.24 Control Register based on current configuration  */
static void msc_set_vcr(struct slgt_info *info)
/* set V.24 Control Register based on current configuration  */
static void msc_set_vcr(struct slgt_info *info)
{
	unsigned char val = 0;
	switch(info->if_mode & MGSL_INTERFACE_MASK)
	{
	case MGSL_INTERFACE_RS232:
		val |= BIT5;
		break;
	case MGSL_INTERFACE_V35:
		val |= BIT7 + BIT6 + BIT5;
		break;
	case MGSL_INTERFACE_RS422:
		val |= BIT6;
		break;
	}
	if (info->if_mode & MGSL_INTERFACE_MSB_FIRST)
		val |= BIT4;
	if (info->signals & SerialSignal_DTR)
		val |= BIT3;
	if (info->signals & SerialSignal_RTS)
		val |= BIT2;
	if (info->if_mode & MGSL_INTERFACE_LL)
		val |= BIT1;
	if (info->if_mode & MGSL_INTERFACE_RL)
		val |= BIT0;
	wr_reg8(info, VCR, val);
}