diff -ru Apple16X50Serial-16/Apple16X50PCCard.cpp Apple16X50Serial.hack/Apple16X50PCCard.cpp --- Apple16X50Serial-16/Apple16X50PCCard.cpp Wed Apr 9 14:43:28 2003 +++ Apple16X50Serial.hack/Apple16X50PCCard.cpp Sat Jul 12 22:18:58 2003 @@ -105,6 +105,23 @@ cisparse_t parse; u_char buf[64]; + // Hack to replace CIS data + cisdump_t cisinfo = { 122, + { 0x01, 0x01, 0xff, 0x17, 0x03, 0x41, 0x00, 0xff, 0x20, 0x04, 0x3f, 0x01, 0x10, 0x07, 0x21, 0x02, + 0x02, 0x00, 0x15, 0x2a, 0x07, 0x00, 0x53, 0x69, 0x65, 0x72, 0x72, 0x61, 0x20, 0x57, 0x69, 0x72, + 0x65, 0x6c, 0x65, 0x73, 0x73, 0x00, 0x41, 0x69, 0x72, 0x43, 0x61, 0x72, 0x64, 0x20, 0x35, 0x35, + 0x35, 0x00, 0x41, 0x35, 0x35, 0x35, 0x00, 0x52, 0x65, 0x76, 0x20, 0x31, 0x00, 0xff, 0x1a, 0x05, + 0x01, 0x03, 0x00, 0x07, 0x73, 0x1b, 0x0b, 0xe0, 0x01, 0x18, 0xa3, 0x60, 0xf8, 0x03, 0x07, 0x30, + 0xbc, 0x3f, 0x1b, 0x08, 0xa1, 0x01, 0x08, 0xa3, 0x60, 0xf8, 0x02, 0x07, 0x1b, 0x08, 0xa2, 0x01, + 0x08, 0xa3, 0x60, 0xe8, 0x03, 0x07, 0x1b, 0x08, 0xa3, 0x01, 0x08, 0xa3, 0x60, 0xe8, 0x02, 0x07, + 0x1b, 0x04, 0xa4, 0x01, 0x08, 0x23, 0x14, 0x00, 0xff, 0x00 } }; + + DEBUG_IOLog("%s: replacing CIS info (len=%d)...\n", Name, cisinfo.Length); + if (Provider->cardServices(ReplaceCIS, (void*)handle, (void*)&cisinfo) == CS_SUCCESS) { + DEBUG_IOLog("succeeded!\n"); + } else { + DEBUG_IOLog("failed.\n"); + } tuple.DesiredTuple = CISTPL_FUNCE; tuple.Attributes = 0; tuple.TupleData = buf; @@ -239,7 +256,8 @@ if (!UARTInstance) goto fail; - if (Modem) { + if (1) { + //if (Modem) { setProperty(kIOTTYBaseNameKey, "pccard-modem"); if (!InterfaceBaseName) InterfaceBaseName="PCCard Modem"; // this will be displayed in NetworkPrefs diff -ru Apple16X50Serial-16/Apple16X50Serial.pbproj/project.pbxproj Apple16X50Serial.hack/Apple16X50Serial.pbproj/project.pbxproj --- Apple16X50Serial-16/Apple16X50Serial.pbproj/project.pbxproj Wed Apr 9 14:43:28 2003 +++ Apple16X50Serial.hack/Apple16X50Serial.pbproj/project.pbxproj Sat Jul 12 22:28:50 2003 @@ -408,12 +408,12 @@ CFBundleIdentifier com.apple.driver.Apple16X50PCCard - FunctionName - Serial Port IOClass com_apple_driver_16X50PCCard IOKitDebug - 0 + 1 + IONameMatch + pccard192,a555 IOProbeScore 1000 IOProviderClass