brgphy.c (266974) | brgphy.c (273174) |
---|---|
1/*- 2 * Copyright (c) 2000 3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2000 3 * Bill Paul <wpaul@ee.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 30 * THE POSSIBILITY OF SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 266974 2014-06-02 17:54:39Z marcel $"); | 34__FBSDID("$FreeBSD: head/sys/dev/mii/brgphy.c 273174 2014-10-16 18:04:43Z davide $"); |
35 36/* 37 * Driver for the Broadcom BCM54xx/57xx 1000baseTX PHY. 38 */ 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 123 unchanged lines hidden (view full) --- 166static int 167detect_hs21(struct bce_softc *bce_sc) 168{ 169 char *sysenv; 170 int found; 171 172 found = 0; 173 if (bce_sc->bce_chipid == HS21_BCM_CHIPID) { | 35 36/* 37 * Driver for the Broadcom BCM54xx/57xx 1000baseTX PHY. 38 */ 39 40#include <sys/param.h> 41#include <sys/systm.h> 42#include <sys/kernel.h> --- 123 unchanged lines hidden (view full) --- 166static int 167detect_hs21(struct bce_softc *bce_sc) 168{ 169 char *sysenv; 170 int found; 171 172 found = 0; 173 if (bce_sc->bce_chipid == HS21_BCM_CHIPID) { |
174 sysenv = getenv("smbios.system.product"); | 174 sysenv = kern_getenv("smbios.system.product"); |
175 if (sysenv != NULL) { 176 if (strncmp(sysenv, HS21_PRODUCT_ID, 177 strlen(HS21_PRODUCT_ID)) == 0) 178 found = 1; 179 freeenv(sysenv); 180 } 181 } 182 return (found); --- 895 unchanged lines hidden --- | 175 if (sysenv != NULL) { 176 if (strncmp(sysenv, HS21_PRODUCT_ID, 177 strlen(HS21_PRODUCT_ID)) == 0) 178 found = 1; 179 freeenv(sysenv); 180 } 181 } 182 return (found); --- 895 unchanged lines hidden --- |