svn commit: r219897 - user/ed/newcons/sys/dev/vt/hw/vga
Ed Schouten
ed at FreeBSD.org
Wed Mar 23 06:31:46 UTC 2011
Author: ed
Date: Wed Mar 23 06:31:45 2011
New Revision: 219897
URL: http://svn.freebsd.org/changeset/base/219897
Log:
Chase KPI change in vga driver.
Modified:
user/ed/newcons/sys/dev/vt/hw/vga/vga.c
Modified: user/ed/newcons/sys/dev/vt/hw/vga/vga.c
==============================================================================
--- user/ed/newcons/sys/dev/vt/hw/vga/vga.c Wed Mar 23 06:19:17 2011 (r219896)
+++ user/ed/newcons/sys/dev/vt/hw/vga/vga.c Wed Mar 23 06:31:45 2011 (r219897)
@@ -569,15 +569,10 @@ vga_init(struct vt_device *vd)
struct vga_softc *sc = vd->vd_softc;
int textmode = 0;
-#if defined(__amd64__)
- sc->vga_fb_tag = AMD64_BUS_SPACE_MEM;
+#if defined(__amd64__) || defined(__i386__)
+ sc->vga_fb_tag = X86_BUS_SPACE_MEM;
sc->vga_fb_handle = KERNBASE + VGA_MEM_BASE;
- sc->vga_reg_tag = AMD64_BUS_SPACE_IO;
- sc->vga_reg_handle = VGA_REG_BASE;
-#elif defined(__i386__)
- sc->vga_fb_tag = I386_BUS_SPACE_MEM;
- sc->vga_fb_handle = KERNBASE + VGA_MEM_BASE;
- sc->vga_reg_tag = I386_BUS_SPACE_IO;
+ sc->vga_reg_tag = X86_BUS_SPACE_IO;
sc->vga_reg_handle = VGA_REG_BASE;
#else
# error "Architecture not yet supported!"
More information about the svn-src-user
mailing list