added more debug output
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23302 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
152fffc418
commit
f0e260b3bf
@ -334,6 +334,18 @@ ide_adapter_init_channel(device_node_handle node, ide_channel ide_channel,
|
||||
|
||||
TRACE("PCI-IDE: init channel...\n");
|
||||
|
||||
if (1 /* debug */){
|
||||
uint8 bus, device, function;
|
||||
uint16 vendorID, deviceID;
|
||||
pnp->get_attr_uint16(node, PCI_DEVICE_BUS_ITEM, &bus, true);
|
||||
pnp->get_attr_uint16(node, PCI_DEVICE_DEVICE_ITEM, &device, true);
|
||||
pnp->get_attr_uint16(node, PCI_DEVICE_FUNCTION_ITEM, &function, true);
|
||||
pnp->get_attr_uint16(node, PCI_DEVICE_VENDOR_ID_ITEM, &vendorID, true);
|
||||
pnp->get_attr_uint16(node, PCI_DEVICE_DEVICE_ID_ITEM, &deviceID, true);
|
||||
TRACE("PCI-IDE: bus %3d, device %2d, function %2d: vendor %04x, device %04x\n",
|
||||
bus, device, function, vendorID, deviceID);
|
||||
}
|
||||
|
||||
// get device data
|
||||
if (pnp->get_attr_uint16(node, IDE_ADAPTER_COMMAND_BLOCK_BASE, &command_block_base, false) != B_OK
|
||||
|| pnp->get_attr_uint16(node, IDE_ADAPTER_CONTROL_BLOCK_BASE, &control_block_base, false) != B_OK
|
||||
@ -350,6 +362,8 @@ ide_adapter_init_channel(device_node_handle node, ide_channel ide_channel,
|
||||
goto err;
|
||||
}
|
||||
|
||||
TRACE("PCI-IDE: channel index %d\n", channel_index);
|
||||
|
||||
channel->node = node;
|
||||
channel->pci = controller->pci;
|
||||
channel->device = controller->device;
|
||||
|
Loading…
Reference in New Issue
Block a user