Home
last modified time | relevance | path

Searched refs:fbinfo (Results 1 – 13 of 13) sorted by relevance

/netbsd-src/sys/arch/x86/x86/
H A Dgenfb_machdep.c103 const struct btinfo_framebuffer *fbinfo = NULL; in x86_genfb_init() local
118 fbinfo = xen_genfb_getbtinfo(); in x86_genfb_init()
120 if (fbinfo == NULL) in x86_genfb_init()
121 fbinfo = lookup_bootinfo(BTINFO_FRAMEBUFFER); in x86_genfb_init()
123 if (fbinfo == NULL || fbinfo->physaddr == 0) in x86_genfb_init()
126 err = _x86_memio_map(t, (bus_addr_t)fbinfo->physaddr, in x86_genfb_init()
127 fbinfo->height * fbinfo->stride, in x86_genfb_init()
141 acpi_md_vesa_modenum = fbinfo->vbemode; in x86_genfb_init()
146 ri->ri_width = fbinfo->width; in x86_genfb_init()
147 ri->ri_height = fbinfo->height; in x86_genfb_init()
[all …]
H A Dconsinit.c168 const struct btinfo_framebuffer *fbinfo = NULL; in consinit() local
206 fbinfo = xen_genfb_getbtinfo(); in consinit()
209 fbinfo = lookup_bootinfo(BTINFO_FRAMEBUFFER); in consinit()
214 if (fbinfo && fbinfo->physaddr > 0) { in consinit()
H A Dhyperv.c1054 struct btinfo_framebuffer fbinfo; in populate_fbinfo() local
1059 memcpy(&fbinfo, fbptr, sizeof(fbinfo)); in populate_fbinfo()
1061 if (fbinfo.physaddr != 0) { in populate_fbinfo()
1062 prop_dictionary_set_uint32(dict, "width", fbinfo.width); in populate_fbinfo()
1063 prop_dictionary_set_uint32(dict, "height", fbinfo.height); in populate_fbinfo()
1064 prop_dictionary_set_uint8(dict, "depth", fbinfo.depth); in populate_fbinfo()
1065 prop_dictionary_set_uint16(dict, "linebytes", fbinfo.stride); in populate_fbinfo()
1067 prop_dictionary_set_uint64(dict, "address", fbinfo.physaddr); in populate_fbinfo()
1079 (fbinfo.flags & BI_FB_SPLASH) != 0); in populate_fbinfo()
1082 if (fbinfo.depth == 8) { in populate_fbinfo()
[all …]
H A Dmultiboot2.c655 struct btinfo_framebuffer fbinfo; in multiboot2_post_reloc() local
667 memset(&fbinfo, 0, sizeof(fbinfo)); in multiboot2_post_reloc()
692 mbi_vbe((void *)mbt, &fbinfo); in multiboot2_post_reloc()
695 mbi_framebuffer((void *)mbt, &fbinfo); in multiboot2_post_reloc()
726 bootinfo_add((struct btinfo_common *)&fbinfo, in multiboot2_post_reloc()
727 BTINFO_FRAMEBUFFER, sizeof(fbinfo)); in multiboot2_post_reloc()
/netbsd-src/sys/arch/xen/x86/
H A Dconsinit.c156 const struct btinfo_framebuffer *fbinfo = NULL; local
168 fbinfo = xen_genfb_getbtinfo();
186 if (fbinfo && fbinfo->physaddr > 0) {
/netbsd-src/sys/arch/x86/pci/
H A Dpci_machdep.c1117 struct btinfo_framebuffer fbinfo; in populate_fbinfo() local
1131 memcpy(&fbinfo, fbptr, sizeof(fbinfo)); in populate_fbinfo()
1133 if (fbinfo.physaddr != 0) { in populate_fbinfo()
1134 prop_dictionary_set_uint32(dict, "width", fbinfo.width); in populate_fbinfo()
1135 prop_dictionary_set_uint32(dict, "height", fbinfo.height); in populate_fbinfo()
1136 prop_dictionary_set_uint8(dict, "depth", fbinfo.depth); in populate_fbinfo()
1137 prop_dictionary_set_uint16(dict, "linebytes", fbinfo.stride); in populate_fbinfo()
1139 prop_dictionary_set_uint64(dict, "address", fbinfo.physaddr); in populate_fbinfo()
1151 (fbinfo.flags & BI_FB_SPLASH) != 0); in populate_fbinfo()
1153 if (fbinfo.depth == 8) { in populate_fbinfo()
[all …]
/netbsd-src/usr.sbin/tpctl/
H A Dfb.c72 struct wsdisplay_fbinfo fbinfo; in fb_init() local
83 if (ioctl(fb->fd, WSDISPLAYIO_GINFO, &fbinfo) < 0 || in fb_init()
87 fb->conf.hf_width = fbinfo.width; in fb_init()
88 fb->conf.hf_height = fbinfo.height; in fb_init()
91 fb->conf.hf_bytes_per_plane = fbinfo.height * linebytes; in fb_init()
92 fb->conf.hf_pack_width = fbinfo.depth; in fb_init()
/netbsd-src/sys/arch/ews4800mips/sbd/
H A Dfb_sbdio.c270 struct wsdisplay_fbinfo *fbinfo = (void *)data; in _fb_ioctl() local
282 fbinfo->height = ri->ri_height; in _fb_ioctl()
283 fbinfo->width = ri->ri_width; in _fb_ioctl()
284 fbinfo->depth = ri->ri_depth; in _fb_ioctl()
285 fbinfo->cmsize = 256; in _fb_ioctl()
/netbsd-src/sys/arch/amiga/dev/
H A Dgrf.c551 struct wsdisplay_fbinfo *fbinfo; in grf_wsioctl() local
571 fbinfo = (struct wsdisplay_fbinfo *)data; in grf_wsioctl()
578 fbinfo->height = gi->gd_fbheight; in grf_wsioctl()
579 fbinfo->width = gi->gd_fbwidth; in grf_wsioctl()
580 fbinfo->depth = gi->gd_planes; in grf_wsioctl()
581 fbinfo->cmsize = gi->gd_colors; in grf_wsioctl()
H A Damidisplaycc.c1102 amidisplaycc_getfbinfo(struct amidisplaycc_softc *adp, struct wsdisplayio_fbinfo *fbinfo) in amidisplaycc_getfbinfo() argument
1115 memset(fbinfo, 0, sizeof(*fbinfo)); in amidisplaycc_getfbinfo()
1116 fbinfo->fbi_fbsize = bm->bytes_per_row * bm->rows * adp->gfxdepth; in amidisplaycc_getfbinfo()
1117 fbinfo->fbi_fboffset = 0; in amidisplaycc_getfbinfo()
1118 fbinfo->fbi_width = bm->bytes_per_row * 8; in amidisplaycc_getfbinfo()
1119 fbinfo->fbi_height = bm->rows; in amidisplaycc_getfbinfo()
1120 fbinfo->fbi_stride = bm->bytes_per_row; in amidisplaycc_getfbinfo()
1121 fbinfo->fbi_bitsperpixel = adp->gfxdepth; in amidisplaycc_getfbinfo()
1122 fbinfo->fbi_pixeltype = WSFB_CI; in amidisplaycc_getfbinfo()
1123 fbinfo->fbi_flags = 0; in amidisplaycc_getfbinfo()
[all …]
/netbsd-src/sys/dev/sun/
H A Dfbio.h115 struct fbinfo { struct
123 #define FBIOGINFO _IOR('F', 2, struct fbinfo) argument
/netbsd-src/sys/arch/sgimips/gio/
H A Dlight.c533 struct wsdisplay_fbinfo *fbinfo = (struct wsdisplay_fbinfo *)data; in light_ioctl() local
537 fbinfo->width = LIGHT_XRES; in light_ioctl()
538 fbinfo->height = LIGHT_YRES; in light_ioctl()
539 fbinfo->depth = LIGHT_DEPTH; in light_ioctl()
540 fbinfo->cmsize = 1 << LIGHT_DEPTH; in light_ioctl()
/netbsd-src/sys/arch/sparc64/sparc64/
H A Dnetbsd32_machdep.c612 #define FBIOGINFO _IOR('F', 2, struct fbinfo)