[hcflinux] redhat9 hsf modem "fix"

Alexander Istomin alec at sw-soft.com
Tue Apr 8 15:33:43 EDT 2003


Hello Marc,

I've got inspiron 1100 with build in modem, unsupported by
hsflinmodem, but I've added my modem data into linux_intel_smartmc.inf
(that seems the closes inf file for my modem) and tried to compile
kernel module, so I was able to do that only after making these
changes:
$ diff -u ostime.c.orig ostime.c
--- ostime.c.orig       Tue Apr  8 14:08:10 2003
+++ ostime.c    Tue Apr  8 14:07:28 2003
@@ -237,12 +237,12 @@
 
        unlock_kernel();
 
-       spin_lock_irq(&curtask->sigmask_lock);
+       spin_lock_irq(&curtask->sighand->siglock);
        sigemptyset(&curtask->blocked);
        flush_signals(curtask);
        { // flush_signal_handlers
                int i;
-               struct k_sigaction *ka = &curtask->sig->action[0];
+               struct k_sigaction *ka = &curtask->sighand->action[0];
                for (i = _NSIG ; i != 0 ; i--) {
                        if (ka->sa.sa_handler != SIG_IGN)
                                ka->sa.sa_handler = SIG_DFL;
@@ -252,7 +252,7 @@
                }
        }
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-       recalc_sigpending(curtask);
+       recalc_sigpending();
 #endif
        spin_unlock_irq(&curtask->sigmask_lock);
 
@@ -272,10 +272,10 @@
                interruptible_sleep_on(&mdmthrd_wait);
        }
 
-       spin_lock_irq(&curtask->sigmask_lock);
+       spin_lock_irq(&curtask->sighand->siglock);
        flush_signals(curtask);
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)
-       recalc_sigpending(curtask);
+       recalc_sigpending();
 #endif
        spin_unlock_irq(&curtask->sigmask_lock);

Please review that patch, I've just make it compile with 2.4.20-8
redhat 9 kernel, but I don't have experienc with kernel programming.

Please correct my assumption that this modem could be supported by
hsflinmodem, do I have any chance ? :)

I will be glad to hear any feedback from you, your software give me
some hope :))



PS: Here is modem hardware info:
00:1f.6 Modem: Intel Corp. 82801DB AC'97 Modem (rev 02)
00:1f.6 Class 0703: 8086:24c6 (rev 02)
        Subsystem: 14f1:5422
        Flags: bus master, medium devsel, latency 0, IRQ 10
        I/O ports at 1800 [size=256]
        I/O ports at 1c00 [size=128]
        Capabilities: [50] Power Management version 2

that's what ListMdm.exe says:
MODEM #1:
  PCI CONFIGURATION INFORMATION READ:
     VENDOR ID              : 8086
     DEVICE ID              : 24C6
     SUBVENDOR ID           : 14F1
     SUBDEVICE ID           : 5422
     REVISION ID            : 02

  DEDUCED INFORMATION:
     VENDOR NAME            : ICH
     DEVICE NAME            : UNKNOWN
     SUBVENDOR NAME         : ACTIONTEC, ZOLTRIX, ACEEX, TAICOM OR ASUS --                                    HTTP://WWW.ACTIONTEC.COM/, HTTP://WWW.TAICOM.COM,                               HTTP://WWW.ASUS.COM.TW/COMPANY/.                                                FOR 14F1/ICH GO TO -- DELL-HTTP://SUPPORT.DELL.COM/US/EN/INDEX.ASP
     MODEM TYPE             : HSF
     WINXP INBUILD SUPPORT  : NO

        

-- 
Best Regards
Alexander Istomin, SWsoft
alec at sw-soft.com, http://www.sw-soft.com




More information about the hcflinux mailing list