tangled
alpha
login
or
join now
jcs.org
/
openbsd-src
0
fork
atom
jcs's openbsd hax
openbsd
0
fork
atom
overview
issues
pulls
pipelines
Garbage collect some bits that were never used.
ok mikeb@
brad
11 years ago
bb85fa44
751b032c
+2
-21
2 changed files
expand all
collapse all
unified
split
sys
dev
ic
hme.c
hmevar.h
+1
-16
sys/dev/ic/hme.c
reviewed
···
1
1
-
/* $OpenBSD: hme.c,v 1.68 2014/11/27 05:47:25 brad Exp $ */
1
1
+
/* $OpenBSD: hme.c,v 1.69 2014/11/27 14:53:42 brad Exp $ */
2
2
/* $NetBSD: hme.c,v 1.21 2001/07/07 15:59:37 thorpej Exp $ */
3
3
4
4
/*-
···
518
518
/* Re-initialize the MIF */
519
519
hme_mifinit(sc);
520
520
521
521
-
/* Call MI reset function if any */
522
522
-
if (sc->sc_hwreset)
523
523
-
(*sc->sc_hwreset)(sc);
524
524
-
525
525
-
#if 0
526
526
-
/* Mask all MIF interrupts, just in case */
527
527
-
bus_space_write_4(t, mif, HME_MIFI_IMASK, 0xffff);
528
528
-
#endif
529
529
-
530
521
/* step 3. Setup data structures in host memory */
531
522
hme_meminit(sc);
532
523
···
628
619
v = bus_space_read_4(t, mac, HME_MACI_TXCFG);
629
620
v |= (HME_MAC_TXCFG_ENABLE | HME_MAC_TXCFG_DGIVEUP);
630
621
bus_space_write_4(t, mac, HME_MACI_TXCFG, v);
631
631
-
632
632
-
/* step 14. Issue Transmit Pending command */
633
633
-
634
634
-
/* Call MI initialization function if any */
635
635
-
if (sc->sc_hwinit)
636
636
-
(*sc->sc_hwinit)(sc);
637
622
638
623
/* Set the current media. */
639
624
mii_mediachg(&sc->sc_mii);
+1
-5
sys/dev/ic/hmevar.h
reviewed
···
1
1
-
/* $OpenBSD: hmevar.h,v 1.16 2014/07/08 05:35:18 dlg Exp $ */
1
1
+
/* $OpenBSD: hmevar.h,v 1.17 2014/11/27 14:53:42 brad Exp $ */
2
2
/* $NetBSD: hmevar.h,v 1.6 2000/09/28 10:56:57 tsutsui Exp $ */
3
3
4
4
/*-
···
79
79
struct hme_ring sc_rb;
80
80
81
81
int sc_debug;
82
82
-
83
83
-
/* Special hardware hooks */
84
84
-
void (*sc_hwreset)(struct hme_softc *);
85
85
-
void (*sc_hwinit)(struct hme_softc *);
86
82
87
83
struct hme_sxd sc_txd[HME_TX_RING_MAX], sc_rxd[HME_RX_RING_MAX];
88
84
bus_dmamap_t sc_rxmap_spare;