diff options
| author | matt <matt@NetBSD.org> | 2005-03-09 19:04:43 +0000 |
|---|---|---|
| committer | matt <matt@NetBSD.org> | 2005-03-09 19:04:43 +0000 |
| commit | a6db24a4856ab5a184641f08735ea8da9cd43de2 (patch) | |
| tree | 2a5d2a2e63e26cf76cd63136beab9018964ae61a /sys/arch/atari/include | |
| parent | 0b156a59462a13c8a5d36b2794e8cf63f13b415a (diff) | |
Add a dm_maxsegsz public member to bus_dmamap_t. This allows a user of the API
to select the maximum segment size for each bus_dmamap_load (up to the maxsegsz
supplied to bus_dmamap_create). dm_maxsegsz is reset to the value supplied to
bus_dmamap_create when the dmamap is unloaded.
Diffstat (limited to 'sys/arch/atari/include')
| -rw-r--r-- | sys/arch/atari/include/bus.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/arch/atari/include/bus.h b/sys/arch/atari/include/bus.h index 8e41130b6f4..6c4e4c5f3a7 100644 --- a/sys/arch/atari/include/bus.h +++ b/sys/arch/atari/include/bus.h @@ -1,4 +1,4 @@ -/* $NetBSD: bus.h,v 1.31 2003/11/10 08:51:51 wiz Exp $ */ +/* $NetBSD: bus.h,v 1.32 2005/03/09 19:04:43 matt Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -661,7 +661,7 @@ struct atari_bus_dmamap { */ bus_size_t _dm_size; /* largest DMA transfer mappable */ int _dm_segcnt; /* number of segs this map can map */ - bus_size_t _dm_maxsegsz; /* largest possible segment */ + bus_size_t _dm_maxmaxsegsz; /* fixed 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 */ @@ -671,6 +671,7 @@ struct atari_bus_dmamap { /* * PUBLIC MEMBERS: these are used by machine-independent code. */ + bus_size_t dm_maxsegsz; /* largest possible segment */ bus_size_t dm_mapsize; /* size of the mapping */ int dm_nsegs; /* # valid segments in mapping */ bus_dma_segment_t dm_segs[1]; /* segments; variable length */ |
