From Jérôme Duval <jerome.duval@xxxxxxxxx>:
Jérôme Duval has uploaded this change for review. (
https://review.haiku-os.org/c/haiku/+/2463 ;)
Change subject: kernel: add data_acquisition mapping for input devices
......................................................................
kernel: add data_acquisition mapping for input devices
---
M src/system/kernel/device_manager/device_manager.cpp
1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://git.haiku-os.org:22/haiku refs/changes/63/2463/1
diff --git a/src/system/kernel/device_manager/device_manager.cpp
b/src/system/kernel/device_manager/device_manager.cpp
index 9518d65..8587d1b 100644
--- a/src/system/kernel/device_manager/device_manager.cpp
+++ b/src/system/kernel/device_manager/device_manager.cpp
@@ -1822,6 +1822,16 @@
break;
}
break;
+ case PCI_data_acquisition:
+ switch (subType) {
+ case PCI_data_acquisition_other:
+ _AddPath(*stack, "busses",
"i2c");
+ break;
+ default:
+ _AddPath(*stack, "drivers");
+ break;
+ }
+ break;
default:
if (sRootNode == this) {
_AddPath(*stack, "busses/pci");
@@ -2121,6 +2131,9 @@
matches = type == PCI_multimedia && subType ==
PCI_video;
} else if (!strcmp(devicePath, "power")) {
matches = type == PCI_data_acquisition;
+ } else if (!strcmp(devicePath, "input")) {
+ matches = type == PCI_data_acquisition
+ && subType ==
PCI_data_acquisition_other;
}
} else {
// This driver does not support types, but still wants
to its
--
To view, visit https://review.haiku-os.org/c/haiku/+/2463
To unsubscribe, or for help writing mail filters, visit
https://review.haiku-os.org/settings
Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Ib75b6e8db27361e395560d069dcbf136571b7a8e
Gerrit-Change-Number: 2463
Gerrit-PatchSet: 1
Gerrit-Owner: Jérôme Duval <jerome.duval@xxxxxxxxx>
Gerrit-MessageType: newchange