diff options
| author | Marty Connor | 2007-07-04 11:52:56 +0200 |
|---|---|---|
| committer | Marty Connor | 2007-07-04 11:52:56 +0200 |
| commit | 1af1668c95e43b55a23e06efe3720cd95ea02f33 (patch) | |
| tree | 8ad69c7cebe75c6a702b8ba9c264389742a8700e /src/drivers/net/amd8111e.c | |
| parent | UNDI loader entry point implemented; seems to work. (diff) | |
| download | ipxe-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.c | 6 |
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"); } |
