Brett Russ wrote:
Albert Lee wrote:

+    cgcr = readl(port_mmio(ap, PDC_GLOBAL_CTL));


I've read that read[bwl]() and write[bwl]() are deprecated and discouraged in new code and instead ioread{8,16,32}() and iowrite{8,16,32}() should be used. Is this the case?

ioread/write should only be used when the code in question may have to use either readl() or inl().

When a driver is written for hardware that is -always- used in MMIO mode, then readl() is preferred, since its faster.

        Jeff



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

Reply via email to