Lines Matching defs:fb
1 /* $NetBSD: fb.c,v 1.18 2024/12/21 17:40:11 tsutsui Exp $ */
40 * @(#)fb.c 8.1 (Berkeley) 6/11/93
44 * /dev/fb (indirect frame buffer driver).
48 __KERNEL_RCSID(0, "$NetBSD: fb.c,v 1.18 2024/12/21 17:40:11 tsutsui Exp $");
91 fb_attach(struct fbdevice *fb, int newpri)
95 devfb = fb;
128 * Common fb ioctl function
131 fbioctlfb(struct fbdevice *fb, u_long cmd, void *data)
133 struct fbdriver *fbd = fb->fb_driver;
140 *(struct fbtype *)vp = fb->fb_fbtype;
145 error = (*fbd->fbd_gattr)(fb, vp);
149 error = (*fbd->fbd_gvideo)(fb, vp);
153 error = (*fbd->fbd_svideo)(fb, vp);
157 error = (*fbd->fbd_getcmap)(fb, vp);
161 error = (*fbd->fbd_putcmap)(fb, vp);
197 fb_eeprom_setsize(struct fbdevice *fb)
228 fb->fb_fbtype.fb_width = w;
229 fb->fb_fbtype.fb_height = h;
232 fb->fb_name, szcode);
267 fb_pfour_get_video(struct fbdevice *fb)
270 return ((*fb->fb_pfour & P4_REG_VIDEO) != 0);
277 fb_pfour_set_video(struct fbdevice *fb, int on)
281 pfour = *fb->fb_pfour & ~(P4_REG_INTCLR|P4_REG_VIDEO);
282 *fb->fb_pfour = pfour | (on ? P4_REG_VIDEO : 0);
300 fb_pfour_setsize(struct fbdevice *fb)
305 if (fb->fb_pfour == 0)
308 p4 = *fb->fb_pfour;
321 fb->fb_fbtype.fb_width = w;
322 fb->fb_fbtype.fb_height = h;
325 fb->fb_name, p4size);