diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-08 01:26:45 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2010-04-08 01:26:45 +0000 |
commit | 41e65217cf647a392a1ee8701db8e35a5a2e4a85 (patch) | |
tree | ecaf1795a505d41830ae6836d784ff65b8b7a65b /sys/dev/pci/agpvar.h | |
parent | 8d29d4182b507adfa3eef84e51b3fe8848024326 (diff) |
Fill in the bus_dma_sync for intagp to use clflush instead of wbinvd()
if supported.
When we do memory management on intel this would lead to a LOT of
wbinvd() to deal with gpu->cpu incoherency. no one wants that.
Needed for sanity of inteldrm memory management which is coming up next.
Diffstat (limited to 'sys/dev/pci/agpvar.h')
-rw-r--r-- | sys/dev/pci/agpvar.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/agpvar.h b/sys/dev/pci/agpvar.h index 5bc6a6ee5fe..e9a3bb0ab37 100644 --- a/sys/dev/pci/agpvar.h +++ b/sys/dev/pci/agpvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: agpvar.h,v 1.20 2009/06/06 06:02:44 oga Exp $ */ +/* $OpenBSD: agpvar.h,v 1.21 2010/04/08 01:26:44 oga Exp $ */ /* $NetBSD: agpvar.h,v 1.4 2001/10/01 21:54:48 fvdl Exp $ */ /*- @@ -158,6 +158,7 @@ struct agp_gatt * agp_alloc_gatt(bus_dma_tag_t, u_int32_t); void agp_free_gatt(bus_dma_tag_t, struct agp_gatt *); void agp_flush_cache(void); +void agp_flush_cache_range(vaddr_t, vsize_t); int agp_generic_bind_memory(struct agp_softc *, struct agp_memory *, bus_size_t); int agp_generic_unbind_memory(struct agp_softc *, struct agp_memory *); |