mirror of
https://github.com/RGBCube/serenity
synced 2025-10-27 18:02:35 +00:00
Instead of using a clunky switch-case paradigm, we now have all drivers being declaring two methods for their adapter class - create and probe. These methods are linked in each PCIGraphicsDriverInitializer structure, in a new s_initializers static list of them. Then, when we probe for a PCI device, we use each probe method and if there's a match, then the corresponding create method is called. As a result of this change, it's much more easy to add more drivers and the initialization code is more readable. |
||
|---|---|---|
| .. | ||
| Bochs | ||
| Console | ||
| Generic | ||
| Intel | ||
| VirtIOGPU | ||
| VMWare | ||
| Definitions.h | ||
| DisplayConnector.cpp | ||
| DisplayConnector.h | ||
| GenericGraphicsAdapter.h | ||
| GraphicsManagement.cpp | ||
| GraphicsManagement.h | ||