fbinfo
amidisplaycc_getfbinfo(struct amidisplaycc_softc *adp, struct wsdisplayio_fbinfo *fbinfo)
memset(fbinfo, 0, sizeof(*fbinfo));
fbinfo->fbi_fbsize = bm->bytes_per_row * bm->rows * adp->gfxdepth;
fbinfo->fbi_fboffset = 0;
fbinfo->fbi_width = bm->bytes_per_row * 8;
fbinfo->fbi_height = bm->rows;
fbinfo->fbi_stride = bm->bytes_per_row;
fbinfo->fbi_bitsperpixel = adp->gfxdepth;
fbinfo->fbi_pixeltype = WSFB_CI;
fbinfo->fbi_flags = 0;
fbinfo->fbi_subtype.fbi_cmapinfo.cmap_entries = 1 << adp->gfxdepth;
struct wsdisplay_fbinfo *fbinfo;
fbinfo = (struct wsdisplay_fbinfo *)data;
fbinfo->height = gi->gd_fbheight;
fbinfo->width = gi->gd_fbwidth;
fbinfo->depth = gi->gd_planes;
fbinfo->cmsize = gi->gd_colors;
struct wsdisplay_fbinfo *fbinfo = (void *)data;
fbinfo->height = ri->ri_height;
fbinfo->width = ri->ri_width;
fbinfo->depth = ri->ri_depth;
fbinfo->cmsize = 256;
struct wsdisplay_fbinfo *fbinfo = (struct wsdisplay_fbinfo *)data;
fbinfo->width = LIGHT_XRES;
fbinfo->height = LIGHT_YRES;
fbinfo->depth = LIGHT_DEPTH;
fbinfo->cmsize = 1 << LIGHT_DEPTH;
#define FBIOGINFO _IOR('F', 2, struct fbinfo)
struct btinfo_framebuffer fbinfo;
memcpy(&fbinfo, fbptr, sizeof(fbinfo));
if (fbinfo.physaddr != 0) {
prop_dictionary_set_uint32(dict, "width", fbinfo.width);
prop_dictionary_set_uint32(dict, "height", fbinfo.height);
prop_dictionary_set_uint8(dict, "depth", fbinfo.depth);
prop_dictionary_set_uint16(dict, "linebytes", fbinfo.stride);
prop_dictionary_set_uint64(dict, "address", fbinfo.physaddr);
(fbinfo.flags & BI_FB_SPLASH) != 0);
if (fbinfo.depth == 8) {
if (fbinfo.physaddr != 0) {
(fbinfo->flags & BI_FB_SPLASH) != 0);
const struct btinfo_framebuffer *fbinfo = NULL;
fbinfo = xen_genfb_getbtinfo();
fbinfo = lookup_bootinfo(BTINFO_FRAMEBUFFER);
if (fbinfo && fbinfo->physaddr > 0) {
const struct btinfo_framebuffer *fbinfo = NULL;
fbinfo = xen_genfb_getbtinfo();
if (fbinfo == NULL)
fbinfo = lookup_bootinfo(BTINFO_FRAMEBUFFER);
if (fbinfo == NULL || fbinfo->physaddr == 0)
err = _x86_memio_map(t, (bus_addr_t)fbinfo->physaddr,
fbinfo->height * fbinfo->stride,
acpi_md_vesa_modenum = fbinfo->vbemode;
ri->ri_width = fbinfo->width;
ri->ri_height = fbinfo->height;
ri->ri_depth = fbinfo->depth;
ri->ri_stride = fbinfo->stride;
ri->ri_rnum = fbinfo->rnum;
ri->ri_gnum = fbinfo->gnum;
ri->ri_bnum = fbinfo->bnum;
ri->ri_rpos = fbinfo->rpos;
ri->ri_gpos = fbinfo->gpos;
ri->ri_bpos = fbinfo->bpos;
struct btinfo_framebuffer fbinfo;
memcpy(&fbinfo, fbptr, sizeof(fbinfo));
if (fbinfo.physaddr != 0) {
prop_dictionary_set_uint32(dict, "width", fbinfo.width);
prop_dictionary_set_uint32(dict, "height", fbinfo.height);
prop_dictionary_set_uint8(dict, "depth", fbinfo.depth);
prop_dictionary_set_uint16(dict, "linebytes", fbinfo.stride);
prop_dictionary_set_uint64(dict, "address", fbinfo.physaddr);
(fbinfo.flags & BI_FB_SPLASH) != 0);
if (fbinfo.depth == 8) {
if (fbinfo.physaddr != 0) {
struct btinfo_framebuffer fbinfo;
memset(&fbinfo, 0, sizeof(fbinfo));
mbi_vbe((void *)mbt, &fbinfo);
mbi_framebuffer((void *)mbt, &fbinfo);
bootinfo_add((struct btinfo_common *)&fbinfo,
BTINFO_FRAMEBUFFER, sizeof(fbinfo));
const struct btinfo_framebuffer *fbinfo = NULL;
fbinfo = xen_genfb_getbtinfo();
if (fbinfo && fbinfo->physaddr > 0) {
#define FBIOGINFO _IOR('F', 2, struct fbinfo)
struct wsdisplay_fbinfo fbinfo;
if (ioctl(fb->fd, WSDISPLAYIO_GINFO, &fbinfo) < 0 ||
fb->conf.hf_width = fbinfo.width;
fb->conf.hf_height = fbinfo.height;
fb->conf.hf_bytes_per_plane = fbinfo.height * linebytes;
fb->conf.hf_pack_width = fbinfo.depth;