Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42214
b: refs/heads/master
c: 1be3770
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Herrenschmidt authored and Paul Mackerras committed Dec 4, 2006
1 parent 2f21318 commit 322774f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 4c75a6f441cdd1c69a6c173bc7944e12c2ba6f84
refs/heads/master: 1be3770aa9220324e54851d1be7c879942f79620
6 changes: 4 additions & 2 deletions trunk/drivers/net/ibm_emac/ibm_emac_mal.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/netdevice.h>

#include <asm/io.h>
#include <asm/dcr.h>

/*
* These MAL "versions" probably aren't the real versions IBM uses for these
Expand Down Expand Up @@ -191,6 +192,7 @@ struct mal_commac {

struct ibm_ocp_mal {
int dcrbase;
dcr_host_t dcrhost;

struct list_head poll_list;
struct net_device poll_dev;
Expand All @@ -207,12 +209,12 @@ struct ibm_ocp_mal {

static inline u32 get_mal_dcrn(struct ibm_ocp_mal *mal, int reg)
{
return mfdcr(mal->dcrbase + reg);
return dcr_read(mal->dcrhost, mal->dcrbase + reg);
}

static inline void set_mal_dcrn(struct ibm_ocp_mal *mal, int reg, u32 val)
{
mtdcr(mal->dcrbase + reg, val);
dcr_write(mal->dcrhost, mal->dcrbase + reg, val);
}

/* Register MAL devices */
Expand Down

0 comments on commit 322774f

Please sign in to comment.