summaryrefslogtreecommitdiffstats
path: root/sys/dev/fxp
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1997-02-04 11:44:15 +0000
committerdg <dg@FreeBSD.org>1997-02-04 11:44:15 +0000
commit635a58929be382956ced8ffa2271c2f291a88155 (patch)
tree354902f05bec5f555ef6176623787bdb8d0a1b9d /sys/dev/fxp
parent57ba1e051150cbd7fb35f1274d0b6e7aefb4d359 (diff)
downloadFreeBSD-src-635a58929be382956ced8ffa2271c2f291a88155.zip
FreeBSD-src-635a58929be382956ced8ffa2271c2f291a88155.tar.gz
Changed several configuration options:
Disabled the DMA byte counters - I had it this way originally and this is the recommended setting. Set crscdt to CRS only (0) since this is what it should be for an MII PHY. Also fixed some comments.
Diffstat (limited to 'sys/dev/fxp')
-rw-r--r--sys/dev/fxp/if_fxp.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c
index 257c3ef..8c16d6c 100644
--- a/sys/dev/fxp/if_fxp.c
+++ b/sys/dev/fxp/if_fxp.c
@@ -852,15 +852,15 @@ fxp_init(xsc)
cbp->cb_command = FXP_CB_COMMAND_CONFIG | FXP_CB_COMMAND_EL;
cbp->link_addr = -1; /* (no) next command */
cbp->byte_count = 22; /* (22) bytes to config */
- cbp->rx_fifo_limit = 8; /* rx fifo threshold */
- cbp->tx_fifo_limit = 0; /* tx fifo threshold */
+ cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */
+ cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */
cbp->adaptive_ifs = 0; /* (no) adaptive interframe spacing */
- cbp->rx_dma_bytecount = 16; /* (no) rx DMA max */
- cbp->tx_dma_bytecount = 16; /* (no) tx DMA max */
- cbp->dma_bce = 1; /* (enable) dma max counters */
+ cbp->rx_dma_bytecount = 0; /* (no) rx DMA max */
+ cbp->tx_dma_bytecount = 0; /* (no) tx DMA max */
+ cbp->dma_bce = 0; /* (disable) dma max counters */
cbp->late_scb = 0; /* (don't) defer SCB update */
cbp->tno_int = 0; /* (disable) tx not okay interrupt */
- cbp->ci_int = 0; /* (do) interrupt on CU not active */
+ cbp->ci_int = 0; /* interrupt on CU not active */
cbp->save_bf = prm; /* save bad frames */
cbp->disc_short_rx = !prm; /* discard short packets */
cbp->underrun_retry = 1; /* retry mode (1) on DMA underrun */
@@ -873,7 +873,7 @@ fxp_init(xsc)
cbp->interfrm_spacing = 6; /* (96 bits of) interframe spacing */
cbp->promiscuous = prm; /* promiscuous mode */
cbp->bcast_disable = 0; /* (don't) disable broadcasts */
- cbp->crscdt = 1; /* (CRS only) */
+ cbp->crscdt = 0; /* (CRS only) */
cbp->stripping = !prm; /* truncate rx packet to byte count */
cbp->padding = 1; /* (do) pad short tx packets */
cbp->rcv_crc_xfer = 0; /* (don't) xfer CRC to host */
OpenPOWER on IntegriCloud