UIO support for >32-bit physical addresses on 32-bit platforms

From: Kumar Gala
Date: Tue Feb 23 2010 - 09:54:46 EST


Hans, Greg,

We are looking at using UIO for some driver work and noticed it assumes the address for MMIO regions is an 'unsigned long'. This is a problem for the platforms we have in which we support a 36-bit physical address in a 32-bit machine.

Should we just change addr/size in struct uio_mem to u64 always? At first I was thinking phys_addr_t but realized the addr could be PHYS, LOGICAL, or VIRTUAL.

- k

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/