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

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

 



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);
}

> #define outb_p(x, addr)	outb((x), (addr))
> #define outw_p(x, addr)	outw((x), (addr))
> #define outl_p(x, addr)	outl((x), (addr))
> 
> So they appear to be equivalent but I want to make sure I'm
> not missing something.
> 
> Regards,
> Hartley
> 
> _______________________________________________
> devel mailing list
> devel@xxxxxxxxxxxxxxxxxxxxxx
> http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


-- 
Robert Berger
Embedded Software Specialist

Reliable Embedded Systems
Consulting Training Engineering
Tel.: (+30) 697 266 6668
Fax.:(+30) 210 684 7881
email: robert.berger@xxxxxxxxxxxxxxxxxxxxxxxxxxx
URL: http://www.reliableembeddedsystems.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
..."I believe it was Andrew Koenig who commented that purists who accept
no compromises in programming languages use either machine code or
lambda calculus :-)" - Kevlin A P Henney (kevlin@xxxxxxxxxxxxxxxxxx)

My public pgp key is available at:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x90320BF1

_______________________________________________
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