1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-11 09:50:12 +00:00

Retire BUS_DMAMAP_NSEGS for sparc64

This commit is contained in:
Scott Long 2004-06-28 04:04:43 +00:00
parent 8e0bfc6b32
commit 770fffe05b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131224
2 changed files with 1 additions and 9 deletions

View File

@ -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;

View File

@ -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