--- trunk/src/devices/dev_dc7085.c 2007/10/08 16:20:48 31 +++ trunk/src/devices/dev_dc7085.c 2007/10/08 16:20:58 32 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: dev_dc7085.c,v 1.56 2006/07/23 14:37:34 debug Exp $ + * $Id: dev_dc7085.c,v 1.58 2006/09/06 04:55:35 debug Exp $ * * DC7085 serial controller, used in some DECstation models. */ @@ -46,7 +46,7 @@ #define DC_TICK_SHIFT 14 -#define MAX_QUEUE_LEN 4096 +#define MAX_QUEUE_LEN 32768 struct dc_data { struct dc7085regs regs; @@ -78,6 +78,7 @@ struct dc_data *d = (struct dc_data *) e; int entries_in_use = d->cur_rx_queue_pos_write - d->cur_rx_queue_pos_read; + while (entries_in_use < 0) entries_in_use += MAX_QUEUE_LEN; @@ -146,7 +147,7 @@ return; } - lk201_tick(&d->lk201); + lk201_tick(cpu->machine, &d->lk201); avail = d->cur_rx_queue_pos_write != d->cur_rx_queue_pos_read;