Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Andriy Gapon <avg <at> icyb.net.ua>
Subject: Re: more keyboard controller commands
Newsgroups: gmane.comp.emulators.bochs.devel
Date: Thursday 11th September 2008 12:17:36 UTC (over 9 years ago)
on 10/09/2008 15:30 Andriy Gapon said the following:
> I recently used bochs to do some analysis and testing of "real" BIOS
> (i.e. proprietary one provided by motherboard manufacturer). Fortunately
> it was for hardware not very different from what bochs emulates - it was
> for 440BX/PIIX4. So I had to do very very little tweaking in bochs to
> make it happy, only some PCI ids.
> 
> The other thing that didn't work out of the bochs :-) was that the BIOS
> sent 0xCA command to keyboard controller and bochs didn't recognize it
> and ignored it, and that made the BIOS very unhappy.
> I found an excellent description of various keyboard controller commands
> here:
> http://homepages.cwi.nl/~aeb/linux/kbd/scancodes-8.html
(section 8.3)
> It includes even exotic/obsolete commands.
> 
> Here is what it got for 0xca:
> Command 0xca:  Read keyboard controller mode
> (AMI BIOS, VIA) Read keyboard controller mode to bit 0 of port 0x60. 0:
> ISA (AT) interface. 1: PS/2 (MCA)interface.
> 
> So I ended up patching bochs to queue 0x1 for port 0x60.
> I realize that this is too simplistic but it allowed me to proceed with
> my work. Probably this command should take into account controller state
> and also 0xcb should probably be supported for completeness.
> 
> I guess somebody might be interested in this as well as some other
> commands, so I decided to post this info.
> 

And the diff (attached).

-- 
Andriy Gapon
 
CD: 3ms