WSCOL_WHITE, WSCOL_BLACK, WSATTR_WSCOLORS, &defattr);
WSCOL_BLACK, WSCOL_WHITE, WSATTR_WSCOLORS, &defattr);
vgafbattach(parent, self, aux)	struct device *parent, *self;	void *aux;{	struct vgafb_softc *sc = (struct vgafb_softc *)self;	struct pci_attach_args *pa = aux;	struct wsemuldisplaydev_attach_args waa;	long defattr;	sc->sc_mem_t = pa->pa_memt;	sc->sc_io_t = pa->pa_iot;	sc->sc_node = PCITAG_NODE(pa->pa_tag);	sc->sc_pcitag = pa->pa_tag;	sc->sc_depth = getpropint(sc->sc_node, "depth", -1);	if (sc->sc_depth == -1)		sc->sc_depth = 8;	sc->sc_linebytes = getpropint(sc->sc_node, "linebytes", -1);	if (sc->sc_linebytes == -1)		sc->sc_linebytes = 1152;	sc->sc_height = getpropint(sc->sc_node, "height", -1);	if (sc->sc_height == -1)		sc->sc_height = 900;	sc->sc_width = getpropint(sc->sc_node, "width", -1);	if (sc->sc_width == -1)		sc->sc_width = 1152;	sc->sc_console = vgafb_is_console(sc->sc_node);	if (vgafb_mapregs(sc, pa))		return;	if (sc->sc_depth == 24) {		/* Depth is 24, but rasops really wants bpp */		sc->sc_rasops.ri_depth = 32;		/* PROM gets linebytes wrong, ignore it. */		sc->sc_rasops.ri_stride =		    (sc->sc_rasops.ri_depth / 8) * sc->sc_width;	} else {		sc->sc_rasops.ri_depth = sc->sc_depth;		sc->sc_rasops.ri_stride = sc->sc_linebytes;	}	sc->sc_rasops.ri_flg = RI_CENTER | RI_BSWAP;	sc->sc_rasops.ri_bits = (void *)bus_space_vaddr(sc->sc_mem_t,	    sc->sc_mem_h);	sc->sc_rasops.ri_width = sc->sc_width;	sc->sc_rasops.ri_height = sc->sc_height;	sc->sc_rasops.ri_hw = sc;	rasops_init(&sc->sc_rasops,	    a2int(getpropstring(optionsnode, "screen-#rows"), 34),	    a2int(getpropstring(optionsnode, "screen-#columns"), 80));	vgafb_stdscreen.nrows = sc->sc_rasops.ri_rows;	vgafb_stdscreen.ncols = sc->sc_rasops.ri_cols;	vgafb_stdscreen.textops = &sc->sc_rasops.ri_ops;	sc->sc_rasops.ri_ops.alloc_attr(&sc->sc_rasops,	    WSCOL_WHITE, WSCOL_BLACK, WSATTR_WSCOLORS, &defattr);	printf("\n");	if (sc->sc_console) {		sc->sc_ofhandle = OF_stdout();		if (sc->sc_depth == 8) {			vgafb_setcolor(sc, WSCOL_BLACK, 0, 0, 0);			vgafb_setcolor(sc, 255, 255, 255, 255);			vgafb_setcolor(sc, WSCOL_RED, 255, 0, 0);			vgafb_setcolor(sc, WSCOL_GREEN, 0, 255, 0);			vgafb_setcolor(sc, WSCOL_BROWN, 154, 85, 46);			vgafb_setcolor(sc, WSCOL_BLUE, 0, 0, 255);			vgafb_setcolor(sc, WSCOL_MAGENTA, 255, 255, 0);			vgafb_setcolor(sc, WSCOL_CYAN, 0, 255, 255);			vgafb_setcolor(sc, WSCOL_WHITE, 255, 255, 255);		}		if (romgetcursoraddr(&sc->sc_crowp, &sc->sc_ccolp))			sc->sc_ccolp = sc->sc_crowp = NULL;		if (sc->sc_ccolp != NULL)			sc->sc_rasops.ri_ccol = *sc->sc_ccolp;		if (sc->sc_crowp != NULL)			sc->sc_rasops.ri_crow = *sc->sc_crowp;		sc->sc_rasops.ri_updatecursor = vgafb_updatecursor;		wsdisplay_cnattach(&vgafb_stdscreen, &sc->sc_rasops,		    sc->sc_rasops.ri_ccol, sc->sc_rasops.ri_crow, defattr);	}	waa.console = sc->sc_console;	waa.scrdata = &vgafb_screenlist;	waa.accessops = &vgafb_accessops;	waa.accesscookie = sc;	config_found(self, &waa, wsemuldisplaydevprint);	return;}