From fc002ebb357463c5911d414fc6107ce91f0484a0 Mon Sep 17 00:00:00 2001 From: Marcus Overhagen Date: Sun, 26 Aug 2007 21:26:16 +0000 Subject: [PATCH] print PCI vendor and device ID git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22079 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/add-ons/kernel/busses/scsi/ahci/ahci_controller.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 2852f0c2bd..8c6ed47e78 100644 --- a/src/add-ons/kernel/busses/scsi/ahci/ahci_controller.cpp +++ b/src/add-ons/kernel/busses/scsi/ahci/ahci_controller.cpp @@ -24,6 +24,11 @@ AHCIController::AHCIController(device_node_handle node, pci_device_module_info * fDevicePresentMask = (1 << 7) | (1 << 19); + uint16 vendorID = fPCI->read_pci_config(fPCIDevice, PCI_vendor_id, 2); + uint16 deviceID = fPCI->read_pci_config(fPCIDevice, PCI_device_id, 2); + + TRACE("AHCIController::AHCIController vendor %04x, device %04x\n", vendorID, deviceID); + uchar cap_ofs; status_t res = fPCI->find_pci_capability(fPCIDevice, PCI_cap_id_sata, &cap_ofs); if (res == B_OK) {