autoconsole

Mike Kravetz kravetz at us.ibm.com
Tue Jan 20 04:04:18 EST 2004


On Mon, Jan 19, 2004 at 03:14:38PM +0100, Segher Boessenkool wrote:
>
> Point me to where to detect it, and I'll do it.
>

Me too. :)  Last week, I wrote some code to dump what I thought was
all the serial port related information from OF.  Unfortunately, I
couldn't make any sense of it.  This is like the code:

+               if (i > 8) {
+                       int offset;
+                       switch (reg[1]) {
+                               case 0x3f8:
+                                       offset = 0;
+                                       break;
+                               case 0x2f8:
+                                       offset = 1;
+                                       break;
+                               case 0x898:
+                                       offset = 2;
+                                       break;
+                               case 0x890:
+                                       offset = 3;
+                                       break;
+                               default:
+                                       /* We dont recognise the serial port */
+                                       return -ENODEV;
+                       }
+
+                       return add_preferred_console("ttyS", offset, NULL);
+               }

Can anyone point to where this stuff is documented?

--
Mike

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/




More information about the Linuxppc64-dev mailing list