mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 08:56:40 +00:00
![]() To ensure actual PS2 code is not tied to the i8042 code, we make them separated in the following ways: - PS2KeyboardDevice and PS2MouseDevice classes are no longer inheriting from the IRQHandler class. Instead we have specific IRQHandler derived class for the i8042 controller implementation, which is used to ensure that we don't end up mixing PS2 code with low-level interrupt handling functionality. In the future this means that we could add a driver for other PS2 controllers that might have only one interrupt handler but multiple PS2 devices are attached, therefore, making it easier to put the right propagation flow from the controller driver all the way to the HID core code. - A simple abstraction layer is added between the PS2 command set which devices could use and the actual implementation low-level commands. This means that the code in PS2MouseDevice and PS2KeyboardDevice classes is no longer tied to i8042 implementation-specific commands, so now these objects could send PS2 commands to their PS2 controller and get a PS2Response which abstracts the given response too. |
||
---|---|---|
.. | ||
aarch64 | ||
x86_64 | ||
CPU.h | ||
CurrentTime.h | ||
DebugOutput.h | ||
DeferredCallEntry.h | ||
DeferredCallPool.cpp | ||
DeferredCallPool.h | ||
Delay.h | ||
init.cpp | ||
InterruptManagement.h | ||
Interrupts.h | ||
IRQController.h | ||
mcontext.h | ||
PageDirectory.h | ||
PageFault.cpp | ||
PageFault.h | ||
PCIMSI.h | ||
Processor.cpp | ||
Processor.h | ||
ProcessorSpecificDataID.h | ||
RegisterState.h | ||
SafeMem.h | ||
SmapDisabler.h | ||
ThreadRegisters.h | ||
TrapFrame.h |