/* Returns pointer to a frame buffer colormap structure.  */
const struct fb_cmap* fb_default_cmap(int len)
/* Returns pointer to a frame buffer colormap structure.  */
const struct fb_cmap* fb_default_cmap(int len)
{
    if (len <= 2)
	return &default_2_colors;
    if (len <= 4)
	return &default_4_colors;
    if (len <= 8)
	return &default_8_colors;
    return &default_16_colors;
}