ahci: enable pci config command memory access

Issue #2620
This commit is contained in:
Alexander Boettcher 2018-01-08 12:04:05 +01:00 committed by Norman Feske
parent fcadbc9023
commit 666f6c9ac4

View File

@ -63,9 +63,9 @@ struct X86_hba : Platform::Hba
res_base = resource.base();
res_size = resource.size();
/* enable bus master */
uint16_t cmd = pci_device->config_read(PCI_CMD, Platform::Device::ACCESS_16BIT);
cmd |= 0x4;
cmd |= 0x2; /* respond to memory space accesses */
cmd |= 0x4; /* enable bus master */
_config_write(PCI_CMD, cmd, Platform::Device::ACCESS_16BIT);
irq.construct(pci_device->irq(0));