Lines Matching refs:fb
51 #include <dev/fb/fbreg.h>
65 struct bcm2835_fb_config fb;
70 {"broadcom,bcm2835-fb", 1},
71 {"brcm,bcm2708-fb", 1},
79 bcm_fb_init(struct bcmsc_softc *sc, struct bcm2835_fb_config *fb)
85 memset(fb, 0, sizeof(*fb));
86 if (bcm2835_mbox_fb_get_w_h(fb) != 0)
88 if (bcm2835_mbox_fb_get_bpp(fb) != 0)
90 if (fb->bpp < FB_DEPTH) {
91 device_printf(sc->dev, "changing fb bpp from %d to %d\n", fb->bpp, FB_DEPTH);
92 fb->bpp = FB_DEPTH;
94 device_printf(sc->dev, "keeping existing fb bpp of %d\n", fb->bpp);
96 fb->vxres = fb->xres;
97 fb->vyres = fb->yres;
98 fb->xoffset = fb->yoffset = 0;
100 if ((err = bcm2835_mbox_fb_init(fb)) != 0) {
111 struct bcm2835_fb_config fb;
115 err = bcm_fb_init(sc, &fb);
122 sc->info.fb_vbase = (intptr_t)pmap_mapdev(fb.base, fb.size);
123 sc->info.fb_pbase = fb.base;
124 sc->info.fb_size = fb.size;
125 sc->info.fb_bpp = sc->info.fb_depth = fb.bpp;
126 sc->info.fb_stride = fb.pitch;
127 sc->info.fb_width = fb.xres;
128 sc->info.fb_height = fb.yres;
161 device_printf(sc->dev, "%dx%d(%dx%d@%d,%d) %dbpp\n", fb.xres, fb.yres,
162 fb.vxres, fb.vyres, fb.xoffset, fb.yoffset, fb.bpp);
165 sc->fbswap, fb.pitch, fb.base, fb.size);
174 struct bcm2835_fb_config fb;
183 bcm_fb_init(sc, &fb);
278 "fb",