/* Convert bits-per-pixel to a hardware palette PBS value.  */
static u_int palette_pbs(struct fb_var_screeninfo *var)
/* Convert bits-per-pixel to a hardware palette PBS value.  */
static u_int palette_pbs(struct fb_var_screeninfo *var)
{
	int ret = 0;
	switch (var->bits_per_pixel) {
	case 4:  ret = 0 << 12;	break;
	case 8:  ret = 1 << 12; break;
	case 16: ret = 2 << 12; break;
	}
	return ret;
}