[...]
> + /* above 16 MB we use a bounce buffer as ISA-DMA is not possible */
> + if ((dma_addr + length) >= 0x1000000L) {
> + maxlen = PAGE_SIZE; /* sizeof(priv->dma_buf) */
> + dma_addr = virt_to_bus((volatile char *) priv->dma_buf);
> + }
> +
You can make this arch-independent by using ISA_DMA_THRESHOLD which is
defined in <asm/scatterlist.h>. This probably isn't a good place to keep
this definition, but it is there.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/