mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
Kernel/IntelGraphics: Add Generation enum to the Definitions file
This will be used to annotate which Generation is being used for each Intel iGPU we discover.
This commit is contained in:
parent
8042ae43c3
commit
e393071a9b
4 changed files with 13 additions and 12 deletions
|
@ -54,10 +54,9 @@ ErrorOr<void> IntelNativeGraphicsAdapter::initialize_adapter()
|
|||
PCI::enable_io_space(device_identifier());
|
||||
PCI::enable_memory_space(device_identifier());
|
||||
|
||||
using Generation = IntelDisplayConnectorGroup::Generation;
|
||||
switch (device_identifier().hardware_id().device_id) {
|
||||
case 0x29c2:
|
||||
m_connector_group = TRY(IntelDisplayConnectorGroup::try_create({}, Generation::Gen4, first_region, second_region));
|
||||
m_connector_group = TRY(IntelDisplayConnectorGroup::try_create({}, IntelGraphics::Generation::Gen4, first_region, second_region));
|
||||
return {};
|
||||
default:
|
||||
return Error::from_errno(ENODEV);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue