[OpenBIOS] [PATCH] drivers/escc.c: Add slot-names property ch-a node under escc
Programmingkid
programmingkidx at gmail.com
Tue Feb 9 04:45:42 CET 2016
Mac OS X's AppleSCCSerial kernel extension requires the slot-names property in order to use any serial ports. This patch adds the property.
After this patch is applied, the next thing that stops Mac OS X from using the serial port is something having to do with DMA.
http://www.opensource.apple.com/source/AppleSCCSerial/AppleSCCSerial-126.4.0/PPCSerialPort.cpp
In this file the setPortName() function is what does the searching for slot-names.
Index: drivers/escc.c
===================================================================
--- drivers/escc.c (revision 1378)
+++ drivers/escc.c (working copy)
@@ -456,6 +456,11 @@
NEWWORLD(set_property(dnode, "interrupts",
(char *)&props, 3 * sizeof(cell)));
+ /* The four numbers in front of Modem are needed for AppleSCCSerial
+ kernel extension compatibility. */
+ char *names = "0001Modem";
+ NEWWORLD(set_property(dnode, "slot-names", names, strlen(names) + 1));
+
device_end();
if (legacy) {
More information about the OpenBIOS
mailing list