Question about usb host controller 8042 emulation

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
doxrobot
Member
Member
Posts: 30
Joined: Wed May 15, 2013 10:14 am

Question about usb host controller 8042 emulation

Post by doxrobot »

My dev machine has no real 8042 controller/ps2 ports etc. There exists a bios option to use legacy mode with the usb host controller, I had a few questions related to that.

First, it says it uses SMI to copy the relevant mouse/kdb data from usb mmio locations to ISA legacy ports. Does this mean that the related interrupt for the usb host controller (on pci, inta, intb etc) must be configured for SMI within the IOAPIC? or am I thinking about this all wrong.

Secondly, if it is.. what happens if another device is sharing that same global system interrupt but it's configured for SMI.

Third, I would assume that with a usb host controller in legacy mode, that you cannot use it for any other purpose?

Thanks
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: Question about usb host controller 8042 emulation

Post by Combuster »

It basically means "designed to also mostly work with DOS and make no difference for recent Windows" rather than "designed for recent Windows". The moment you do things DOS never does, like resetting the KBC, accessing the APIC components or the USB components, whatever scheme the BIOS might have set up gets screwed over.

You'll probably find yourself without input devices until you deal with all devices properly and thoroughly like a "quality" OS - at which point all remains of the emulation are gone as well.

How the BIOS and chipset actually agree on the emulation is their own thing, differs between motherboards, and probably doesn't concern you anyway since the proper solution ignores the whole situation altogether.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply