summaryrefslogtreecommitdiff
path: root/sys/dev/pci/if_tireg.h
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2006-01-16 01:47:40 +0000
committerBrad Smith <brad@cvs.openbsd.org>2006-01-16 01:47:40 +0000
commitb06d3f536887af2ffd3275bc3989d188568d9d80 (patch)
tree2d159f748eff00406ace3aab8b258b926e12a502 /sys/dev/pci/if_tireg.h
parent1178f8d0b737507e2d2a5bf71f042ab5d0710d5a (diff)
Cache the TX producer index instead of reading it every time ti_start is
called. From FreeBSD
Diffstat (limited to 'sys/dev/pci/if_tireg.h')
-rw-r--r--sys/dev/pci/if_tireg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/pci/if_tireg.h b/sys/dev/pci/if_tireg.h
index 12ccbc3c7be..e22182e2405 100644
--- a/sys/dev/pci/if_tireg.h
+++ b/sys/dev/pci/if_tireg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_tireg.h,v 1.20 2005/10/09 20:07:32 brad Exp $ */
+/* $OpenBSD: if_tireg.h,v 1.21 2006/01/16 01:47:39 brad Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -1117,6 +1117,7 @@ struct ti_softc {
#define ti_tx_considx ti_rdata->ti_tx_considx_r
struct ti_tx_desc *ti_tx_ring_nic;/* pointer to shared mem */
bus_dmamap_t ti_ring_map;
+ u_int16_t ti_tx_saved_prodidx;
u_int16_t ti_tx_saved_considx;
u_int16_t ti_rx_saved_considx;
u_int16_t ti_ev_saved_considx;