Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16858
b: refs/heads/master
c: 0d5affc
h: refs/heads/master
v: v3
  • Loading branch information
Lennert Buytenhek authored and Linus Torvalds committed Jan 9, 2006
1 parent d45a128 commit 5ce9801
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: fc8c7d79b117f7a5b17640bf657d95afe4025bb8
refs/heads/master: 0d5affcfe23ade8c4c01154e7e381e2a9a916399
20 changes: 10 additions & 10 deletions trunk/drivers/net/cs89x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,29 +339,29 @@ struct net_device * __init cs89x0_probe(int unit)
#endif

static int
readreg(struct net_device *dev, int portno)
readword(unsigned long base_addr, int portno)
{
outw(portno, dev->base_addr + ADD_PORT);
return inw(dev->base_addr + DATA_PORT);
return inw(base_addr + portno);
}

static void
writereg(struct net_device *dev, int portno, int value)
writeword(unsigned long base_addr, int portno, int value)
{
outw(portno, dev->base_addr + ADD_PORT);
outw(value, dev->base_addr + DATA_PORT);
outw(value, base_addr + portno);
}

static int
readword(unsigned long base_addr, int portno)
readreg(struct net_device *dev, int portno)
{
return inw(base_addr + portno);
outw(portno, dev->base_addr + ADD_PORT);
return inw(dev->base_addr + DATA_PORT);
}

static void
writeword(unsigned long base_addr, int portno, int value)
writereg(struct net_device *dev, int portno, int value)
{
outw(value, base_addr + portno);
outw(portno, dev->base_addr + ADD_PORT);
outw(value, dev->base_addr + DATA_PORT);
}

static int __init
Expand Down

0 comments on commit 5ce9801

Please sign in to comment.