Use 8KB buffer for ZLRB_RING_SIZE to prevent overruns

This commit is contained in:
tjam 2009-01-28 19:57:37 +00:00
parent 99752e43b2
commit 7ffdc72669
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: zsvar.h,v 1.12 2008/04/29 06:53:01 martin Exp $ */
/* $NetBSD: zsvar.h,v 1.13 2009/01/28 19:57:37 tjam Exp $ */
/*
* Copyright (c) 1992, 1993
@ -105,8 +105,8 @@ struct zsdevice {
* When the value is a character + RR1 status, the character is in the
* upper 8 bits of the RR1 status.
*/
#define ZLRB_RING_SIZE 4096 /* ZS line ring buffer size */
#define ZLRB_RING_MASK 4095 /* mask for same */
#define ZLRB_RING_SIZE 8192 /* ZS line ring buffer size */
#define ZLRB_RING_MASK 8191 /* mask for same */
/* 0 is reserved (means "no interrupt") */
#define ZRING_RINT 1 /* receive data interrupt */