|
楼主 |
发表于 2008-7-15 11:10:55
|
显示全部楼层
This method requires that SMM code be invoked based on the incoming USB data. The SMM code manages the, l* X: y8 O; i# @1 z: m# N
USB data queues, takes the received data, and writes it into the 8042 device using the "D2" (keyboard) or "D3"
" Z# ^" I, J" R# e: X' Q! f(mouse) commands. This instructs the 8042 controller to process the incoming data as if it had come from the
5 s, B5 B$ F2 _5 x tstandard PS/2 keyboard or mouse. Once the data is placed in its registers, the 8042 controller generates the
4 N6 A8 i) N$ U+ P8 a, Vappropriate interrupt (IRQ1 for the keyboard or IRQ12 for the mouse). The data is then processed by the normal
5 U0 S& O8 l. f7 {1 p- G8 ~: Uinterrupt handlers. |
|