summaryrefslogtreecommitdiffstats
path: root/sys/dev/ti/if_tireg.h
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>1999-07-05 20:19:41 +0000
committerwpaul <wpaul@FreeBSD.org>1999-07-05 20:19:41 +0000
commit7dc88e732223fa4c5fbb800fee54b7f1ca85748b (patch)
treefd3e056cfc0e86d66dd7738e427169eb9e80e870 /sys/dev/ti/if_tireg.h
parent9e2349cc5f67f792f1067ad68eb1597b0c161cc7 (diff)
downloadFreeBSD-src-7dc88e732223fa4c5fbb800fee54b7f1ca85748b.zip
FreeBSD-src-7dc88e732223fa4c5fbb800fee54b7f1ca85748b.tar.gz
Remove ti_refill_rx_rings() and associated stuff; replace dirty RX buffers
in ti_rxeof() instead. This doesn't really seem to provide much in the way of a performance boost, and I'm pretty sure it can cause mbuf leakage in some extreme cases.
Diffstat (limited to 'sys/dev/ti/if_tireg.h')
-rw-r--r--sys/dev/ti/if_tireg.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/sys/dev/ti/if_tireg.h b/sys/dev/ti/if_tireg.h
index c79336a..31121bc 100644
--- a/sys/dev/ti/if_tireg.h
+++ b/sys/dev/ti/if_tireg.h
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: if_tireg.h,v 1.3 1999/05/26 23:01:50 gallatin Exp $
+ * $Id: if_tireg.h,v 1.46 1999/07/05 19:20:31 wpaul Exp $
*/
/*
@@ -1135,12 +1135,6 @@ struct ti_softc {
u_int16_t ti_std; /* current std ring head */
u_int16_t ti_mini; /* current mini ring head */
u_int16_t ti_jumbo; /* current jumo ring head */
- u_int16_t ti_std_old;
- u_int16_t ti_mini_old;
- u_int16_t ti_jumbo_old;
- u_int16_t ti_std_cnt;
- u_int16_t ti_mini_cnt;
- u_int16_t ti_jumbo_cnt;
SLIST_HEAD(__ti_mchead, ti_mc_entry) ti_mc_listhead;
SLIST_HEAD(__ti_jfreehead, ti_jpool_entry) ti_jfree_listhead;
SLIST_HEAD(__ti_jinusehead, ti_jpool_entry) ti_jinuse_listhead;
@@ -1185,6 +1179,7 @@ struct ti_softc {
#ifdef __alpha__
#undef vtophys
-#define vtophys(va) alpha_XXX_dmamap((vm_offset_t)va)
+#define vtophys(va) (pmap_kextract(((vm_offset_t) (va))) \
+ + 1*1024*1024*1024)
#endif
OpenPOWER on IntegriCloud