From bd8e4671151a368fcfc45f6fb41cd86841fc4723 Mon Sep 17 00:00:00 2001 From: jsg Date: Tue, 2 Jul 2024 04:29:01 +0000 Subject: [PATCH] remove unused agp_flush_cache_range() --- sys/arch/amd64/pci/agp_machdep.c | 11 +---------- sys/arch/i386/pci/agp_machdep.c | 11 +---------- sys/dev/pci/agpvar.h | 3 +-- 3 files changed, 3 insertions(+), 22 deletions(-) diff --git a/sys/arch/amd64/pci/agp_machdep.c b/sys/arch/amd64/pci/agp_machdep.c index bee427e465a..b4fde5ad724 100644 --- a/sys/arch/amd64/pci/agp_machdep.c +++ b/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 @@ -44,19 +44,10 @@ #include #include -#include - #include -#include void agp_flush_cache(void) { wbinvd(); } - -void -agp_flush_cache_range(vaddr_t va, vsize_t sz) -{ - pmap_flush_cache(va, sz); -} diff --git a/sys/arch/i386/pci/agp_machdep.c b/sys/arch/i386/pci/agp_machdep.c index ef5232d5b43..e48463e6be9 100644 --- a/sys/arch/i386/pci/agp_machdep.c +++ b/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 @@ -44,19 +44,10 @@ #include #include -#include - #include -#include void agp_flush_cache(void) { wbinvd(); } - -void -agp_flush_cache_range(vaddr_t va, vsize_t sz) -{ - pmap_flush_cache(va, sz); -} diff --git a/sys/dev/pci/agpvar.h b/sys/dev/pci/agpvar.h index c290f1bd09f..2d0321fa2e4 100644 --- a/sys/dev/pci/agpvar.h +++ b/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 *, -- 2.20.1