Hi Daniele,

I have successfully compiled your vISDN drivers on a Gentoo system running Linux kernel 2.6.13-r5 for evaluation. However when I ran it on my machine which contains an FXO card which uses the CCD HFC-4S chip programmed as a 'Computer Telephony Device', the hfc-4s driver detected it as its own. Hence the FXO driver was unable to detect the card.

I have made a small change to the hfc-4s_main.c file to explicitly define a pci isdn controller class as follows:-

#ifndef PCI_CLASS_ISDN_CONTROLLER
#define PCI_CLASS_ISDN_CONTROLLER     0x0204
#endif

static struct pci_device_id hfc_pci_ids[] = {
      {PCI_VENDOR_ID_CCD, PCI_DEVICE_ID_CCD_HFC_4S,
        PCI_ANY_ID, 0xb520, PCI_CLASS_ISDN_CONTROLLER << 8, ~0,
         ..............},
      {PCI_VENDOR_ID_CCD, PCI_DEVICE_ID_CCD_HFC_4S,
        PCI_ANY_ID, PCI_ANY_ID, PCI_CLASS_ISDN_CONTROLLER << 8, ~0,
         ..............},
       etc
      {0,}
};

Now it works properly. Maybe this change should also go into all the other drivers.

Regards,
Stephen Yong

_______________________________________________
Visdn-hackers mailing list
[email protected]
https://mailman.uli.it/mailman/listinfo/visdn-hackers

Reply via email to