fbtype
((struct fbtype *)data)->fb_type = FBTYPE_DUMBFB;
((struct fbtype *)data)->fb_height = scp->sc->fbi->height;
((struct fbtype *)data)->fb_width = scp->sc->fbi->width;
((struct fbtype *)data)->fb_depth = scp->sc->fbi->depth;
((struct fbtype *)data)->fb_cmsize = 0;
((struct fbtype *)data)->fb_size =
((struct fbtype *)arg)->fb_type = fb_type(adp->va_type);
((struct fbtype *)arg)->fb_height = adp->va_info.vi_height;
((struct fbtype *)arg)->fb_width = adp->va_info.vi_width;
((struct fbtype *)arg)->fb_depth = adp->va_info.vi_depth;
((struct fbtype *)arg)->fb_cmsize = 0;
((struct fbtype *)arg)->fb_cmsize = 1 << adp->va_info.vi_depth;
((struct fbtype *)arg)->fb_size = adp->va_buffer_size;
#define FBIOGTYPE _IOR('F', 0, struct fbtype)
struct fbtype fbtype; /* fbtype info for real device */