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.
This commit is contained in:
parent
92ce23e27e
commit
5625270415
@ -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 */
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user