Home | History | Annotate | Download | only in dev

Lines Matching defs:gmac_write_reg

95 static inline void gmac_write_reg(struct gmac_softc *, int, u_int);
263 gmac_write_reg(struct gmac_softc *sc, int reg, u_int val)
275 gmac_write_reg(sc, GMAC_TXDMACONFIG, x);
278 gmac_write_reg(sc, GMAC_TXMACCONFIG, x);
288 gmac_write_reg(sc, GMAC_RXDMACONFIG, x);
291 gmac_write_reg(sc, GMAC_RXMACCONFIG, x);
301 gmac_write_reg(sc, GMAC_TXDMACONFIG, x);
304 gmac_write_reg(sc, GMAC_TXMACCONFIG, x);
314 gmac_write_reg(sc, GMAC_RXDMACONFIG, x);
317 gmac_write_reg(sc, GMAC_RXMACCONFIG, x);
480 gmac_write_reg(sc, GMAC_TXDMAKICK, i);
529 gmac_write_reg(sc, GMAC_SOFTWARERESET, 3);
544 gmac_write_reg(sc, GMAC_TXDMADESCBASEHI, 0);
545 gmac_write_reg(sc, GMAC_TXDMADESCBASELO,
547 gmac_write_reg(sc, GMAC_RXDMADESCBASEHI, 0);
548 gmac_write_reg(sc, GMAC_RXDMADESCBASELO,
550 gmac_write_reg(sc, GMAC_RXDMAKICK, NRXBUF);
569 gmac_write_reg(sc, GMAC_INTMASK, 0xffffffff);
587 gmac_write_reg(sc, GMAC_RANDOMSEED, tb);
590 gmac_write_reg(sc, GMAC_DATAPATHMODE, 4);
593 gmac_write_reg(sc, GMAC_TXDMACONFIG, 0xffc00);
594 gmac_write_reg(sc, GMAC_RXDMACONFIG, 0);
595 gmac_write_reg(sc, GMAC_MACPAUSE, 0x1bf0);
596 gmac_write_reg(sc, GMAC_INTERPACKETGAP0, 0);
597 gmac_write_reg(sc, GMAC_INTERPACKETGAP1, 8);
598 gmac_write_reg(sc, GMAC_INTERPACKETGAP2, 4);
599 gmac_write_reg(sc, GMAC_MINFRAMESIZE, ETHER_MIN_LEN);
600 gmac_write_reg(sc, GMAC_MAXFRAMESIZE, ETHER_MAX_LEN);
601 gmac_write_reg(sc, GMAC_PASIZE, 7);
602 gmac_write_reg(sc, GMAC_JAMSIZE, 4);
603 gmac_write_reg(sc, GMAC_ATTEMPTLIMIT, 0x10);
604 gmac_write_reg(sc, GMAC_MACCNTLTYPE, 0x8808);
606 gmac_write_reg(sc, GMAC_MACADDRESS0, (laddr[4] << 8) | laddr[5]);
607 gmac_write_reg(sc, GMAC_MACADDRESS1, (laddr[2] << 8) | laddr[3]);
608 gmac_write_reg(sc, GMAC_MACADDRESS2, (laddr[0] << 8) | laddr[1]);
609 gmac_write_reg(sc, GMAC_MACADDRESS3, 0);
610 gmac_write_reg(sc, GMAC_MACADDRESS4, 0);
611 gmac_write_reg(sc, GMAC_MACADDRESS5, 0);
612 gmac_write_reg(sc, GMAC_MACADDRESS6, 1);
613 gmac_write_reg(sc, GMAC_MACADDRESS7, 0xc200);
614 gmac_write_reg(sc, GMAC_MACADDRESS8, 0x0180);
615 gmac_write_reg(sc, GMAC_MACADDRFILT0, 0);
616 gmac_write_reg(sc, GMAC_MACADDRFILT1, 0);
617 gmac_write_reg(sc, GMAC_MACADDRFILT2, 0);
618 gmac_write_reg(sc, GMAC_MACADDRFILT2_1MASK, 0);
619 gmac_write_reg(sc, GMAC_MACADDRFILT0MASK, 0);
622 gmac_write_reg(sc, GMAC_HASHTABLE0 + i, 0);
624 gmac_write_reg(sc, GMAC_SLOTTIME, 0x40);
627 gmac_write_reg(sc, GMAC_TXMACCONFIG, 6);
628 gmac_write_reg(sc, GMAC_XIFCONFIG, 1);
630 gmac_write_reg(sc, GMAC_TXMACCONFIG, 0);
631 gmac_write_reg(sc, GMAC_XIFCONFIG, 5);
635 gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 3);
637 gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 0);
715 gmac_write_reg(sc, GMAC_HASHTABLE0 + i * 4, hash[i]);
717 gmac_write_reg(sc, GMAC_RXMACCONFIG, v);
734 gmac_write_reg(sc, GMAC_INTMASK, ~(GMAC_INT_TXEMPTY | GMAC_INT_RXDONE));
841 gmac_write_reg(sc, GMAC_MIFFRAMEOUTPUT,
864 gmac_write_reg(sc, GMAC_MIFFRAMEOUTPUT,
889 gmac_write_reg(sc, GMAC_TXMACCONFIG, 6);
890 gmac_write_reg(sc, GMAC_XIFCONFIG, 1);
892 gmac_write_reg(sc, GMAC_TXMACCONFIG, 0);
893 gmac_write_reg(sc, GMAC_XIFCONFIG, 5);
897 gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 3);
899 gmac_write_reg(sc, GMAC_MACCTRLCONFIG, 0);