Fix uninitialized variable warnings
This commit is contained in:
parent
bbda852cff
commit
8bfd5e3292
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cardslot.c,v 1.22 2003/01/01 00:10:17 thorpej Exp $ */
|
||||
/* $NetBSD: cardslot.c,v 1.23 2003/10/25 18:37:24 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1999 and 2000
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.22 2003/01/01 00:10:17 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cardslot.c,v 1.23 2003/10/25 18:37:24 christos Exp $");
|
||||
|
||||
#include "opt_cardslot.h"
|
||||
|
||||
|
@ -107,8 +107,8 @@ cardslotattach(parent, self, aux)
|
|||
struct cbslot_attach_args *cba = caa->caa_cb_attach;
|
||||
struct pcmciabus_attach_args *pa = caa->caa_16_attach;
|
||||
|
||||
struct cardbus_softc *csc;
|
||||
struct pcmcia_softc *psc;
|
||||
struct cardbus_softc *csc = NULL;
|
||||
struct pcmcia_softc *psc = NULL;
|
||||
|
||||
sc->sc_slot = sc->sc_dev.dv_unit;
|
||||
sc->sc_cb_softc = NULL;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dpti.c,v 1.13 2003/06/29 22:30:08 fvdl Exp $ */
|
||||
/* $NetBSD: dpti.c,v 1.14 2003/10/25 18:36:35 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -64,7 +64,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.13 2003/06/29 22:30:08 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dpti.c,v 1.14 2003/10/25 18:36:35 christos Exp $");
|
||||
|
||||
#include "opt_i2o.h"
|
||||
|
||||
|
@ -540,6 +540,7 @@ dpti_passthrough(struct dpti_softc *sc, caddr_t data, struct proc *proc)
|
|||
}
|
||||
|
||||
memset(bufs, 0, sizeof(bufs));
|
||||
nbuf = 0; /* XXX: gcc */
|
||||
} else
|
||||
nbuf = -1;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: iop.c,v 1.38 2003/06/29 22:30:08 fvdl Exp $ */
|
||||
/* $NetBSD: iop.c,v 1.39 2003/10/25 18:36:35 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000, 2001, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.38 2003/06/29 22:30:08 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: iop.c,v 1.39 2003/10/25 18:36:35 christos Exp $");
|
||||
|
||||
#include "opt_i2o.h"
|
||||
#include "iop.h"
|
||||
|
@ -294,7 +294,8 @@ void
|
|||
iop_init(struct iop_softc *sc, const char *intrstr)
|
||||
{
|
||||
struct iop_msg *im;
|
||||
int rv, i, j, state, nsegs;
|
||||
int rv, j, state, nsegs;
|
||||
int i = 0; /* XXX: gcc */
|
||||
u_int32_t mask;
|
||||
char ident[64];
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: adwlib.c,v 1.26 2003/10/21 00:57:47 fvdl Exp $ */
|
||||
/* $NetBSD: adwlib.c,v 1.27 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Low level routines for the Advanced Systems Inc. SCSI controllers chips
|
||||
|
@ -52,7 +52,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.26 2003/10/21 00:57:47 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: adwlib.c,v 1.27 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1072,6 +1072,11 @@ AdwLoadMCode(iot, ioh, bios_mem, chip_type)
|
|||
mcode_size = (u_int16_t)adw_asc38C1600_mcode_data.mcode_size;
|
||||
adw_memsize = ADW_38C1600_MEMSIZE;
|
||||
break;
|
||||
default:
|
||||
mcode_data = NULL;
|
||||
mcode_chksum = 0;
|
||||
mcode_size = 0;
|
||||
adw_memsize = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: aic6915.c,v 1.9 2002/12/21 16:15:28 kristerw Exp $ */
|
||||
/* $NetBSD: aic6915.c,v 1.10 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -42,7 +42,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.9 2002/12/21 16:15:28 kristerw Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aic6915.c,v 1.10 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
|
@ -360,7 +360,7 @@ sf_start(struct ifnet *ifp)
|
|||
struct sf_txdesc0 *txd;
|
||||
struct sf_descsoft *ds;
|
||||
bus_dmamap_t dmamap;
|
||||
int error, producer, last, opending, seg;
|
||||
int error, producer, last = -1, opending, seg;
|
||||
|
||||
/*
|
||||
* Remember the previous number of pending transmits.
|
||||
|
@ -481,6 +481,7 @@ sf_start(struct ifnet *ifp)
|
|||
}
|
||||
|
||||
if (sc->sc_txpending != opending) {
|
||||
KASSERT(last != -1);
|
||||
/*
|
||||
* We enqueued packets. Cause a transmit interrupt to
|
||||
* happen on the last packet we enqueued, and give the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: atw.c,v 1.4 2003/10/16 10:04:14 dyoung Exp $ */
|
||||
/* $NetBSD: atw.c,v 1.5 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002, 2003, 2004 The NetBSD Foundation, Inc.
|
||||
|
@ -41,7 +41,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.4 2003/10/16 10:04:14 dyoung Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: atw.c,v 1.5 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
|
@ -3362,7 +3362,7 @@ atw_start(ifp)
|
|||
struct atw_txdesc *txd;
|
||||
int do_encrypt, rate;
|
||||
bus_dmamap_t dmamap;
|
||||
int ctl, error, firsttx, nexttx, lasttx, first, ofree, seg;
|
||||
int ctl, error, firsttx, nexttx, lasttx = -1, first, ofree, seg;
|
||||
|
||||
DPRINTF2(sc, ("%s: atw_start: sc_flags 0x%08x, if_flags 0x%08x\n",
|
||||
sc->sc_dev.dv_xname, sc->sc_flags, ifp->if_flags));
|
||||
|
@ -3644,6 +3644,7 @@ atw_start(ifp)
|
|||
lasttx = nexttx;
|
||||
}
|
||||
|
||||
KASSERT(lasttx != -1);
|
||||
/* Set `first segment' and `last segment' appropriately. */
|
||||
sc->sc_txdescs[sc->sc_txnext].at_flags |=
|
||||
htole32(ATW_TXFLAG_FS);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cs89x0.c,v 1.9 2003/05/03 18:11:16 wiz Exp $ */
|
||||
/* $NetBSD: cs89x0.c,v 1.10 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
|
@ -186,7 +186,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.9 2003/05/03 18:11:16 wiz Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cs89x0.c,v 1.10 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include "opt_inet.h"
|
||||
|
||||
|
@ -1492,7 +1492,7 @@ cs_process_receive(struct cs_softc *sc)
|
|||
int totlen;
|
||||
u_int16_t *pBuff, *pBuffLimit;
|
||||
int pad;
|
||||
unsigned int frameOffset;
|
||||
unsigned int frameOffset = 0; /* XXX: gcc */
|
||||
|
||||
#ifdef SHARK
|
||||
ledNetActive();
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: cy.c,v 1.32 2003/06/29 22:30:11 fvdl Exp $ */
|
||||
/* $NetBSD: cy.c,v 1.33 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
* cy.c
|
||||
|
@ -16,7 +16,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cy.c,v 1.32 2003/06/29 22:30:11 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cy.c,v 1.33 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/ioctl.h>
|
||||
|
@ -247,8 +247,8 @@ cy_attach(struct cy_softc *sc)
|
|||
static struct cy_port *
|
||||
cy_getport(dev_t dev)
|
||||
{
|
||||
int i, j, k, u = minor(dev) & ~CYDIALOUT_MASK;
|
||||
struct cy_softc *sc;
|
||||
int i, j, k = 0, u = minor(dev) & ~CYDIALOUT_MASK;
|
||||
struct cy_softc *sc = NULL;
|
||||
|
||||
for (i = 0, j = 0; i < cy_cd.cd_ndevs; i++) {
|
||||
k = j;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: dpt.c,v 1.41 2003/06/29 22:30:11 fvdl Exp $ */
|
||||
/* $NetBSD: dpt.c,v 1.42 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -78,7 +78,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.41 2003/06/29 22:30:11 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.42 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -1273,9 +1273,9 @@ dpt_passthrough(struct dpt_softc *sc, struct eata_ucp *ucp, struct proc *proc)
|
|||
struct eata_sp sp;
|
||||
struct eata_cp *cp;
|
||||
struct eata_sg *sg;
|
||||
bus_dmamap_t xfer;
|
||||
bus_dmamap_t xfer = 0; /* XXX: gcc */
|
||||
bus_dma_segment_t *ds;
|
||||
int datain, s, rv, i, uslen;
|
||||
int datain = 0, s, rv = 0, i, uslen; /* XXX: gcc */
|
||||
|
||||
/*
|
||||
* Get a CCB and fill.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: esiop.c,v 1.21 2003/08/04 19:50:11 bouyer Exp $ */
|
||||
/* $NetBSD: esiop.c,v 1.22 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2002 Manuel Bouyer.
|
||||
|
@ -33,7 +33,7 @@
|
|||
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.21 2003/08/04 19:50:11 bouyer Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: esiop.c,v 1.22 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -421,7 +421,7 @@ esiop_intr(v)
|
|||
struct esiop_cmd *esiop_cmd;
|
||||
struct esiop_lun *esiop_lun;
|
||||
struct scsipi_xfer *xs;
|
||||
int istat, sist, sstat1, dstat;
|
||||
int istat, sist, sstat1, dstat = 0;
|
||||
u_int32_t irqcode;
|
||||
int need_reset = 0;
|
||||
int offset, target, lun, tag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: icp.c,v 1.10 2003/06/13 05:57:30 thorpej Exp $ */
|
||||
/* $NetBSD: icp.c,v 1.11 2003/10/25 18:35:42 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
|
||||
|
@ -83,7 +83,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.10 2003/06/13 05:57:30 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: icp.c,v 1.11 2003/10/25 18:35:42 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -137,7 +137,7 @@ icp_init(struct icp_softc *icp, const char *intrstr)
|
|||
struct icp_binfo binfo;
|
||||
struct icp_ccb *ic;
|
||||
u_int16_t cdev_cnt;
|
||||
int i, j, state, feat, nsegs, rv;
|
||||
int i, j = 0, state, feat, nsegs, rv; /* XXX: gcc */
|
||||
|
||||
state = 0;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ne2000.c,v 1.39 2003/10/22 00:12:36 christos Exp $ */
|
||||
/* $NetBSD: ne2000.c,v 1.40 2003/10/25 18:35:43 christos 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.39 2003/10/22 00:12:36 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ne2000.c,v 1.40 2003/10/25 18:35:43 christos Exp $");
|
||||
|
||||
#include "opt_ipkdb.h"
|
||||
|
||||
|
@ -181,6 +181,9 @@ ne2000_attach(nsc, myea)
|
|||
case NE2000_TYPE_DL10022:
|
||||
memsize = 8192 * 3;
|
||||
break;
|
||||
default:
|
||||
memsize = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rtl80x9.c,v 1.8 2001/11/13 13:14:43 lukem Exp $ */
|
||||
/* $NetBSD: rtl80x9.c,v 1.9 2003/10/25 18:35:43 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rtl80x9.c,v 1.8 2001/11/13 13:14:43 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rtl80x9.c,v 1.9 2003/10/25 18:35:43 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -210,6 +210,9 @@ rtl80x9_media_init(sc)
|
|||
printf("10baseT\n");
|
||||
}
|
||||
break;
|
||||
default:
|
||||
defmedia = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
bus_space_write_1(sc->sc_regt, sc->sc_regh, ED_P0_CR, ED_CR_PAGE_0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: siop.c,v 1.67 2003/10/21 06:22:16 simonb Exp $ */
|
||||
/* $NetBSD: siop.c,v 1.68 2003/10/25 18:35:43 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Manuel Bouyer.
|
||||
|
@ -33,7 +33,7 @@
|
|||
/* SYM53c7/8xx PCI-SCSI I/O Processors driver */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.67 2003/10/21 06:22:16 simonb Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: siop.c,v 1.68 2003/10/25 18:35:43 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -315,7 +315,7 @@ siop_intr(v)
|
|||
struct siop_cmd *siop_cmd;
|
||||
struct siop_lun *siop_lun;
|
||||
struct scsipi_xfer *xs;
|
||||
int istat, sist, sstat1, dstat;
|
||||
int istat, sist, sstat1, dstat = 0; /* XXX: gcc */
|
||||
u_int32_t irqcode;
|
||||
int need_reset = 0;
|
||||
int offset, target, lun, tag;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: tulip.c,v 1.123 2003/09/07 10:45:11 tsutsui Exp $ */
|
||||
/* $NetBSD: tulip.c,v 1.124 2003/10/25 18:35:43 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 1999, 2000, 2002 The NetBSD Foundation, Inc.
|
||||
|
@ -43,7 +43,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.123 2003/09/07 10:45:11 tsutsui Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: tulip.c,v 1.124 2003/10/25 18:35:43 christos Exp $");
|
||||
|
||||
#include "bpfilter.h"
|
||||
|
||||
|
@ -685,9 +685,9 @@ tlp_start(ifp)
|
|||
{
|
||||
struct tulip_softc *sc = ifp->if_softc;
|
||||
struct mbuf *m0, *m;
|
||||
struct tulip_txsoft *txs, *last_txs;
|
||||
struct tulip_txsoft *txs, *last_txs = NULL;
|
||||
bus_dmamap_t dmamap;
|
||||
int error, firsttx, nexttx, lasttx, ofree, seg;
|
||||
int error, firsttx, nexttx, lasttx = 1, ofree, seg;
|
||||
|
||||
DPRINTF(sc, ("%s: tlp_start: sc_flags 0x%08x, if_flags 0x%08x\n",
|
||||
sc->sc_dev.dv_xname, sc->sc_flags, ifp->if_flags));
|
||||
|
@ -836,6 +836,8 @@ tlp_start(ifp)
|
|||
lasttx = nexttx;
|
||||
}
|
||||
|
||||
KASSERT(lasttx != -1);
|
||||
|
||||
/* Set `first segment' and `last segment' appropriately. */
|
||||
sc->sc_txdescs[sc->sc_txnext].td_ctl |= htole32(TDCTL_Tx_FS);
|
||||
sc->sc_txdescs[lasttx].td_ctl |= htole32(TDCTL_Tx_LS);
|
||||
|
@ -911,6 +913,7 @@ tlp_start(ifp)
|
|||
* Some clone chips want IC on the *first* segment in
|
||||
* the packet. Appease them.
|
||||
*/
|
||||
KASSERT(last_txs != NULL);
|
||||
if ((sc->sc_flags & TULIPF_IC_FS) != 0 &&
|
||||
last_txs->txs_firstdesc != lasttx) {
|
||||
sc->sc_txdescs[last_txs->txs_firstdesc].td_ctl |=
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_cs_isa.c,v 1.10 2002/10/02 03:10:47 thorpej Exp $ */
|
||||
/* $NetBSD: if_cs_isa.c,v 1.11 2003/10/25 18:36:14 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 1997
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.10 2002/10/02 03:10:47 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_cs_isa.c,v 1.11 2003/10/25 18:36:14 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -80,7 +80,7 @@ cs_isa_probe(parent, cf, aux)
|
|||
struct cs_softc sc;
|
||||
int rv = 0, have_io = 0, have_mem = 0;
|
||||
u_int16_t isa_cfg, isa_membase;
|
||||
int maddr, irq;
|
||||
int maddr, irq = -1; /* XXX: gcc */
|
||||
|
||||
if (ia->ia_nio < 1)
|
||||
return (0);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: edc_mca.c,v 1.21 2002/11/01 11:31:58 mrg Exp $ */
|
||||
/* $NetBSD: edc_mca.c,v 1.22 2003/10/25 18:37:03 christos Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -50,7 +50,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: edc_mca.c,v 1.21 2002/11/01 11:31:58 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: edc_mca.c,v 1.22 2003/10/25 18:37:03 christos Exp $");
|
||||
|
||||
#include "rnd.h"
|
||||
|
||||
|
@ -199,7 +199,8 @@ edc_mca_attach(parent, self, aux)
|
|||
typestr = "IBM Integ. ESDI Fixed Disk & Controller";
|
||||
break;
|
||||
default:
|
||||
/* never reached */ ;
|
||||
typestr = NULL;
|
||||
break;
|
||||
}
|
||||
|
||||
irq = ESDIC_IRQ;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_elmc_mca.c,v 1.12 2003/02/23 04:14:16 simonb Exp $ */
|
||||
/* $NetBSD: if_elmc_mca.c,v 1.13 2003/10/25 18:37:03 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -46,7 +46,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.12 2003/02/23 04:14:16 simonb Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_elmc_mca.c,v 1.13 2003/10/25 18:37:03 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -145,6 +145,9 @@ elmc_mca_attach(struct device *parent, struct device *self, void *aux)
|
|||
case 2: irq = 7; break;
|
||||
case 8: irq = 9; break;
|
||||
case 1: irq = 12; break;
|
||||
default:
|
||||
printf("%s: cannot determine irq\n", sc->sc_dev.dv_xname);
|
||||
break;
|
||||
}
|
||||
|
||||
pbram_addr = ELMC_MADDR_BASE + (((pos2 & 24) >> 3) * 0x8000);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_ep_mca.c,v 1.10 2002/10/02 16:34:11 thorpej Exp $ */
|
||||
/* $NetBSD: if_ep_mca.c,v 1.11 2003/10/25 18:37:03 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -76,7 +76,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ep_mca.c,v 1.10 2002/10/02 16:34:11 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_ep_mca.c,v 1.11 2003/10/25 18:37:03 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -254,6 +254,10 @@ ep_mca_attach(parent, self, aux)
|
|||
/* BNC */
|
||||
media = IFM_10_2;
|
||||
break;
|
||||
default:
|
||||
printf("%s: cannot determine media\n",
|
||||
sc->sc_dev.dv_xname);
|
||||
return;
|
||||
}
|
||||
ifmedia_set(&sc->sc_mii.mii_media, IFM_ETHER|media);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: if_le_mca.c,v 1.6 2002/10/02 16:34:11 thorpej Exp $ */
|
||||
/* $NetBSD: if_le_mca.c,v 1.7 2003/10/25 18:37:03 christos Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -52,7 +52,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_le_mca.c,v 1.6 2002/10/02 16:34:11 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: if_le_mca.c,v 1.7 2003/10/25 18:37:03 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -214,6 +214,10 @@ le_mca_attach(struct device *parent, struct device *self, void *aux)
|
|||
/* Get configured media type */
|
||||
supmedia = sknet_mcp_media[(pos4 & 0xc0) >> 6];
|
||||
break;
|
||||
default:
|
||||
printf("%s: unknown product %d\n", sc->sc_dev.dv_xname,
|
||||
ma->ma_id);
|
||||
return;
|
||||
}
|
||||
|
||||
lesc->sc_memt = ma->ma_memt;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: rf_netbsdkintf.c,v 1.163 2003/10/21 00:22:04 fvdl Exp $ */
|
||||
/* $NetBSD: rf_netbsdkintf.c,v 1.164 2003/10/25 18:34:14 christos Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
|
||||
* All rights reserved.
|
||||
|
@ -146,7 +146,7 @@
|
|||
***********************************************************/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.163 2003/10/21 00:22:04 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: rf_netbsdkintf.c,v 1.164 2003/10/25 18:34:14 christos Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/errno.h>
|
||||
|
@ -2367,7 +2367,7 @@ rf_markalldirty(raidPtr)
|
|||
int sparecol;
|
||||
int r,c;
|
||||
int i,j;
|
||||
int srow, scol;
|
||||
int srow = -1, scol = -1;
|
||||
|
||||
raidPtr->mod_counter++;
|
||||
for (r = 0; r < raidPtr->numRow; r++) {
|
||||
|
|
Loading…
Reference in New Issue