I would suggest something like:
void *
dev_alloc_consistent(struct device * dev, size_t size, dma_addr_t * dma_handle);
and moving dma_mask to struct device.
To handle differences in arch-specific implementations, we could have a
callback that the generic code calls.
Implementing the generic code is ~5 minutes work. However, it will break
everything. OTOH, it would be the best motivation for modernizing these
drivers...
-pat
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/