fbt
struct fbtype *fbt;
fbt = &fb->fb_fbtype;
fbt->fb_type = FBTYPE_SUN2BW;
fbt->fb_width = 1152; /* default - see below */
fbt->fb_height = 900; /* default - see below */
fbt->fb_depth = 1;
fbt->fb_cmsize = 0;
fbt->fb_size = BW2_FBSIZE; /* default - see below */
fbt->fb_width = 1600;
fbt->fb_height = 1280;
fbt->fb_size = BW2_FBSIZE_HIRES;
aprint_normal(" (%dx%d)\n", fbt->fb_width, fbt->fb_height);
struct fbtype *fbt;
fbt = &fb->fb_fbtype;
fbt->fb_type = FBTYPE_SUN2COLOR;
fbt->fb_depth = 8;
fbt->fb_cmsize = CMSIZE;
fbt->fb_width = 1152;
fbt->fb_height = 900;
fbt->fb_size = CG2_MAPPED_SIZE;
aprint_normal(" (%dx%d)\n", fbt->fb_width, fbt->fb_height);
struct fbtype *fbt;
fbt = &fb->fb_fbtype;
fbt->fb_type = FBTYPE_SUN4COLOR;
fbt->fb_width = 1152; /* default - see below */
fbt->fb_height = 900; /* default - see below */
fbt->fb_depth = 8;
fbt->fb_cmsize = 256;
fbt->fb_size = CG4_MMAP_SIZE;
aprint_normal(" (%dx%d)\n", fbt->fb_width, fbt->fb_height);
fb->fbt = pa->pa_memt;
BUS_SPACE_MAP_LINEAR, &fb->fbt, &fb->fbh,
bus_space_unmap(fb->fbt, fb->fbh, fb->fbsize);
(uintptr_t)bus_space_vaddr(fb->fbt, fb->fbh) - (uintptr_t)fb->fb_addr;
pa = bus_space_mmap(fb->fbt,
pa = bus_space_mmap(fb->fbt, fb->fbbase, offset - fb->fbbase,
(void *)((char *)bus_space_vaddr(fb->fbt, fb->fbh) + fbaddr);
bus_space_tag_t fbt;
sisfbcn.fbt = memt;
struct fbtype *fbt;
fbt = &sc->sc_fb.fb_type;
(fbt->fb_width - 1) | ((fbt->fb_height - 1) << 16));
(fbt->fb_width - 1) | ((fbt->fb_height - 1) << 11));