64bit dma_addr_t (was: Emu10k1 SPDIF ...)

Daniel Bertrand (d.bertrand@ieee.org)
Fri, 01 Mar 2002 22:38:51 -0800 (PST)


Hi,

Sorry to beat a dead horse, but wouldn't it be better if sizes didn't
change within the same CPU arch? I don't see how binary-only modules can
ever work reliably if the size of types change depending on people's
.config file. (not that I use any binary-only modules :-).

Is this a common thing done in the kernel? For dma_addr_t, why not just
have it always be 64bit?

On Thu, 28 Feb 2002, David S. Miller wrote:

> From: Alan Cox <alan@lxorguk.ukuu.org.uk>
> Date: Fri, 1 Mar 2002 01:07:27 +0000 (GMT)
>
> The cast befor ethe cpu_to_ is safe if its 32bit I/O only. Maybe we should
> have cpu_to_le_dma_addr_t 8)
>
> Actually, the cast to 32-bit is safe if you've set your DMA mask
> properly :-)
>

-- 
Daniel Bertrand

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