Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/vt/hw/vga/vt_vga.c
Show All 36 Lines | |||||
#include <sys/kernel.h> | #include <sys/kernel.h> | ||||
#include <sys/systm.h> | #include <sys/systm.h> | ||||
#include <sys/bus.h> | #include <sys/bus.h> | ||||
#include <sys/module.h> | #include <sys/module.h> | ||||
#include <sys/rman.h> | #include <sys/rman.h> | ||||
#include <dev/vt/vt.h> | #include <dev/vt/vt.h> | ||||
#include <dev/vt/hw/vga/vt_vga_reg.h> | #include <dev/vt/hw/vga/vt_vga_reg.h> | ||||
#include <dev/pci/pcivar.h> | |||||
#include <machine/bus.h> | #include <machine/bus.h> | ||||
#if defined(__amd64__) || defined(__i386__) | #if defined(__amd64__) || defined(__i386__) | ||||
#include <vm/vm.h> | #include <vm/vm.h> | ||||
#include <vm/pmap.h> | #include <vm/pmap.h> | ||||
#include <machine/pmap.h> | #include <machine/pmap.h> | ||||
#include <machine/vmparam.h> | #include <machine/vmparam.h> | ||||
▲ Show 20 Lines • Show All 1,154 Lines • ▼ Show 20 Lines | |||||
{ | { | ||||
struct vga_softc *sc; | struct vga_softc *sc; | ||||
int textmode; | int textmode; | ||||
if (vd->vd_softc == NULL) | if (vd->vd_softc == NULL) | ||||
vd->vd_softc = (void *)&vga_conssoftc; | vd->vd_softc = (void *)&vga_conssoftc; | ||||
sc = vd->vd_softc; | sc = vd->vd_softc; | ||||
textmode = 0; | textmode = 0; | ||||
if (vd->vd_flags & VDF_DOWNGRADE && vd->vd_video_dev != NULL) | |||||
vga_pci_repost(vd->vd_video_dev); | |||||
#if defined(__amd64__) || defined(__i386__) | #if defined(__amd64__) || defined(__i386__) | ||||
sc->vga_fb_tag = X86_BUS_SPACE_MEM; | sc->vga_fb_tag = X86_BUS_SPACE_MEM; | ||||
sc->vga_fb_handle = KERNBASE + VGA_MEM_BASE; | sc->vga_fb_handle = KERNBASE + VGA_MEM_BASE; | ||||
sc->vga_reg_tag = X86_BUS_SPACE_IO; | sc->vga_reg_tag = X86_BUS_SPACE_IO; | ||||
sc->vga_reg_handle = VGA_REG_BASE; | sc->vga_reg_handle = VGA_REG_BASE; | ||||
#else | #else | ||||
# error "Architecture not yet supported!" | # error "Architecture not yet supported!" | ||||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |