Browse Source

r649@Knoppix: root | 2008-02-18 18:52:47 +0800

when output to serial,keyboard work well.Maybe serial printf add some delay.


git-svn-id: file:///svn/pmon-all/pmon-all@197 214b0138-1524-0410-9122-e5cb4b5bc56c
master
cpu 17 years ago
parent
commit
09167ef66f
  1. 5
      pmon/fs/termio.c
  2. 2
      sys/dev/pci/sm502.c

5
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:

2
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
}

Loading…
Cancel
Save