diff --git a/pmon/fs/termio.c b/pmon/fs/termio.c index fc25e3f9..4a7cca61 100644 --- a/pmon/fs/termio.c +++ b/pmon/fs/termio.c @@ -267,6 +267,7 @@ term_ioctl (int fd, unsigned long op, ...) void *argp; va_list ap; struct TermDev *devp; + static int dsel=0; devp = (struct TermDev *)_file[fd].data; @@ -302,6 +303,10 @@ term_ioctl (int fd, unsigned long op, ...) break; case FIONREAD: scandevs (); +#ifdef INPUT_FROM_BOTH + dsel++; + if(devp->dev==1)p = &DevTable[dsel&1]; +#endif *(int *)argp = Qused (p->rxq); break; case SETINTR: diff --git a/sys/dev/pci/sm502.c b/sys/dev/pci/sm502.c index a4116374..7933135e 100644 --- a/sys/dev/pci/sm502.c +++ b/sys/dev/pci/sm502.c @@ -593,7 +593,7 @@ static void SmiSetRegs (void) preg ++; } #ifdef DEVBD2F_SM502 -write32(0x80000,0x0f213105); // bit21-20=1: 9-bit RGB 3:3:3. +write32(0x80000,0x0f413105); // bit21-20=1: 9-bit RGB 3:3:3. #endif }