diff options
Diffstat (limited to 'sys/arch/sparc/dev/agten.c')
-rw-r--r-- | sys/arch/sparc/dev/agten.c | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/sys/arch/sparc/dev/agten.c b/sys/arch/sparc/dev/agten.c index ac7afb65780..675a3578da3 100644 --- a/sys/arch/sparc/dev/agten.c +++ b/sys/arch/sparc/dev/agten.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agten.c,v 1.5 2003/06/28 17:05:33 miod Exp $ */ +/* $OpenBSD: agten.c,v 1.6 2004/11/29 22:07:36 miod Exp $ */ /* * Copyright (c) 2002, 2003, Miodrag Vallat. * All rights reserved. @@ -105,18 +105,6 @@ struct agten_softc { int sc_nscreens; }; -struct wsscreen_descr agten_stdscreen = { - "std", -}; - -const struct wsscreen_descr *agten_scrlist[] = { - &agten_stdscreen, -}; - -struct wsscreen_list agten_screenlist = { - sizeof(agten_scrlist) / sizeof(struct wsscreen_descr *), agten_scrlist -}; - int agten_ioctl(void *, u_long, caddr_t, int, struct proc *); int agten_alloc_screen(void *, const struct wsscreen_descr *, void **, int *, int *, long *); @@ -172,7 +160,6 @@ agtenattach(struct device *parent, struct device *self, void *args) { struct agten_softc *sc = (struct agten_softc *)self; struct confargs *ca = args; - struct wsemuldisplaydev_attach_args waa; int node, isconsole; char *nam; @@ -227,23 +214,13 @@ agtenattach(struct device *parent, struct device *self, void *args) fbwscons_init(&sc->sc_sunfb, isconsole ? 0 : RI_CLEAR); fbwscons_setcolormap(&sc->sc_sunfb, agten_setcolor); - agten_stdscreen.capabilities = sc->sc_sunfb.sf_ro.ri_caps; - agten_stdscreen.nrows = sc->sc_sunfb.sf_ro.ri_rows; - agten_stdscreen.ncols = sc->sc_sunfb.sf_ro.ri_cols; - agten_stdscreen.textops = &sc->sc_sunfb.sf_ro.ri_ops; - if (isconsole) { - fbwscons_console_init(&sc->sc_sunfb, &agten_stdscreen, -1, - NULL); + fbwscons_console_init(&sc->sc_sunfb, -1, NULL); } sbus_establish(&sc->sc_sd, &sc->sc_sunfb.sf_dev); - waa.console = isconsole; - waa.scrdata = &agten_screenlist; - waa.accessops = &agten_accessops; - waa.accesscookie = sc; - config_found(self, &waa, wsemuldisplaydevprint); + fbwscons_attach(&sc->sc_sunfb, &agten_accessops, isconsole); } int |