summaryrefslogtreecommitdiff
path: root/sys/dev/pci/agpvar.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2013-03-18 12:02:57 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2013-03-18 12:02:57 +0000
commitc48141c1d8bd41bf9e7298c54917eaa386e56689 (patch)
treeb03551f50ae5a22061ea287912b2c7bebcd70116 /sys/dev/pci/agpvar.h
parent47cc57cd9ac7419f42bd6f58e522c4c100be929b (diff)
Indirectly pass the cache level down to agp by abusing spare bus_dma bits.
Currently only used on gen6+, everything else keeps the old semantics.
Diffstat (limited to 'sys/dev/pci/agpvar.h')
-rw-r--r--sys/dev/pci/agpvar.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sys/dev/pci/agpvar.h b/sys/dev/pci/agpvar.h
index c86124158f1..556d019d250 100644
--- a/sys/dev/pci/agpvar.h
+++ b/sys/dev/pci/agpvar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: agpvar.h,v 1.25 2013/03/18 11:14:44 jsg Exp $ */
+/* $OpenBSD: agpvar.h,v 1.26 2013/03/18 12:02:56 jsg Exp $ */
/* $NetBSD: agpvar.h,v 1.4 2001/10/01 21:54:48 fvdl Exp $ */
/*-
@@ -43,6 +43,11 @@
#define AGPUNIT(x) minor(x)
+/* we can't use the BUS_DMA_NOCACHE here or it won't get mapped via the gtt */
+#define BUS_DMA_GTT_NOCACHE (1 << 30)
+#define BUS_DMA_GTT_CACHE_LLC (1 << 29)
+#define BUS_DMA_GTT_CACHE_LLC_MLC (1 << 28)
+
struct agp_attach_args {
char *aa_busname;
struct pci_attach_args *aa_pa;