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:
parent
91f867e016
commit
747c1927fd
@ -83,19 +83,11 @@ ahci_supports_device(device_node_handle parent, bool *_noConnection)
|
||||
PCI_DEVICE_DEVICE_ID_ITEM, &deviceID, false) != B_OK)
|
||||
return B_ERROR;
|
||||
|
||||
#if 1
|
||||
if (strcmp(bus, "pci") || baseClass != PCI_mass_storage
|
||||
|| subClass != PCI_sata || classAPI != PCI_sata_ahci) {
|
||||
free(bus);
|
||||
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",
|
||||
vendorID, deviceID);
|
||||
|
@ -235,16 +235,10 @@ AHCIController::ResetController()
|
||||
uint32 saveCaps = fRegs->cap & (CAP_SMPS | CAP_SSS | CAP_SPM | CAP_EMS | CAP_SXS);
|
||||
uint32 savePI = fRegs->pi;
|
||||
|
||||
#if 1
|
||||
fRegs->ghc |= GHC_HR;
|
||||
FlushPostedWrites();
|
||||
if (wait_until_clear(&fRegs->ghc, GHC_HR, 1000000) < B_OK)
|
||||
return B_TIMED_OUT;
|
||||
#else
|
||||
fRegs->ghc &= ~GHC_AE;
|
||||
fRegs->is = 0xffffffff;
|
||||
FlushPostedWrites();
|
||||
#endif
|
||||
|
||||
fRegs->ghc |= GHC_AE;
|
||||
FlushPostedWrites();
|
||||
|
Loading…
Reference in New Issue
Block a user