aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/agp
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2005-12-20 22:45:24 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2005-12-20 22:45:24 +0000
commit33181681c79b24b08815f339efcd0eaa87960b35 (patch)
treedc83b908f55ffdfdc380da1d85758056e5b6a6b4 /sys/dev/agp
parente9aa66d283ffab59006ac183b8788b3630178717 (diff)
Notes
Diffstat (limited to 'sys/dev/agp')
-rw-r--r--sys/dev/agp/agpreg.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/dev/agp/agpreg.h b/sys/dev/agp/agpreg.h
index 8e5365e952f6f..7786efe5fa529 100644
--- a/sys/dev/agp/agpreg.h
+++ b/sys/dev/agp/agpreg.h
@@ -32,18 +32,12 @@
/*
* Offsets for various AGP configuration registers.
*/
-#define AGP_APBASE 0x10
-#define AGP_CAPPTR 0x34
+#define AGP_APBASE PCIR_BAR(0)
/*
* Offsets from the AGP Capability pointer.
*/
#define AGP_CAPID 0x0
-#define AGP_CAPID_GET_MAJOR(x) (((x) & 0x00f00000U) >> 20)
-#define AGP_CAPID_GET_MINOR(x) (((x) & 0x000f0000U) >> 16)
-#define AGP_CAPID_GET_NEXT_PTR(x) (((x) & 0x0000ff00U) >> 8)
-#define AGP_CAPID_GET_CAP_ID(x) (((x) & 0x000000ffU) >> 0)
-
#define AGP_STATUS 0x4
#define AGP_COMMAND 0x8
#define AGP_STATUS_AGP3 0x0008