Commit Diff


commit - bb20f6ed50c212dc9921372b127e5b0893225bf6
commit + bd8e4671151a368fcfc45f6fb41cd86841fc4723
blob - bee427e465a78f810cfa4875913607f5c05b8751
blob + b4fde5ad724120271a667c4f128880c192ad7971
--- sys/arch/amd64/pci/agp_machdep.c
+++ sys/arch/amd64/pci/agp_machdep.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: agp_machdep.c,v 1.15 2024/07/02 04:10:25 jsg Exp $	*/
+/*	$OpenBSD: agp_machdep.c,v 1.16 2024/07/02 04:29:01 jsg Exp $	*/
 
 /*
  * Copyright (c) 2008 - 2009 Owain G. Ainsworth <oga@openbsd.org>
@@ -44,19 +44,10 @@
 #include <sys/param.h>
 #include <sys/systm.h>
 
-#include <uvm/uvm_extern.h>
-
 #include <machine/cpufunc.h>
-#include <machine/pmap.h>
 
 void
 agp_flush_cache(void)
 {
 	wbinvd();
 }
-
-void
-agp_flush_cache_range(vaddr_t va, vsize_t sz)
-{
-	pmap_flush_cache(va, sz);
-}
blob - ef5232d5b435b34e7262a78fa29a04506b88ce8b
blob + e48463e6be93a44f4471c8b0c7bf3b320044944e
--- sys/arch/i386/pci/agp_machdep.c
+++ sys/arch/i386/pci/agp_machdep.c
@@ -1,4 +1,4 @@
-/*	$OpenBSD: agp_machdep.c,v 1.22 2024/07/02 04:10:25 jsg Exp $	*/
+/*	$OpenBSD: agp_machdep.c,v 1.23 2024/07/02 04:29:01 jsg Exp $	*/
 
 /*
  * Copyright (c) 2008 - 2009 Owain G. Ainsworth <oga@openbsd.org>
@@ -44,19 +44,10 @@
 #include <sys/param.h>
 #include <sys/systm.h>
 
-#include <uvm/uvm_extern.h>
-
 #include <machine/cpufunc.h>
-#include <machine/pmap.h>
 
 void
 agp_flush_cache(void)
 {
 	wbinvd();
 }
-
-void
-agp_flush_cache_range(vaddr_t va, vsize_t sz)
-{
-	pmap_flush_cache(va, sz);
-}
blob - c290f1bd09fce8937d483fe73809acc70f2318cf
blob + 2d0321fa2e41f77c63a3839239eeda9bcb32376e
--- sys/dev/pci/agpvar.h
+++ sys/dev/pci/agpvar.h
@@ -1,4 +1,4 @@
-/*	$OpenBSD: agpvar.h,v 1.36 2024/07/02 04:10:25 jsg Exp $	*/
+/*	$OpenBSD: agpvar.h,v 1.37 2024/07/02 04:29:01 jsg Exp $	*/
 /*	$NetBSD: agpvar.h,v 1.4 2001/10/01 21:54:48 fvdl Exp $	*/
 
 /*-
@@ -132,7 +132,6 @@ 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_enable(struct agp_softc *, u_int32_t);
 
 int	agp_alloc_dmamem(bus_dma_tag_t, size_t, bus_dmamap_t *,