Deleted Added
full compact
if_bge.c (114073) if_bge.c (114547)
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 50 unchanged lines hidden (view full) ---

59 * Without external SSRAM, you can only have at most 4 TX rings,
60 * and the use of the mini RX ring is disabled. This seems to imply
61 * that these features are simply not available on the BCM5701. As a
62 * result, this driver does not implement any support for the mini RX
63 * ring.
64 */
65
66#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001 Wind River Systems
3 * Copyright (c) 1997, 1998, 1999, 2001
4 * Bill Paul <wpaul@windriver.com>. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 50 unchanged lines hidden (view full) ---

59 * Without external SSRAM, you can only have at most 4 TX rings,
60 * and the use of the mini RX ring is disabled. This seems to imply
61 * that these features are simply not available on the BCM5701. As a
62 * result, this driver does not implement any support for the mini RX
63 * ring.
64 */
65
66#include <sys/cdefs.h>
67__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 114073 2003-04-26 18:26:29Z ps $");
67__FBSDID("$FreeBSD: head/sys/dev/bge/if_bge.c 114547 2003-05-02 19:53:40Z ps $");
68
69#include <sys/param.h>
70#include <sys/systm.h>
71#include <sys/sockio.h>
72#include <sys/mbuf.h>
73#include <sys/malloc.h>
74#include <sys/kernel.h>
75#include <sys/socket.h>

--- 58 unchanged lines hidden (view full) ---

134 { BCOM_VENDORID, BCOM_DEVICEID_BCM5700,
135 "Broadcom BCM5700 Gigabit Ethernet" },
136 { BCOM_VENDORID, BCOM_DEVICEID_BCM5701,
137 "Broadcom BCM5701 Gigabit Ethernet" },
138 { BCOM_VENDORID, BCOM_DEVICEID_BCM5702X,
139 "Broadcom BCM5702X Gigabit Ethernet" },
140 { BCOM_VENDORID, BCOM_DEVICEID_BCM5703X,
141 "Broadcom BCM5703X Gigabit Ethernet" },
68
69#include <sys/param.h>
70#include <sys/systm.h>
71#include <sys/sockio.h>
72#include <sys/mbuf.h>
73#include <sys/malloc.h>
74#include <sys/kernel.h>
75#include <sys/socket.h>

--- 58 unchanged lines hidden (view full) ---

134 { BCOM_VENDORID, BCOM_DEVICEID_BCM5700,
135 "Broadcom BCM5700 Gigabit Ethernet" },
136 { BCOM_VENDORID, BCOM_DEVICEID_BCM5701,
137 "Broadcom BCM5701 Gigabit Ethernet" },
138 { BCOM_VENDORID, BCOM_DEVICEID_BCM5702X,
139 "Broadcom BCM5702X Gigabit Ethernet" },
140 { BCOM_VENDORID, BCOM_DEVICEID_BCM5703X,
141 "Broadcom BCM5703X Gigabit Ethernet" },
142 { BCOM_VENDORID, BCOM_DEVICEID_BCM5704C,
143 "Broadcom BCM5704C Dual Gigabit Ethernet" },
144 { BCOM_VENDORID, BCOM_DEVICEID_BCM5704S,
145 "Broadcom BCM5704S Dual Gigabit Ethernet" },
142 { SK_VENDORID, SK_DEVICEID_ALTIMA,
143 "SysKonnect Gigabit Ethernet" },
144 { ALTIMA_VENDORID, ALTIMA_DEVICE_AC1000,
145 "Altima AC1000 Gigabit Ethernet" },
146 { ALTIMA_VENDORID, ALTIMA_DEVICE_AC9100,
147 "Altima AC9100 Gigabit Ethernet" },
148 { 0, 0, NULL }
149};

--- 328 unchanged lines hidden (view full) ---

478
479 sc = device_get_softc(dev);
480 ifp = &sc->arpcom.ac_if;
481
482 if (phy != 1)
483 switch(sc->bge_asicrev) {
484 case BGE_ASICREV_BCM5701_B5:
485 case BGE_ASICREV_BCM5703_A2:
146 { SK_VENDORID, SK_DEVICEID_ALTIMA,
147 "SysKonnect Gigabit Ethernet" },
148 { ALTIMA_VENDORID, ALTIMA_DEVICE_AC1000,
149 "Altima AC1000 Gigabit Ethernet" },
150 { ALTIMA_VENDORID, ALTIMA_DEVICE_AC9100,
151 "Altima AC9100 Gigabit Ethernet" },
152 { 0, 0, NULL }
153};

--- 328 unchanged lines hidden (view full) ---

482
483 sc = device_get_softc(dev);
484 ifp = &sc->arpcom.ac_if;
485
486 if (phy != 1)
487 switch(sc->bge_asicrev) {
488 case BGE_ASICREV_BCM5701_B5:
489 case BGE_ASICREV_BCM5703_A2:
490 case BGE_ASICREV_BCM5704_A0:
486 return(0);
487 }
488
489 CSR_WRITE_4(sc, BGE_MI_COMM, BGE_MICMD_READ|BGE_MICOMM_BUSY|
490 BGE_MIPHY(phy)|BGE_MIREG(reg));
491
492 for (i = 0; i < BGE_TIMEOUT; i++) {
493 val = CSR_READ_4(sc, BGE_MI_COMM);

--- 2242 unchanged lines hidden ---
491 return(0);
492 }
493
494 CSR_WRITE_4(sc, BGE_MI_COMM, BGE_MICMD_READ|BGE_MICOMM_BUSY|
495 BGE_MIPHY(phy)|BGE_MIREG(reg));
496
497 for (i = 0; i < BGE_TIMEOUT; i++) {
498 val = CSR_READ_4(sc, BGE_MI_COMM);

--- 2242 unchanged lines hidden ---