tht_write
tht_write(sc, THT_REG_RX_MAC_MCST0(i), 0);
tht_write(sc, THT_REG_RX_MAC_MCST1(i), 0);
tht_write(sc, THT_REG_RX_MAC_MCST0(i),
tht_write(sc, THT_REG_RX_MAC_MCST1(i),
tht_write(sc, THT_REG_RX_FLT, rxf);
tht_write(sc, THT_REG_IMR, sc->sc_imr);
tht_write(sc, tfd->tfd_cfg0, (u_int32_t)dva | tfd->tfd_size);
tht_write(sc, tfd->tfd_cfg1, (u_int32_t)(dva >> 32));
tht_write(sc, tf->tf_desc->tfd_wptr, tf->tf_wptr);
tht_write(sc, tf->tf_desc->tfd_rptr, tf->tf_rptr);
tht_write(sc, tht_mac_regs[i], htobe16(sc->sc_lladdr[i]));
#define tht_swrst_set(_s, _r) tht_write((_s), (_r), 0x1)
#define tht_swrst_clr(_s, _r) tht_write((_s), (_r), 0x0)
tht_write(sc, THT_REG_IMR, 0x0); /* 5.a */
tht_write(sc, THT_REG_RDINTCM(i), 0x0); /* 5.c/5.d */
tht_write(sc, THT_REG_TDINTCM(i), 0x0); /* 5.e */
tht_write(sc, THT_REG_TXT_RPTR(i), 0);
tht_write(sc, THT_REG_RXF_RPTR(i), 0);
tht_write(sc, THT_REG_RXD_RPTR(i), 0);
tht_write(sc, THT_REG_TXF_RPTR(i), 0);
tht_write(sc, THT_REG_TXT_WPTR(i), 0);
tht_write(sc, THT_REG_RXF_WPTR(i), 0);
tht_write(sc, THT_REG_RXD_WPTR(i), 0);
tht_write(sc, THT_REG_TXF_WPTR(i), 0);
tht_write(sc, THT_REG_INIT_SEMAPHORE, 0x1);
void tht_write(struct tht_softc *, bus_size_t, u_int32_t);
#define tht_set(_s, _r, _b) tht_write((_s), (_r), \
#define tht_clr(_s, _r, _b) tht_write((_s), (_r), \
tht_write(sc, THT_REG_IMR, sc->sc_imr);
tht_write(sc, THT_REG_IMR, sc->sc_imr);
tht_write(sc, THT_REG_IMR, sc->sc_imr);
tht_write(sc, THT_REG_10G_FRM_LEN, MCLBYTES - ETHER_ALIGN);
tht_write(sc, THT_REG_10G_PAUSE, 0x96);
tht_write(sc, THT_REG_10G_RX_SEC, THT_REG_10G_SEC_AVAIL(0x10) |
tht_write(sc, THT_REG_10G_TX_SEC, THT_REG_10G_SEC_AVAIL(0x10) |
tht_write(sc, THT_REG_10G_RFIFO_AEF, THT_REG_10G_FIFO_AE(0x0) |
tht_write(sc, THT_REG_10G_TFIFO_AEF, THT_REG_10G_FIFO_AE(0x0) |
tht_write(sc, THT_REG_10G_CTL, THT_REG_10G_CTL_TX_EN |
tht_write(sc, THT_REG_VGLB, 0);
tht_write(sc, THT_REG_RX_MAX_FRAME, MCLBYTES - ETHER_ALIGN);
tht_write(sc, THT_REG_RDINTCM(0), THT_REG_RDINTCM_PKT_TH(12) |
tht_write(sc, THT_REG_TDINTCM(0), THT_REG_TDINTCM_PKT_TH(12) |
tht_write(sc, THT_REG_IMR, sc->sc_imr);