diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci.c b/src/add-ons/kernel/busses/scsi/ahci/ahci.c index c24fcf57c1..d77157f578 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci.c +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci.c @@ -101,18 +101,6 @@ ahci_supports_device(device_node_handle parent, bool *_noConnection) TRACE("controller found! vendor 0x%04x, device 0x%04x\n", vendorID, deviceID); -#if 0 - res = pci->find_pci_capability(device, PCI_cap_id_sata, &cap_ofs); - if (res == B_OK) { - uint32 satacr0; - uint32 satacr1; - TRACE("PCI SATA capability found at offset 0x%x\n", cap_ofs); - satacr0 = pci->read_pci_config(device, cap_ofs, 4); - satacr1 = pci->read_pci_config(device, cap_ofs + 4, 4); - TRACE("satacr0 = 0x%08x, satacr1 = 0x%08x\n", satacr0, satacr1); - } -#endif - free(bus); return 0.5; } diff --git a/src/add-ons/kernel/busses/scsi/ahci/ahci_controller.cpp b/src/add-ons/kernel/busses/scsi/ahci/ahci_controller.cpp index fec9f6293a..c6b1ad5a86 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci_controller.cpp +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_controller.cpp @@ -18,6 +18,19 @@ AHCIController::AHCIController(device_node_handle node, pci_device_module_info * { fDevicePresentMask = (1 << 7) | (1 << 19); + +#if 0 + uchar cap_ofs; + status_t res = fPCI->find_pci_capability(device, PCI_cap_id_sata, &cap_ofs); + if (res == B_OK) { + uint32 satacr0; + uint32 satacr1; + TRACE("PCI SATA capability found at offset 0x%x\n", cap_ofs); + satacr0 = pci->read_pci_config(device, cap_ofs, 4); + satacr1 = pci->read_pci_config(device, cap_ofs + 4, 4); + TRACE("satacr0 = 0x%08x, satacr1 = 0x%08x\n", satacr0, satacr1); + } +#endif }