/* DESCRIPTION: The IBM VGA standard allows protection of certain VGA registers.  */
static void i810_protect_regs(u8 __iomem *mmio, int mode)
/* DESCRIPTION: The IBM VGA standard allows protection of certain VGA registers.  */
static void i810_protect_regs(u8 __iomem *mmio, int mode)
{
	u8 reg;
	i810_writeb(CR_INDEX_CGA, mmio, CR11);
	reg = i810_readb(CR_DATA_CGA, mmio);
	reg = (mode == OFF) ? reg & ~0x80 :
		reg | 0x80;
 	i810_writeb(CR_INDEX_CGA, mmio, CR11);
	i810_writeb(CR_DATA_CGA, mmio, reg);
}