diff options
author | Scott Long <scottl@FreeBSD.org> | 2004-06-28 04:04:43 +0000 |
---|---|---|
committer | Scott Long <scottl@FreeBSD.org> | 2004-06-28 04:04:43 +0000 |
commit | 770fffe05b94b68fdc500ad613c890b8e6a116b8 (patch) | |
tree | a528e9f08902c170f779fffea566eb776bed5e3f /sys/sparc64 | |
parent | 8e0bfc6b3260e2c1e7af0b239edd421bd44f048a (diff) | |
download | src-770fffe05b94b68fdc500ad613c890b8e6a116b8.tar.gz src-770fffe05b94b68fdc500ad613c890b8e6a116b8.zip |
Retire BUS_DMAMAP_NSEGS for sparc64
Notes
Notes:
svn path=/head/; revision=131224
Diffstat (limited to 'sys/sparc64')
-rw-r--r-- | sys/sparc64/include/bus_private.h | 7 | ||||
-rw-r--r-- | sys/sparc64/sparc64/iommu.c | 3 |
2 files changed, 1 insertions, 9 deletions
diff --git a/sys/sparc64/include/bus_private.h b/sys/sparc64/include/bus_private.h index 55f6e531e6df..ba15cd908014 100644 --- a/sys/sparc64/include/bus_private.h +++ b/sys/sparc64/include/bus_private.h @@ -41,13 +41,6 @@ int sparc64_bus_mem_map(bus_space_tag_t, bus_space_handle_t, bus_size_t, int sparc64_bus_mem_unmap(void *, bus_size_t); bus_space_handle_t sparc64_fake_bustag(int, bus_addr_t, struct bus_space_tag *); -/* - * This is more or less arbitrary, except for the stack space consumed by - * the segments array. Choose more than ((BUS_SPACE_MAXSIZE / PAGE_SIZE) + 1), - * since in practice we could be map pages more than once. - */ -#define BUS_DMAMAP_NSEGS 64 - struct bus_dmamap_res { struct resource *dr_res; bus_size_t dr_used; diff --git a/sys/sparc64/sparc64/iommu.c b/sys/sparc64/sparc64/iommu.c index 08d172c5036a..13f2e23d971c 100644 --- a/sys/sparc64/sparc64/iommu.c +++ b/sys/sparc64/sparc64/iommu.c @@ -954,8 +954,7 @@ iommu_dvmamap_load_buffer(bus_dma_tag_t dt, struct iommu_state *is, } while (sgsize > 0) { sgcnt++; - if (sgcnt >= dt->dt_nsegments || - sgcnt >= BUS_DMAMAP_NSEGS) + if (sgcnt >= dt->dt_nsegments) return (EFBIG); /* * No extra alignment here - the common practice in the |