Lines Matching defs:dc
142 macfb_clear(struct macfb_devconfig *dc)
147 rows = dc->dc_ht;
148 for (i = 0; rows-- > 0; i += dc->dc_rowbytes)
149 memset((u_char *)dc->dc_vaddr + dc->dc_offset + i,
150 0, dc->dc_rowbytes);
154 macfb_init(struct macfb_devconfig *dc)
159 macfb_clear(dc);
165 rap = &dc->dc_raster;
166 rap->width = dc->dc_wid;
167 rap->height = dc->dc_ht;
168 rap->depth = dc->dc_depth;
169 rap->linelongs = dc->dc_rowbytes / sizeof(u_int32_t);
170 rap->pixels = (u_int32_t *)(dc->dc_vaddr + dc->dc_offset);
173 rcp = &dc->dc_rcons;
180 macfb_stdscreen.nrows = dc->dc_rcons.rc_maxrow;
181 macfb_stdscreen.ncols = dc->dc_rcons.rc_maxcol;
246 struct macfb_devconfig *dc = sc->sc_dc;
251 *(int *)data = dc->dc_type;
256 wdf->height = dc->dc_raster.height;
257 wdf->width = dc->dc_raster.width;
258 wdf->depth = dc->dc_raster.depth;
282 struct macfb_devconfig *dc = sc->sc_dc;
286 offset < m68k_round_page(dc->dc_rowbytes * dc->dc_ht))
287 addr = m68k_btop(dc->dc_paddr + dc->dc_offset + offset);
334 struct macfb_devconfig *dc = &macfb_console_dc;
337 dc->dc_vaddr = m68k_trunc_page(mac68k_video.mv_kvaddr);
338 dc->dc_paddr = m68k_trunc_page(mac68k_video.mv_phys);
340 dc->dc_wid = mac68k_video.mv_width;
341 dc->dc_ht = mac68k_video.mv_height;
342 dc->dc_depth = mac68k_video.mv_depth;
343 dc->dc_rowbytes = mac68k_video.mv_stride;
345 dc->dc_size = (mac68k_video.mv_len > 0) ?
346 mac68k_video.mv_len : dc->dc_ht * dc->dc_rowbytes;
347 dc->dc_offset = m68k_page_offset(mac68k_video.mv_phys);
352 rcons_allocattr(&dc->dc_rcons, 0, 0, 0, &defattr);
354 wsdisplay_cnattach(&macfb_stdscreen, &dc->dc_rcons,
358 dc->isconsole = 1;