-/* $OpenBSD: i2c_scan.c,v 1.144 2015/05/29 00:33:37 uebayasi Exp $ */
+/* $OpenBSD: i2c_scan.c,v 1.145 2015/05/29 00:37:10 uebayasi Exp $ */
/*
* Copyright (c) 2005 Theo de Raadt <deraadt@openbsd.org>
bzero(ignore_addrs, sizeof(ignore_addrs));
for (i = 0; probes[i].probe; i++) {
-#if 0
#if NIPMI > 0
extern int ipmi_enabled;
self->dv_xname);
continue;
}
-#endif
#endif
pl = probes[i].pl;
for (j = 0; pl[j].start && pl[j].end; j++) {
-/* $OpenBSD: if_vic.c,v 1.89 2015/05/29 00:33:37 uebayasi Exp $ */
+/* $OpenBSD: if_vic.c,v 1.90 2015/05/29 00:37:10 uebayasi Exp $ */
/*
* Copyright (c) 2006 Reyk Floeter <reyk@openbsd.org>
vic_tick(void *arg)
{
struct vic_softc *sc = (struct vic_softc *)arg;
- int s, q;
-
- /*
- * XXX Poll Rx interrupt and process existing packets to work-around
- * XXX occasional Rx interrupt lossage.
- */
- s = splnet();
- for (q = 0; q < VIC_NRXRINGS; q++)
- vic_rx_proc(sc, q);
- splx(s);
vic_link_state(sc);
-/* $OpenBSD: if_vmx.c,v 1.27 2015/05/29 00:33:37 uebayasi Exp $ */
+/* $OpenBSD: if_vmx.c,v 1.28 2015/05/29 00:37:10 uebayasi Exp $ */
/*
* Copyright (c) 2013 Tsubai Masanari
void vmxnet3_txinit(struct vmxnet3_softc *, struct vmxnet3_txqueue *);
void vmxnet3_rxinit(struct vmxnet3_softc *, struct vmxnet3_rxqueue *);
void vmxnet3_txstop(struct vmxnet3_softc *, struct vmxnet3_txqueue *);
-void vmxnet3_rxdump(struct vmxnet3_softc *);
void vmxnet3_rxstop(struct vmxnet3_softc *, struct vmxnet3_rxqueue *);
void vmxnet3_link_state(struct vmxnet3_softc *);
void vmxnet3_enable_all_intrs(struct vmxnet3_softc *);
}
}
-void
-vmxnet3_rxdump(struct vmxnet3_softc *sc)
-{
-#if 0
- int queue, i;
-
- for (queue = 0; queue < NRXQUEUE; queue++) {
- struct vmxnet3_rxqueue *rq = &sc->sc_rxq[queue];
-
- for (i = 0; i < 2; i++) {
- struct vmxnet3_rxring *ring = &rq->cmd_ring[i];
-
- struct if_rxring *r = &ring->rxr;
- printf("ring%d: "
- "adjusted=%d alive=%u cwm=%u lwm=%u hwm=%u\n",
- i,
- r->rxr_adjusted, r->rxr_alive, r->rxr_cwm, r->rxr_lwm, r->rxr_hwm);
- }
- }
-#endif
-}
-
void
vmxnet3_rxstop(struct vmxnet3_softc *sc, struct vmxnet3_rxqueue *rq)
{
vmxnet3_txstop(sc, &sc->sc_txq[queue]);
for (queue = 0; queue < NRXQUEUE; queue++)
vmxnet3_rxstop(sc, &sc->sc_rxq[queue]);
- vmxnet3_rxdump(sc);
}
void
vmxnet3_txinit(sc, &sc->sc_txq[queue]);
for (queue = 0; queue < NRXQUEUE; queue++)
vmxnet3_rxinit(sc, &sc->sc_rxq[queue]);
- vmxnet3_rxdump(sc);
WRITE_CMD(sc, VMXNET3_CMD_ENABLE);
if (READ_BAR1(sc, VMXNET3_BAR1_CMD)) {