aboutsummaryrefslogtreecommitdiff
path: root/sys/x86/include
diff options
context:
space:
mode:
authorMitchell Horne <mhorne@FreeBSD.org>2023-12-06 23:08:13 +0000
committerMitchell Horne <mhorne@FreeBSD.org>2023-12-06 23:11:39 +0000
commit900907f4399f40f1088ea5f353b54c868daf630e (patch)
tree164f865e802239b15ccd06f4676aeaa02fed79d8 /sys/x86/include
parent7cb028deff6f46fbefa99f4f19882c69fd7cb883 (diff)
downloadsrc-900907f4399f40f1088ea5f353b54c868daf630e.tar.gz
src-900907f4399f40f1088ea5f353b54c868daf630e.zip
busdma: kill filter functionality internally
Address filter functions are unused, unsupported, and now rejected. Simplify some busdma code by removing filter functionality completely. Note that the chains of parent tags become useless, and will be cleaned up in the next commit. No functional change intended. Reviewed by: jhb Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D42894
Diffstat (limited to 'sys/x86/include')
-rw-r--r--sys/x86/include/busdma_impl.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/sys/x86/include/busdma_impl.h b/sys/x86/include/busdma_impl.h
index 4cc4b288c88a..4718c67dacc1 100644
--- a/sys/x86/include/busdma_impl.h
+++ b/sys/x86/include/busdma_impl.h
@@ -38,8 +38,6 @@ struct bus_dma_tag_common {
bus_addr_t boundary;
bus_addr_t lowaddr;
bus_addr_t highaddr;
- bus_dma_filter_t *filter;
- void *filterarg;
bus_size_t maxsize;
u_int nsegments;
bus_size_t maxsegsz;
@@ -53,8 +51,7 @@ struct bus_dma_tag_common {
struct bus_dma_impl {
int (*tag_create)(bus_dma_tag_t parent,
bus_size_t alignment, bus_addr_t boundary, bus_addr_t lowaddr,
- bus_addr_t highaddr, bus_dma_filter_t *filter,
- void *filterarg, bus_size_t maxsize, int nsegments,
+ bus_addr_t highaddr, bus_size_t maxsize, int nsegments,
bus_size_t maxsegsz, int flags, bus_dma_lock_t *lockfunc,
void *lockfuncarg, bus_dma_tag_t *dmat);
int (*tag_destroy)(bus_dma_tag_t dmat);
@@ -91,9 +88,8 @@ int bus_dma_run_filter(struct bus_dma_tag_common *dmat, vm_paddr_t paddr);
int common_bus_dma_tag_create(struct bus_dma_tag_common *parent,
bus_size_t alignment,
bus_addr_t boundary, bus_addr_t lowaddr, bus_addr_t highaddr,
- bus_dma_filter_t *filter, void *filterarg, bus_size_t maxsize,
- int nsegments, bus_size_t maxsegsz, int flags, bus_dma_lock_t *lockfunc,
- void *lockfuncarg, size_t sz, void **dmat);
+ bus_size_t maxsize, int nsegments, bus_size_t maxsegsz, int flags,
+ bus_dma_lock_t *lockfunc, void *lockfuncarg, size_t sz, void **dmat);
extern struct bus_dma_impl bus_dma_bounce_impl;