mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-06 09:21:49 +00:00
platform_drv: fix Intel graphics PCI infos
GMCH is at offset 50 on Gen8+. Ref genodelabs/genode#4578
This commit is contained in:
parent
85e69f6882
commit
e1e70dd927
@ -94,8 +94,7 @@ void Driver::pci_intel_graphics_info(Device::Pci_config cfg,
|
|||||||
struct Host_bridge : Mmio
|
struct Host_bridge : Mmio
|
||||||
{
|
{
|
||||||
struct Gen_old_gmch_control : Register<0x52, 16> {};
|
struct Gen_old_gmch_control : Register<0x52, 16> {};
|
||||||
struct Gen_6_7_gmch_control : Register<0x50, 16> {};
|
struct Gen_gmch_control : Register<0x50, 16> {};
|
||||||
struct Gen_gmch_control : Register<0x52, 16> {};
|
|
||||||
|
|
||||||
using Mmio::Mmio;
|
using Mmio::Mmio;
|
||||||
};
|
};
|
||||||
@ -113,8 +112,6 @@ void Driver::pci_intel_graphics_info(Device::Pci_config cfg,
|
|||||||
|
|
||||||
if (gen < 6)
|
if (gen < 6)
|
||||||
gmch = config.read<Host_bridge::Gen_old_gmch_control>();
|
gmch = config.read<Host_bridge::Gen_old_gmch_control>();
|
||||||
else if (gen < 8)
|
|
||||||
gmch = config.read<Host_bridge::Gen_6_7_gmch_control>();
|
|
||||||
else
|
else
|
||||||
gmch = config.read<Host_bridge::Gen_gmch_control>();
|
gmch = config.read<Host_bridge::Gen_gmch_control>();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user