Deleted Added
full compact
if_fe.c (150220) if_fe.c (150458)
1/*-
2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
3 *
4 * This software may be used, modified, copied, distributed, and sold, in
5 * both source and binary form provided that the above copyright, these
6 * terms and the following disclaimer are retained. The name of the author
7 * and/or the contributor may not be used to endorse or promote products
8 * derived from this software without specific prior written permission.

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

16 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION.
17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20 * SUCH DAMAGE.
21 */
22
23#include <sys/cdefs.h>
1/*-
2 * All Rights Reserved, Copyright (C) Fujitsu Limited 1995
3 *
4 * This software may be used, modified, copied, distributed, and sold, in
5 * both source and binary form provided that the above copyright, these
6 * terms and the following disclaimer are retained. The name of the author
7 * and/or the contributor may not be used to endorse or promote products
8 * derived from this software without specific prior written permission.

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

16 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION.
17 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
18 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
19 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
20 * SUCH DAMAGE.
21 */
22
23#include <sys/cdefs.h>
24__FBSDID("$FreeBSD: head/sys/dev/fe/if_fe.c 150220 2005-09-16 12:49:06Z ru $");
24__FBSDID("$FreeBSD: head/sys/dev/fe/if_fe.c 150458 2005-09-22 05:52:54Z imp $");
25
26/*
27 *
28 * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
29 * Contributed by M. Sekiguchi. <seki@sysrap.cs.fujitsu.co.jp>
30 *
31 * This version is intended to be a generic template for various
32 * MB86960A/MB86965A based Ethernet cards. It currently supports
33 * Fujitsu FMV-180 series for ISA and Allied-Telesis AT1700/RE2000
25
26/*
27 *
28 * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards.
29 * Contributed by M. Sekiguchi. <seki@sysrap.cs.fujitsu.co.jp>
30 *
31 * This version is intended to be a generic template for various
32 * MB86960A/MB86965A based Ethernet cards. It currently supports
33 * Fujitsu FMV-180 series for ISA and Allied-Telesis AT1700/RE2000
34 * series for ISA, as well as Fujitsu MBH10302 PC card.
34 * series for ISA, as well as Fujitsu MBH10302 PC Card.
35 * There are some currently-
36 * unused hooks embedded, which are primarily intended to support
37 * other types of Ethernet cards, but the author is not sure whether
38 * they are useful.
39 *
40 * This version also includes some alignments to support RE1000,
41 * C-NET(98)P2 and so on. These cards are not for AT-compatibles,
42 * but for NEC PC-98 bus -- a proprietary bus architecture available

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

103 */
104#ifndef FE_SINGLE_TRANSMISSION
105#define FE_SINGLE_TRANSMISSION 0
106#endif
107
108/*
109 * Maximum loops when interrupt.
110 * This option prevents an infinite loop due to hardware failure.
35 * There are some currently-
36 * unused hooks embedded, which are primarily intended to support
37 * other types of Ethernet cards, but the author is not sure whether
38 * they are useful.
39 *
40 * This version also includes some alignments to support RE1000,
41 * C-NET(98)P2 and so on. These cards are not for AT-compatibles,
42 * but for NEC PC-98 bus -- a proprietary bus architecture available

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

103 */
104#ifndef FE_SINGLE_TRANSMISSION
105#define FE_SINGLE_TRANSMISSION 0
106#endif
107
108/*
109 * Maximum loops when interrupt.
110 * This option prevents an infinite loop due to hardware failure.
111 * (Some laptops make an infinite loop after PC-Card is ejected.)
111 * (Some laptops make an infinite loop after PC Card is ejected.)
112 */
113#ifndef FE_MAX_LOOP
114#define FE_MAX_LOOP 0x800
115#endif
116
117/*
118 * Device configuration flags.
119 */

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

1090 * some strange hang-up just after UP. I hope the following
1091 * code solve the problem.
1092 *
1093 * I have changed the order of hardware initialization.
1094 * I think the receive buffer cannot have any packets at this
1095 * point in this version. The following code *must* be
1096 * redundant now. FIXME.
1097 *
112 */
113#ifndef FE_MAX_LOOP
114#define FE_MAX_LOOP 0x800
115#endif
116
117/*
118 * Device configuration flags.
119 */

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

1090 * some strange hang-up just after UP. I hope the following
1091 * code solve the problem.
1092 *
1093 * I have changed the order of hardware initialization.
1094 * I think the receive buffer cannot have any packets at this
1095 * point in this version. The following code *must* be
1096 * redundant now. FIXME.
1097 *
1098 * I've heard a rumore that on some PC card implementation of
1098 * I've heard a rumore that on some PC Card implementation of
1099 * 8696x, the receive buffer can have some data at this point.
1100 * The following message helps discovering the fact. FIXME.
1101 */
1102 if (!(fe_inb(sc, FE_DLCR5) & FE_D5_BUFEMP)) {
1103 if_printf(sc->ifp,
1104 "receive buffer has some data after reset\n");
1105 fe_emptybuffer(sc);
1106 }

--- 1133 unchanged lines hidden ---
1099 * 8696x, the receive buffer can have some data at this point.
1100 * The following message helps discovering the fact. FIXME.
1101 */
1102 if (!(fe_inb(sc, FE_DLCR5) & FE_D5_BUFEMP)) {
1103 if_printf(sc->ifp,
1104 "receive buffer has some data after reset\n");
1105 fe_emptybuffer(sc);
1106 }

--- 1133 unchanged lines hidden ---