Re: [PATCH 21/21] advansys: Changes to work on parisc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux