RE: Q: {in,out}[bwl]_p vs. {in,out}[bwp]

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

 



On Thursday, July 19, 2012 12:31 PM, Robert Berger wrote:
> On 07/19/2012 09:41 PM, H Hartley Sweeten wrote:
>> Hello all,
>> 
>> Does anyone know what the difference is between inb_p and inb?
>> 
>> include/asm-generic/io.h has this:
>> 
>> #define inb_p(addr)	inb(addr)
>> #define inw_p(addr)	inw(addr)
>> #define inl_p(addr)	inl(addr)
>
> There might be a difference for m32r
>
> arch/m32r/include/asm/io.h:
>
> #define inb_p   _inb_p
>
> arch/m32r/platforms/mappi3/io.c:
>
> unsigned char _inb_p(unsigned long port)
> {
>          unsigned char v = _inb(port);
>          delay();
>          return (v);
> }

Ah... it's a system dependent i/o operation with a pause.

The asm-generic implementation just doesn't have the pause.

Thanks,
Hartley

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux