Deleted Added
full compact
27c27
< __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 130585 2004-06-16 09:47:26Z phk $");
---
> __FBSDID("$FreeBSD: head/sys/dev/ofw/ofw_console.c 131016 2004-06-24 02:57:11Z obrien $");
30a31
> #include "opt_ofw.h"
45c46,49
< #define OFW_POLL_HZ 4
---
> #ifndef OFWCONS_POLL_HZ
> #define OFWCONS_POLL_HZ 4 /* 50-100 works best on Ultra2 */
> #endif
> #define OFBURSTLEN 128 /* max number of bytes to write in one chunk */
128c132
< tp->t_cflag = TTYDEF_CFLAG|CLOCAL;
---
> tp->t_cflag = TTYDEF_CFLAG;
141c145
< polltime = hz / OFW_POLL_HZ;
---
> polltime = hz / OFWCONS_POLL_HZ;
164a169,170
> /* XXX Should be replaced with callout_stop(9) */
> untimeout(ofw_timeout, tp, ofw_timeouthandle);
181a188,190
> struct clist *cl;
> int len;
> u_char buf[OFBURSTLEN];
183,184c192,193
< if (tp->t_state & (TS_TIMEOUT | TS_TTSTOP)) {
< ttwwakeup(tp);
---
>
> if (tp->t_state & (TS_TIMEOUT | TS_BUSY | TS_TTSTOP))
186d194
< }
189,191c197,199
< while (tp->t_outq.c_cc != 0) {
< ofw_cons_putc(NULL, getc(&tp->t_outq));
< }
---
> cl = &tp->t_outq;
> len = q_to_b(cl, buf, OFBURSTLEN);
> OF_write(stdout, buf, len);