{ int i; for (i = 0; i < 256; i++) { vgafb_setcolor(i, 255,255,255); } } vgafb_setcolor(WSCOL_BLACK, 0, 0, 0); vgafb_setcolor(255, 255, 255, 255); vgafb_setcolor(WSCOL_RED, 255, 0, 0); vgafb_setcolor(WSCOL_GREEN, 0, 255, 0); vgafb_setcolor(WSCOL_BROWN, 154, 85, 46); vgafb_setcolor(WSCOL_BLUE, 0, 0, 255); vgafb_setcolor(WSCOL_MAGENTA, 255, 255, 0); vgafb_setcolor(WSCOL_CYAN, 0, 255, 255); vgafb_setcolor(WSCOL_WHITE, 255, 255, 255);
vgafb_cnattach(iot, memt, pc, bus, device, function)	void * pc;	bus_space_tag_t iot, memt;	int bus, device, function;{        long defattr;	struct vgafb_devconfig *dc = &vgafb_console_dc;        struct rcons *ri = &dc->dc_ri;	ri->rc_sp = &vgafb_raster;	ri->rc_sp->width = cons_width;	ri->rc_sp->height = cons_height;	ri->rc_sp->depth = cons_depth;	ri->rc_sp->linelongs = cons_linebytes /4; /* XXX */	ri->rc_sp->pixels = (void *)cons_display_mem_h;	ri->rc_crow = ri->rc_ccol = -1;	ri->rc_crowp = &ri->rc_crow;	ri->rc_ccolp = &ri->rc_ccol;	rcons_init(ri, 160, 160);	vgafb_stdscreen.nrows = ri->rc_maxrow;	vgafb_stdscreen.ncols = ri->rc_maxcol;	vgafb_stdscreen.textops = &vgafb_emulops;	rcons_alloc_attr(ri, 0, 0, 0, &defattr);	#if 0	{		int i;		for (i = 0; i < cons_width * cons_height; i++) {			bus_space_write_1(cons_membus,				cons_display_mem_h, i, 0x1);		}	}	#endif	wsdisplay_cnattach(&vgafb_stdscreen, ri, 0, 0, defattr);}