Moved PCI access code, but the compiler refuses to convert 'device_node_info*' to 'pci_device_info*' in argument passing...

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22070 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Marcus Overhagen 2007-08-26 19:19:57 +00:00
parent 21255d1fc7
commit ddf188703a
2 changed files with 13 additions and 12 deletions

View File

@ -101,18 +101,6 @@ ahci_supports_device(device_node_handle parent, bool *_noConnection)
TRACE("controller found! vendor 0x%04x, device 0x%04x\n", TRACE("controller found! vendor 0x%04x, device 0x%04x\n",
vendorID, deviceID); 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); free(bus);
return 0.5; return 0.5;
} }

View File

@ -18,6 +18,19 @@ AHCIController::AHCIController(device_node_handle node, pci_device_module_info *
{ {
fDevicePresentMask = (1 << 7) | (1 << 19); 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
} }