Christoph Hellwig wrote:
On Tue, Oct 02, 2007 at 10:28:29PM -0400, Jeff Garzik wrote:
Incorrect. That is highly platform specific, with many using unsigned long, since the [non-x86] platform is generally pointing to a special memory region rather than directly using an x86-like instruction.

For port I/O we _do_ use int everywhere.

ioport_map() disagrees with you.
request_region disagrees with you.
release_region disagrees with you.
ia64 disagrees with you.
alpha disagrees with you.
sparc64 disagrees with you.
sh disagrees with you.
serial driver disagrees with you.
pcmcia disagrees with you.
net driver history disagrees with you.

It should also be self-evident from READING THE ARCH CODE that a 64-bit arch is allowed to fill in a 64-bit address in an IORESOURCE_IO struct resource.

Thus, unsigned long is the least common demoninator.

unsigned long is the ONLY way to guarantee portability.

Not all port I/O is hardcoded legacy ISA addresses.

        Jeff


-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to