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
> [email protected]
> 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: [email protected]
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 ([email protected])

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

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

Reply via email to