summaryrefslogtreecommitdiffstats
path: root/src/drivers/net/amd8111e.c
diff options
context:
space:
mode:
authorMarty Connor2007-07-04 11:52:56 +0200
committerMarty Connor2007-07-04 11:52:56 +0200
commit1af1668c95e43b55a23e06efe3720cd95ea02f33 (patch)
tree8ad69c7cebe75c6a702b8ba9c264389742a8700e /src/drivers/net/amd8111e.c
parentUNDI loader entry point implemented; seems to work. (diff)
downloadipxe-1af1668c95e43b55a23e06efe3720cd95ea02f33.tar.gz
ipxe-1af1668c95e43b55a23e06efe3720cd95ea02f33.tar.xz
ipxe-1af1668c95e43b55a23e06efe3720cd95ea02f33.zip
Warnings purge of drivers (continued)
Diffstat (limited to 'src/drivers/net/amd8111e.c')
-rw-r--r--src/drivers/net/amd8111e.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/drivers/net/amd8111e.c b/src/drivers/net/amd8111e.c
index 4078ae11..196ee50e 100644
--- a/src/drivers/net/amd8111e.c
+++ b/src/drivers/net/amd8111e.c
@@ -135,7 +135,6 @@ static void amd8111e_restart(struct amd8111e_priv *lp);
static void amd8111e_init_hw_default(struct amd8111e_priv *lp)
{
unsigned int reg_val;
- unsigned int logic_filter[2] = {0,};
void *mmio = lp->mmio;
/* stop the chip */
@@ -198,7 +197,8 @@ static void amd8111e_init_hw_default(struct amd8111e_priv *lp)
writew(MIB_CLEAR, mmio + MIB_ADDR);
/* Clear LARF */
- amd8111e_writeq(*(u64*)logic_filter, mmio + LADRF);
+ writel( 0, mmio + LADRF);
+ writel( 0, mmio + LADRF + 4);
/* SRAM_SIZE register */
reg_val = readl(mmio + SRAM_SIZE);
@@ -342,7 +342,7 @@ static void amd8111e_probe_ext_phy(struct amd8111e_priv *lp)
if (lp->ext_phy_id)
printf("Found MII PHY ID 0x%08x at address 0x%02x\n",
- lp->ext_phy_id, lp->ext_phy_addr);
+ (unsigned int) lp->ext_phy_id, lp->ext_phy_addr);
else
printf("Couldn't detect MII PHY, assuming address 0x01\n");
}