> tag 263756 patch
> thanks
> 
> I propose to replace the text of the relevent paragraph (CONFORMING
> TO) with:
> 
>        outb and friends are hardware specific.  The value argument is
>        passed secand and the port argument is passed first, which
>        is the opposite order from most DOS implementations.
> 
> (as per: /usr/include/asm/io.h)

Hi Justin,

I do not really know the answer on this point, but how do
you deduce this order from that header file?

Some grepping of kernel sources seems to indicate to me that
the order is outb(value, port).  Also in /usr/include/sys/io.h 
I see:

static __inline void
outb (unsigned char value, unsigned short int port)
{
  __asm__ __volatile__ ("outb %b0,%w1": :"a" (value), "Nd" (port));
}


And finally in the 1e of Linux Device Drivers that I have to 
hand, on p164 I see:

voiud(outb, unsigned char byte, unsigned port);

But perhaps I am missing something?

Cheers,

Michael

-- 
Michael Kerrisk
maintainer of Linux man pages Sections 2, 3, 4, 5, and 7 

Want to help with man page maintenance?  Grab the latest
tarball at ftp://ftp.win.tue.nl/pub/linux-local/manpages/
and grep the source files for 'FIXME'.

5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to