From 10557b15d78b4ef9ce8ea283eb91e95f672b3ff1 Mon Sep 17 00:00:00 2001 From: thorpej Date: Sat, 3 Oct 1998 21:24:00 +0000 Subject: [PATCH] Add a private bounce threshold to the DMA map, initialized in a bus-dependent fashion. --- sys/arch/bebox/include/bus.h | 3 ++- sys/arch/i386/include/bus.h | 3 ++- sys/arch/macppc/include/bus.h | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/sys/arch/bebox/include/bus.h b/sys/arch/bebox/include/bus.h index cc4d1053cfa4..4fae98f53df6 100644 --- a/sys/arch/bebox/include/bus.h +++ b/sys/arch/bebox/include/bus.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.16 1998/09/01 05:57:23 sakamoto Exp $ */ +/* $NetBSD: bus.h,v 1.17 1998/10/03 21:24:00 thorpej Exp $ */ /* $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $ */ /*- @@ -1060,6 +1060,7 @@ struct bebox_bus_dmamap { int _dm_segcnt; /* number of segs this map can map */ bus_size_t _dm_maxsegsz; /* largest possible segment */ bus_size_t _dm_boundary; /* don't cross this */ + bus_addr_t _dm_bounce_thresh; /* bounce threshold; see tag */ int _dm_flags; /* misc. flags */ void *_dm_cookie; /* cookie for bus-specific functions */ diff --git a/sys/arch/i386/include/bus.h b/sys/arch/i386/include/bus.h index 8a9014b581ab..314d727ef5d8 100644 --- a/sys/arch/i386/include/bus.h +++ b/sys/arch/i386/include/bus.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.21 1998/08/30 23:40:14 cgd Exp $ */ +/* $NetBSD: bus.h,v 1.22 1998/10/03 21:24:00 thorpej Exp $ */ /*- * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc. @@ -1073,6 +1073,7 @@ struct i386_bus_dmamap { int _dm_segcnt; /* number of segs this map can map */ bus_size_t _dm_maxsegsz; /* largest possible segment */ bus_size_t _dm_boundary; /* don't cross this */ + bus_addr_t _dm_bounce_thresh; /* bounce threshold; see tag */ int _dm_flags; /* misc. flags */ void *_dm_cookie; /* cookie for bus-specific functions */ diff --git a/sys/arch/macppc/include/bus.h b/sys/arch/macppc/include/bus.h index 4864e282b9df..739dd9fc7aea 100644 --- a/sys/arch/macppc/include/bus.h +++ b/sys/arch/macppc/include/bus.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.4 1998/08/21 16:13:28 tsubai Exp $ */ +/* $NetBSD: bus.h,v 1.5 1998/10/03 21:24:00 thorpej Exp $ */ /* $OpenBSD: bus.h,v 1.1 1997/10/13 10:53:42 pefo Exp $ */ /*- @@ -863,6 +863,7 @@ struct macppc_bus_dmamap { int _dm_segcnt; /* number of segs this map can map */ bus_size_t _dm_maxsegsz; /* largest possible segment */ bus_size_t _dm_boundary; /* don't cross this */ + bus_addr_t _dm_bounce_thresh; /* bounce threshold; see tag */ int _dm_flags; /* misc. flags */ void *_dm_cookie; /* cookie for bus-specific functions */