ahci: correctly display version
* merge traces a bit.
This commit is contained in:
@@ -211,10 +211,11 @@ AHCIController::Init()
|
|||||||
(fRegs->cap2 & CAP2_BOH) ? "yes" : "no");
|
(fRegs->cap2 & CAP2_BOH) ? "yes" : "no");
|
||||||
}
|
}
|
||||||
TRACE("ghc: AHCI Enable: %s\n", (fRegs->ghc & GHC_AE) ? "yes" : "no");
|
TRACE("ghc: AHCI Enable: %s\n", (fRegs->ghc & GHC_AE) ? "yes" : "no");
|
||||||
TRACE("Ports Implemented Mask: %#08" B_PRIx32 "\n", fPortImplementedMask);
|
TRACE("Ports Implemented Mask: %#08" B_PRIx32 " Number of Available Ports:"
|
||||||
TRACE("Number of Available Ports: %d\n", count_bits_set(fPortImplementedMask));
|
" %d\n", fPortImplementedMask, count_bits_set(fPortImplementedMask));
|
||||||
TRACE("AHCI Version %" B_PRIu32 ".%" B_PRIu32 "\n", fRegs->vs >> 16, fRegs->vs & 0xff);
|
TRACE("AHCI Version %02x%02x.%02x.%02x Interrupt %u\n", fRegs->vs >> 24,
|
||||||
TRACE("Interrupt %u\n", fIRQ);
|
(fRegs->vs >> 16) & 0xff, (fRegs->vs >> 8) & 0xff, fRegs->vs & 0xff,
|
||||||
|
fIRQ);
|
||||||
|
|
||||||
// setup interrupt handler
|
// setup interrupt handler
|
||||||
if (install_io_interrupt_handler(fIRQ, Interrupt, this, 0) < B_OK) {
|
if (install_io_interrupt_handler(fIRQ, Interrupt, this, 0) < B_OK) {
|
||||||
|
|||||||
Reference in New Issue
Block a user