diff options
author | marcel <marcel@FreeBSD.org> | 2004-07-10 22:29:41 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2004-07-10 22:29:41 +0000 |
commit | 6660e9e4c036ddedee1dea43979df8f99db432a7 (patch) | |
tree | 569c7748c22c6a063892c171ce8c938b786c180d /sys/dev/gfb | |
parent | d86985b3e61f5ae382d55784f7eb9dddd70555fc (diff) | |
download | FreeBSD-src-6660e9e4c036ddedee1dea43979df8f99db432a7.zip FreeBSD-src-6660e9e4c036ddedee1dea43979df8f99db432a7.tar.gz |
Update for the KDB framework. Sanitize the alpha console code now that
it's in the way even more. Basicly: remove all alpha specific console
support from gfb(4), sio(4) and syscons(4). Rewrite the alpha console
initialization to be identical to all other platforms. In a nutshell:
call cninit().
The platform specific code now only sets or clears RB_SERIAL and thus
automaticly causes the right console to be selected.
sio.c:
o Replace the remote GDB hacks and use the GDB debug port interface
instead.
o Make debugging code conditional upon KDB instead of DDB.
o Call kdb_alt_break() instead of db_alt_break().
o Call kdb_enter() instead of breakpoint().
o Remove the ugly compatibility of using the console as the debug
port.
Diffstat (limited to 'sys/dev/gfb')
-rw-r--r-- | sys/dev/gfb/gfb_pci.c | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/sys/dev/gfb/gfb_pci.c b/sys/dev/gfb/gfb_pci.c index 3e22978..ba57878 100644 --- a/sys/dev/gfb/gfb_pci.c +++ b/sys/dev/gfb/gfb_pci.c @@ -32,9 +32,6 @@ __FBSDID("$FreeBSD$"); #include "opt_fb.h" -#include <sys/cdefs.h> -__FBSDID("$FreeBSD$"); - #include <sys/param.h> #include <sys/systm.h> #include <sys/kernel.h> @@ -66,23 +63,10 @@ __FBSDID("$FreeBSD$"); #include <dev/fb/gfb.h> #include <dev/gfb/gfb_pci.h> -#ifdef __alpha__ - -#include <machine/rpb.h> -#include <machine/cpu.h> - -#endif /* __alpha__ */ - #if 0 static devclass_t gfb_devclass; #endif -#ifdef __alpha__ - -extern void sccnattach(void); - -#endif /* __alpha__ */ - extern struct gfb_font bold8x16; extern struct gfb_softc *gfb_device_softcs[2][16]; @@ -93,9 +77,6 @@ pcigfb_attach(device_t dev) gfb_softc_t sc; video_adapter_t *adp; int unit, flags, error, rid, va_index; -#ifdef __alpha__ - struct ctb *ctb; -#endif /* __alpha__ */ s = splimp(); error = 0; @@ -136,7 +117,7 @@ pcigfb_attach(device_t dev) adp->va_mem_base = (vm_offset_t)rman_get_virtual(sc->res); adp->va_mem_size = rman_get_end(sc->res) - rman_get_start(sc->res); - adp->va_io_base = 0; + adp->va_io_base = (vm_offset_t)sc->res; /* XXX */ adp->va_io_size = 0; adp->va_crtc_addr = 0; gfb_device_softcs[sc->model][unit] = sc; @@ -191,19 +172,6 @@ pcigfb_attach(device_t dev) gfb_device_softcs[sc->model][unit] = sc; } - /* - This is a back-door for PCI devices--since FreeBSD no longer supports - PCI configuration-space accesses during the *configure() phase for - video adapters, we cannot identify a PCI device as the console during - the first call to sccnattach(). There must be a second chance for PCI - adapters to be recognized as the console, and this is it... - */ -#ifdef __alpha__ - ctb = (struct ctb *)(((caddr_t)hwrpb) + hwrpb->rpb_ctb_off); - if (ctb->ctb_term_type == 3) /* Display adapter */ - sccnattach(); -#endif /* __alpha__ */ - device_printf(dev, "Board type %s\n", sc->gfbc->name); device_printf(dev, "%d x %d, %dbpp, %s RAMDAC\n", sc->adp->va_info.vi_width, sc->adp->va_info.vi_height, |