-/* $OpenBSD: re.c,v 1.177 2015/03/20 12:04:09 dlg Exp $ */
+/* $OpenBSD: re.c,v 1.178 2015/04/13 20:45:49 sthen Exp $ */
/* $FreeBSD: if_re.c,v 1.31 2004/09/04 07:54:05 ru Exp $ */
/*
* Copyright (c) 1997, 1998-2003
CSR_WRITE_4(sc, RL_MISC, CSR_READ_4(sc, RL_MISC) &
~0x00080000);
- /*
- * Enable transmit and receive.
- */
- CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_TX_ENB|RL_CMD_RX_ENB);
-
/*
* Set the initial TX and RX configuration.
*/
rxcfg |= RL_RXCFG_EARLYOFFV2;
CSR_WRITE_4(sc, RL_RXCFG, rxcfg);
+ /*
+ * Enable transmit and receive.
+ */
+ CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_TX_ENB | RL_CMD_RX_ENB);
+
/* Program promiscuous mode and multicast filters. */
re_iff(sc);
/* Start RX/TX process. */
CSR_WRITE_4(sc, RL_MISSEDPKT, 0);
-#ifdef notdef
- /* Enable receiver and transmitter. */
- CSR_WRITE_1(sc, RL_COMMAND, RL_CMD_TX_ENB|RL_CMD_RX_ENB);
-#endif
/*
* For 8169 gigE NICs, set the max allowed RX packet