summaryrefslogtreecommitdiffstats
path: root/sys/pci/agpreg.h
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2004-08-09 21:01:49 +0000
committeranholt <anholt@FreeBSD.org>2004-08-09 21:01:49 +0000
commita5739e0b312cc41186678052f12b96495ddb074d (patch)
treef3b3c35dfc6bd122dc5a99495948cd28873393f1 /sys/pci/agpreg.h
parent1e00fe7b057fa9e2896700e40f006617e0d70e6c (diff)
downloadFreeBSD-src-a5739e0b312cc41186678052f12b96495ddb074d.zip
FreeBSD-src-a5739e0b312cc41186678052f12b96495ddb074d.tar.gz
Minimal fix to prevent crashes when an AGP v2 card is used with the new v3 VIA
chipsets, based on Linux's via-agp.c. On boot, the system selects which AGP version to use based on the inserted card. If v2 was chosen, the chipset needs to be programmed with the v2 registers still. Also included in kern/69953 are changes to make the programming of the v3 registers match linux, but that will be left out until the need to do so is confirmed (want specs or a tester). PR: kern/69953 Submitted by: Oleg Sharoiko <os@rsu.ru> Tested by: Oleg Sharoiko <os@rsu.ru>, Geoff Speicher <geoff@speicher.org> (full version from PR)
Diffstat (limited to 'sys/pci/agpreg.h')
-rw-r--r--sys/pci/agpreg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/pci/agpreg.h b/sys/pci/agpreg.h
index a5373e4..8d552a6 100644
--- a/sys/pci/agpreg.h
+++ b/sys/pci/agpreg.h
@@ -99,6 +99,7 @@
#define AGP3_VIA_GARTCTRL 0x90
#define AGP3_VIA_APSIZE 0x94
#define AGP3_VIA_ATTBASE 0x98
+#define AGP_VIA_AGPSEL 0xfd
/*
* Config offsets for SiS AGP chipsets.
OpenPOWER on IntegriCloud