[OLPC-devel] Software action items and status

Ronald G Minnich rminnich at lanl.gov
Fri Jul 7 23:36:05 EDT 2006


some questions.

Ray.Tseng at quantatw.com wrote:

> void Before(void)
> {
> BYTE temp
> 	outportb(0x66, 0xD8);		// issue PreReset command to EC 
> 	while (inportb(0x66) & 0x02);

Does this really mean what it looks like? this resets the keyboard
controller? What implications does this have for, e.g., the program
trying to prompt the user in some way?
> 
> // force KBC into Reset Mode
> 	outportb(0x381, 0xFF);
> 	outportb(0x382, 0x14);
> 	Temp = inport(0x383) | 0x01;
> 	outportb(0x383, Temp);
> }

Is the keyboard actually functional at this point?

thanks
ron



More information about the Devel mailing list