/* @regno: boolean, 0 copy local, 1 get_user() function @red: frame buffer colormap structure @green: The green value which can be up to 16 bits wide @blue: The blue value which can be up to 16 bits wide. @transp: If supported the alpha value which can be up to 16 bits wide. @info: frame buffer info structure  */
static int ffb_setcolreg(unsigned, unsigned, unsigned, unsigned, unsigned, struct fb_info *)
/* @regno: boolean, 0 copy local, 1 get_user() function @red: frame buffer colormap structure @green: The green value which can be up to 16 bits wide @blue: The blue value which can be up to 16 bits wide. @transp: If supported the alpha value which can be up to 16 bits wide. @info: frame buffer info structure  */
static int ffb_setcolreg(unsigned, unsigned, unsigned, unsigned, unsigned, struct fb_info *)
{
	u32 value;
	if (regno >= 16)
		return 1;
	red >>= 8;
	green >>= 8;
	blue >>= 8;
	value = (blue << 16) | (green << 8) | red;
	((u32 *)info->pseudo_palette)[regno] = value;
	return 0;
}