jcs's openbsd hax
openbsd

Garbage collect some bits that were never used.

ok mikeb@

brad bb85fa44 751b032c

+2 -21
+1 -16
sys/dev/ic/hme.c
··· 1 - /* $OpenBSD: hme.c,v 1.68 2014/11/27 05:47:25 brad Exp $ */ 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 - /* Call MI reset function if any */ 522 - if (sc->sc_hwreset) 523 - (*sc->sc_hwreset)(sc); 524 - 525 - #if 0 526 - /* Mask all MIF interrupts, just in case */ 527 - bus_space_write_4(t, mif, HME_MIFI_IMASK, 0xffff); 528 - #endif 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 - 632 - /* step 14. Issue Transmit Pending command */ 633 - 634 - /* Call MI initialization function if any */ 635 - if (sc->sc_hwinit) 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
··· 1 - /* $OpenBSD: hmevar.h,v 1.16 2014/07/08 05:35:18 dlg Exp $ */ 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 - 83 - /* Special hardware hooks */ 84 - void (*sc_hwreset)(struct hme_softc *); 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;