diff options
author | marcel <marcel@FreeBSD.org> | 2011-10-04 20:17:43 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2011-10-04 20:17:43 +0000 |
commit | 36e7af5118dbe7ba99b898f0507b1211adf6b71b (patch) | |
tree | 3c4db05f9483934a4daafed483064f428ebfedc5 /sys/mips/cavium/if_octm.c | |
parent | 1485b2ad01c1e0d5adfdbcc6d06114ecaa15a950 (diff) | |
download | FreeBSD-src-36e7af5118dbe7ba99b898f0507b1211adf6b71b.zip FreeBSD-src-36e7af5118dbe7ba99b898f0507b1211adf6b71b.tar.gz |
Remove octeon_bootinfo from all files except octeon_machdep.c.
Use instead cvmx_sysinfo_get() consistently.
Reviewed by: jmallett, marcel
Obtained from: Juniper Networks, Inc
Author: Andrew Duane
Diffstat (limited to 'sys/mips/cavium/if_octm.c')
-rw-r--r-- | sys/mips/cavium/if_octm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/mips/cavium/if_octm.c b/sys/mips/cavium/if_octm.c index a753d66..847ad3c 100644 --- a/sys/mips/cavium/if_octm.c +++ b/sys/mips/cavium/if_octm.c @@ -64,8 +64,6 @@ #include <contrib/octeon-sdk/cvmx-interrupt.h> #include <contrib/octeon-sdk/cvmx-mgmt-port.h> -extern cvmx_bootinfo_t *octeon_bootinfo; - struct octm_softc { struct ifnet *sc_ifp; device_t sc_dev; @@ -179,7 +177,7 @@ octm_attach(device_t dev) * Set MAC address for this management port. */ mac = 0; - memcpy((u_int8_t *)&mac + 2, octeon_bootinfo->mac_addr_base, 6); + memcpy((u_int8_t *)&mac + 2, cvmx_sysinfo_get()->mac_addr_base, 6); mac += sc->sc_port; cvmx_mgmt_port_set_mac(sc->sc_port, mac); |