Subject: Re: ibook
To: Bruce ONeel <beoneel@bluewin.ch>
From: Nathan J. Williams <nathanw@wasabisystems.com>
List: port-macppc
Date: 06/13/2002 00:09:41
Bruce ONeel <beoneel@bluewin.ch> writes:
> Would a usb to serial adapter let me use a regular modem
> on my iBook? Would it run ppp then? That
> would be great.
It would, or you could just use the patch that enables the modem
serial port on the iBook; it works fine, I spent most of the last
Christmas holiday dialed up from NetBSD on my iBook.
(I should probably just commit this. Would whoever posted this patch
speak up so I can give them credit?)
- Nathan
Index: obio.c
===================================================================
RCS file: /cvsroot/syssrc/sys/arch/macppc/dev/obio.c,v
retrieving revision 1.14
diff -c -r1.14 obio.c
*** obio.c 2001/06/17 19:54:47 1.14
--- obio.c 2002/06/13 04:08:02
***************
*** 133,138 ****
--- 133,146 ----
if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_APPLE_PADDINGTON)
out8(ca.ca_baseaddr + 0x37, 0x03);
+ /* XXX Enable internal modem (Pangea) */
+ if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_APPLE_PANGEA_MACIO) {
+ out8(ca.ca_baseaddr + 0x006a + 0x03, 0x04); /* set reset */
+ out8(ca.ca_baseaddr + 0x006a + 0x02, 0x04); /* power modem on */
+ out8(ca.ca_baseaddr + 0x006a + 0x03, 0x05); /* unset reset */
+ }
+
+
for (child = OF_child(node); child; child = OF_peer(child)) {
namelen = OF_getprop(child, "name", name, sizeof(name));
if (namelen < 0)