summaryrefslogtreecommitdiffstats
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-03-17 00:29:35 +0000
committerpeter <peter@FreeBSD.org>1996-03-17 00:29:35 +0000
commitf5f9b2ee23f286f9f5932ac00601b253ec59836c (patch)
treeb6b6c8f79811685b2b502e37d20f56b88b2d6642 /sys/dev/ic
parenta084148f20ceacd920e3ef933d795b2e90013735 (diff)
downloadFreeBSD-src-f5f9b2ee23f286f9f5932ac00601b253ec59836c.zip
FreeBSD-src-f5f9b2ee23f286f9f5932ac00601b253ec59836c.tar.gz
Changes to the Digi/Arnet SYNC driver:
1. Create 2 x 8k transmit buffer blocks in place of the 16k block previously. With this change the speed as tested with ttcp on a 2Mbit link went up from 206kbyte/s to 236kbyte/s. 2. Change the rest of the functions to also have the definition of the return value on a sepperate line. 3. Remove some unused variables. 4. Add code to recover from DMA underruns. 5. Reorder ar_get_packets() to handle errors better. 6. Only allocate a mbuf cluster if the data is more than the mbuf. (and in a second diff in addition to the above) 7. Stops the occasional DMA underruns that occurred when 2 channels are running at 2Mbit/s. Submitted by: John Hay <jhay@mikom.csir.co.za>
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/hd64570.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/hd64570.h b/sys/dev/ic/hd64570.h
index 706e33a..290e402 100644
--- a/sys/dev/ic/hd64570.h
+++ b/sys/dev/ic/hd64570.h
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: hd64570.h,v 1.2 1995/11/08 16:20:35 jhay Exp $
+ * $Id: hd64570.h,v 1.1.1.1 1995/11/21 02:32:04 peter Exp $
*/
#ifndef _HD64570_H_
#define _HD64570_H_
@@ -337,6 +337,12 @@ typedef struct sca_regs
#define SCA_DIR_BOF 0x20
#define SCA_DIR_COF 0x10
+#define SCA_PCR_BRC 0x10
+#define SCA_PCR_CCC 0x08
+#define SCA_PCR_PR2 0x04
+#define SCA_PCR_PR1 0x02
+#define SCA_PCR_PR0 0x01
+
typedef struct sca_descriptor
{
unsigned short cp;
OpenPOWER on IntegriCloud