removed conditional testing code
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22352 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -83,19 +83,11 @@ ahci_supports_device(device_node_handle parent, bool *_noConnection)
|
|||||||
PCI_DEVICE_DEVICE_ID_ITEM, &deviceID, false) != B_OK)
|
PCI_DEVICE_DEVICE_ID_ITEM, &deviceID, false) != B_OK)
|
||||||
return B_ERROR;
|
return B_ERROR;
|
||||||
|
|
||||||
#if 1
|
|
||||||
if (strcmp(bus, "pci") || baseClass != PCI_mass_storage
|
if (strcmp(bus, "pci") || baseClass != PCI_mass_storage
|
||||||
|| subClass != PCI_sata || classAPI != PCI_sata_ahci) {
|
|| subClass != PCI_sata || classAPI != PCI_sata_ahci) {
|
||||||
free(bus);
|
free(bus);
|
||||||
return 0.0f;
|
return 0.0f;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
if (strcmp(bus, "pci") || baseClass != PCI_mass_storage
|
|
||||||
|| subClass != PCI_ide) {
|
|
||||||
free(bus);
|
|
||||||
return 0.0;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
TRACE("controller found! vendor 0x%04x, device 0x%04x\n",
|
TRACE("controller found! vendor 0x%04x, device 0x%04x\n",
|
||||||
vendorID, deviceID);
|
vendorID, deviceID);
|
||||||
|
|||||||
@@ -235,16 +235,10 @@ AHCIController::ResetController()
|
|||||||
uint32 saveCaps = fRegs->cap & (CAP_SMPS | CAP_SSS | CAP_SPM | CAP_EMS | CAP_SXS);
|
uint32 saveCaps = fRegs->cap & (CAP_SMPS | CAP_SSS | CAP_SPM | CAP_EMS | CAP_SXS);
|
||||||
uint32 savePI = fRegs->pi;
|
uint32 savePI = fRegs->pi;
|
||||||
|
|
||||||
#if 1
|
|
||||||
fRegs->ghc |= GHC_HR;
|
fRegs->ghc |= GHC_HR;
|
||||||
FlushPostedWrites();
|
FlushPostedWrites();
|
||||||
if (wait_until_clear(&fRegs->ghc, GHC_HR, 1000000) < B_OK)
|
if (wait_until_clear(&fRegs->ghc, GHC_HR, 1000000) < B_OK)
|
||||||
return B_TIMED_OUT;
|
return B_TIMED_OUT;
|
||||||
#else
|
|
||||||
fRegs->ghc &= ~GHC_AE;
|
|
||||||
fRegs->is = 0xffffffff;
|
|
||||||
FlushPostedWrites();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
fRegs->ghc |= GHC_AE;
|
fRegs->ghc |= GHC_AE;
|
||||||
FlushPostedWrites();
|
FlushPostedWrites();
|
||||||
|
|||||||
Reference in New Issue
Block a user