Adding MMC bus in device manager
Change-Id: I4db868e89f426b0e9c7f8ed77d8f96442f7525e4 Reviewed-on: https://review.haiku-os.org/c/haiku/+/293 Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
8272123ea5
commit
8f76c031fc
@@ -1602,6 +1602,16 @@ device_node::_GetNextDriverPath(void*& cookie, KPath& _path)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case PCI_base_peripheral:
|
||||||
|
switch (subType) {
|
||||||
|
case PCI_sd_host:
|
||||||
|
_AddPath(*stack, "busses", "mmc");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
_AddPath(*stack, "drivers");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
if (sRootNode == this) {
|
if (sRootNode == this) {
|
||||||
_AddPath(*stack, "busses/pci");
|
_AddPath(*stack, "busses/pci");
|
||||||
@@ -1888,7 +1898,8 @@ device_node::Probe(const char* devicePath, uint32 updateCycle)
|
|||||||
// Check if this node matches the device path
|
// Check if this node matches the device path
|
||||||
// TODO: maybe make this extendible via settings file?
|
// TODO: maybe make this extendible via settings file?
|
||||||
if (!strcmp(devicePath, "disk")) {
|
if (!strcmp(devicePath, "disk")) {
|
||||||
matches = type == PCI_mass_storage;
|
matches = type == PCI_mass_storage
|
||||||
|
|| (type == PCI_base_peripheral && subType == PCI_sd_host);
|
||||||
} else if (!strcmp(devicePath, "audio")) {
|
} else if (!strcmp(devicePath, "audio")) {
|
||||||
matches = type == PCI_multimedia
|
matches = type == PCI_multimedia
|
||||||
&& (subType == PCI_audio || subType == PCI_hd_audio);
|
&& (subType == PCI_audio || subType == PCI_hd_audio);
|
||||||
|
|||||||
Reference in New Issue
Block a user