/* vx_write_one_cbit - write one bit to UER config @index: the bit index @val: bit value, 0 or 1  */
static void vx_write_one_cbit(struct vx_core *chip, int index, int val)
/* vx_write_one_cbit - write one bit to UER config @index: the bit index @val: bit value, 0 or 1  */
static void vx_write_one_cbit(struct vx_core *chip, int index, int val)
{
	unsigned long flags;
	val = !!val;
	spin_lock_irqsave(&chip->lock, flags);
	if (vx_is_pcmcia(chip)) {
		vx_outb(chip, CSUER, 0);
		vx_outb(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK));
	} else {
		vx_outl(chip, CSUER, 0);
		vx_outl(chip, RUER, (val << 7) | (index & XX_UER_CBITS_OFFSET_MASK));
	}
	spin_unlock_irqrestore(&chip->lock, flags);
}