lkml.org 
[lkml]   [1999]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: FlashPoint card hanging system (BT-950)
On Sat, Oct 02, 1999 at 04:34:14PM -0500, William Lash wrote:
> I am not competely convinced that the way I added the udelay() call to the
> macros is 100% correct. I changed
>
> #define OS_InPortByte(port) inb(port)
>
> to:
>
> #define OS_InPortByte(port) (udelay(2),inb(port))

Better (more usual) is:

#define OS_InPortByte(port) do { udelay(2); inb(port); } while (0)

--
Matthew Wilcox <willy@bofh.ai>
"Windows and MacOS are products, contrived by engineers in the service of
specific companies. Unix, by contrast, is not so much a product as it is a
painstakingly compiled oral history of the hacker subculture." - N Stephenson

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.048 / U:0.624 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site