Thread (5 messages) flat view 5 messages, 4 authors, 2007-05-18

Re: [git patches] net driver updates

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2007-05-18 21:57:09
Also in: lkml

On Fri, 18 May 2007 23:46:21 +0200
Mariusz Koz__owski [off-list ref] wrote:
Hello, 
quoted
diff --git a/drivers/net/smc91x.h b/drivers/net/smc91x.h
index 7053026..111f23d 100644
--- a/drivers/net/smc91x.h
+++ b/drivers/net/smc91x.h
@@ -279,6 +279,40 @@ SMC_outw(u16 val, void __iomem *ioaddr, int reg)
...
quoted
+#define SMC_outb(v, a, r) __ __ __outw(((inw((a)+((r)&~1))*(0xff<<8*(r%2)))) | ((v)<<(8*(r&2)))), (a) + ((r)&~1))
This one has unbalanced parenthesis.
I dunno how you can tell - I can't count that high.

Can this be programmed in C, rather than in cpp?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help