gmac_write_reg
gmac_write_reg(sc, GMAC_TXDMACONFIG, x);
gmac_write_reg(sc, GMAC_TXMACCONFIG, x);
gmac_write_reg(sc, GMAC_RXDMACONFIG, x);
gmac_write_reg(sc, GMAC_RXMACCONFIG, x);
gmac_write_reg(sc, GMAC_TXDMACONFIG, x);
gmac_write_reg(sc, GMAC_TXMACCONFIG, x);
gmac_write_reg(sc, GMAC_RXDMACONFIG, x);
gmac_write_reg(sc, GMAC_RXMACCONFIG, x);
gmac_write_reg(sc, GMAC_TXDMAKICK, i);
gmac_write_reg(sc, GMAC_SOFTWARERESET, 3);
gmac_write_reg(sc, GMAC_TXDMADESCBASEHI, 0);
gmac_write_reg(sc, GMAC_TXDMADESCBASELO,
gmac_write_reg(sc, GMAC_RXDMADESCBASEHI, 0);
gmac_write_reg(sc, GMAC_RXDMADESCBASELO,
gmac_write_reg(sc, GMAC_RXDMAKICK, NRXBUF);
gmac_write_reg(sc, GMAC_INTMASK, 0xffffffff);
gmac_write_reg(sc, GMAC_RANDOMSEED, tb);
gmac_write_reg(sc, GMAC_DATAPATHMODE, 4);
gmac_write_reg(sc, GMAC_TXDMACONFIG, 0xffc00);
gmac_write_reg(sc, GMAC_RXDMACONFIG, 0);
gmac_write_reg(sc, GMAC_MACPAUSE, 0x1bf0);
gmac_write_reg(sc, GMAC_INTERPACKETGAP0, 0);
gmac_write_reg(sc, GMAC_INTERPACKETGAP1, 8);
gmac_write_reg(sc, GMAC_INTERPACKETGAP2, 4);
gmac_write_reg(sc, GMAC_MINFRAMESIZE, ETHER_MIN_LEN);
gmac_write_reg(sc, GMAC_MAXFRAMESIZE, ETHER_MAX_LEN);
gmac_write_reg(sc, GMAC_PASIZE, 7);
gmac_write_reg(sc, GMAC_JAMSIZE, 4);
gmac_write_reg(sc, GMAC_ATTEMPTLIMIT, 0x10);
gmac_write_reg(sc, GMAC_MACCNTLTYPE, 0x8808);
gmac_write_reg(sc, GMAC_MACADDRESS0, (laddr[4] << 8) | laddr[5]);
gmac_write_reg(sc, GMAC_MACADDRESS1, (laddr[2] << 8) | laddr[3]);
gmac_write_reg(sc, GMAC_MACADDRESS2, (laddr[0] << 8) | laddr[1]);
gmac_write_reg(sc, GMAC_MACADDRESS3, 0);
gmac_write_reg(sc, GMAC_MACADDRESS4, 0);
gmac_write_reg(sc, GMAC_MACADDRESS5, 0);
gmac_write_reg(sc, GMAC_MACADDRESS6, 1);
gmac_write_reg(sc, GMAC_MACADDRESS7, 0xc200);
gmac_write_reg(sc, GMAC_MACADDRESS8, 0x0180);
gmac_write_reg(sc, GMAC_MACADDRFILT0, 0);
gmac_write_reg(sc, GMAC_MACADDRFILT1, 0);
gmac_write_reg(sc, GMAC_MACADDRFILT2, 0);
gmac_write_reg(sc, GMAC_MACADDRFILT2_1MASK, 0);
gmac_write_reg(sc, GMAC_MACADDRFILT0MASK, 0);
gmac_write_reg(sc, GMAC_HASHTABLE0 + i, 0);
gmac_write_reg(sc, GMAC_SLOTTIME, 0x40);
gmac_write_reg(sc, GMAC_TXMACCONFIG, 6);
gmac_write_reg(sc, GMAC_XIFCONFIG, 1);
gmac_write_reg(sc, GMAC_TXMACCONFIG, 0);
gmac_write_reg(sc, GMAC_XIFCONFIG, 5);
gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 3);
gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 0);
gmac_write_reg(sc, GMAC_HASHTABLE0 + i * 4, hash[i]);
gmac_write_reg(sc, GMAC_RXMACCONFIG, v);
gmac_write_reg(sc, GMAC_INTMASK, ~(GMAC_INT_TXEMPTY | GMAC_INT_RXDONE));
gmac_write_reg(sc, GMAC_MIFFRAMEOUTPUT,
gmac_write_reg(sc, GMAC_MIFFRAMEOUTPUT,
gmac_write_reg(sc, GMAC_TXMACCONFIG, 6);
gmac_write_reg(sc, GMAC_XIFCONFIG, 1);
gmac_write_reg(sc, GMAC_TXMACCONFIG, 0);
gmac_write_reg(sc, GMAC_XIFCONFIG, 5);
gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 3);
gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 0);
static inline void gmac_write_reg(struct gmac_softc *, int, u_int);