Lines Matching refs:fbconf
381 hpcfb_cnattach(struct hpcfb_fbconf *fbconf)
390 if (fbconf == NULL) {
394 fbconf = &__fbconf;
398 if (hpcfb_init(fbconf, &hpcfb_console_dc) != 0)
417 if (fbconf == &__fbconf)
430 hpcfb_init(struct hpcfb_fbconf *fbconf, struct hpcfb_devconfig *dc)
435 fbaddr = (vaddr_t)fbconf->hf_baseaddr;
441 ri->ri_depth = fbconf->hf_pixel_width;
443 ri->ri_width = fbconf->hf_width;
444 ri->ri_height = fbconf->hf_height;
445 ri->ri_stride = fbconf->hf_bytes_per_line;
456 if (32 <= fbconf->hf_pack_width &&
457 (fbconf->hf_order_flags & HPCFB_REVORDER_BYTE) &&
458 (fbconf->hf_order_flags & HPCFB_REVORDER_WORD)) {
463 if (fbconf->hf_order_flags & HPCFB_REVORDER_BYTE) {
475 if (fbconf->hf_class == HPCFB_CLASS_RGBCOLOR) {
476 ri->ri_rnum = fbconf->hf_u.hf_rgb.hf_red_width;
477 ri->ri_rpos = fbconf->hf_u.hf_rgb.hf_red_shift;
478 ri->ri_gnum = fbconf->hf_u.hf_rgb.hf_green_width;
479 ri->ri_gpos = fbconf->hf_u.hf_rgb.hf_green_shift;
480 ri->ri_bnum = fbconf->hf_u.hf_rgb.hf_blue_width;
481 ri->ri_bpos = fbconf->hf_u.hf_rgb.hf_blue_shift;
490 hpcfb_cmap_reorder (fbconf, dc);
511 hpcfb_cmap_reorder(struct hpcfb_fbconf *fbconf, struct hpcfb_devconfig *dc)
514 int reverse = fbconf->hf_access_flags & HPCFB_ACCESS_REVERSE;
524 switch (fbconf->hf_pixel_width) {