Use NE2000_TYPE_UNKNOWN instead of just 0 in a couple places.
This commit is contained in:
parent
7bca1efe39
commit
d02e700e66
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ne2000.c,v 1.55 2007/10/19 11:59:57 ad Exp $ */
|
||||
/* $NetBSD: ne2000.c,v 1.56 2008/03/09 20:32:45 dholland Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -55,7 +55,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.55 2007/10/19 11:59:57 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.56 2008/03/09 20:32:45 dholland Exp $");
|
||||
|
||||
#include "opt_ipkdb.h"
|
||||
|
||||
|
@ -321,7 +321,7 @@ ne2000_detect(nict, nich, asict, asich)
|
|||
{
|
||||
static u_int8_t test_pattern[32] = "THIS is A memory TEST pattern";
|
||||
u_int8_t test_buffer[32], tmp;
|
||||
int i, rv = 0;
|
||||
int i, rv = NE2000_TYPE_UNKNOWN;
|
||||
|
||||
/* Reset the board. */
|
||||
#ifdef GWETHER
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_ne_pcmcia.c,v 1.150 2007/10/19 12:01:04 ad Exp $ */
|
||||
/* $NetBSD: if_ne_pcmcia.c,v 1.151 2008/03/09 20:32:45 dholland Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 Marc Horowitz. All rights reserved.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ne_pcmcia.c,v 1.150 2007/10/19 12:01:04 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ne_pcmcia.c,v 1.151 2008/03/09 20:32:45 dholland Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -711,7 +711,7 @@ found:
|
|||
/*
|
||||
* Check for a Realtek 8019.
|
||||
*/
|
||||
if (nsc->sc_type == 0) {
|
||||
if (nsc->sc_type == NE2000_TYPE_UNKNOWN) {
|
||||
bus_space_write_1(dsc->sc_regt, dsc->sc_regh, ED_P0_CR,
|
||||
ED_CR_PAGE_0 | ED_CR_STP);
|
||||
if (bus_space_read_1(dsc->sc_regt, dsc->sc_regh,
|
||||
|
|
Loading…
Reference in New Issue