From e2ee3ffe9e137d7990c3dae292e82d36e7dffe81 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 8 Sep 2011 02:30:43 +0000 Subject: [PATCH] * detect storage controller and handle (ata/ide/scsi busses all set controller_name) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42723 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/devices/DevicesView.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/apps/devices/DevicesView.cpp b/src/apps/devices/DevicesView.cpp index 90743740a8..86e16efa00 100644 --- a/src/apps/devices/DevicesView.cpp +++ b/src/apps/devices/DevicesView.cpp @@ -323,7 +323,13 @@ DevicesView::AddDeviceAndChildren(device_node_cookie *node, Device* parent) break; } - // SCSI device + // ATA / SCSI / IDE controller + if (attributes[i].fName == "controller_name") { + newDevice = new Device(parent, BUS_PCI, + CAT_MASS, attributes[i].fValue); + } + + // SCSI device node if (attributes[i].fName == B_DEVICE_BUS && attributes[i].fValue == "scsi") { newDevice = new DeviceSCSI(parent);