Linux kernel 2.4.[29..31] with ISDN card Sitecom DC-105v2

New: The following is not needed since kernel version 2.6.14, cause it's still integrated!

Some month before I bought a Sitecom DC-105 ISDN card and had to see that it doesn't run with a vanilla Linux kernel 2.4.29 :-(
After researching and reading documents I tried to patch the kernel by my self - with success.

The situation: I'm not a kernel developer but for me it looks like the DC-105 (using a HFC chipset) should work with the hfc-pci hisax driver. But the driver accepts only cards which are listed in an internal table.

The solution: patch the driver, recompile the module, install and load it and see what happens.

Requirements

You should know how to compile and install your own kernel. If you don't know please contact the support of your distributor. Also some basics in C coding, using a editor like the "vi" and so on :-) are needed.

Step by Step

The files you have to modify (from inside /usr/src):
include/linux/pci_ids.h
drivers/isdn/hisax/config.c
drivers/isdn/hisax/hfc_pci.c
In pci_ids.h add the following two lines behind the line "/* Vendors and devices ..":
#define PCI_VENDOR_ID_SITECOM       0x182d
#define PCI_DEVICE_ID_DC105V2       0x3069

In config.c after the second appearance of the line "#ifdef CONFIG_HISAX_HFC_PCI" add the line (you should see some kind of list here):

{PCI_VENDOR_ID_SITECOM,  PCI_DEVICE_ID_DC105V2,          PCI_ANY_ID, PCI_ANY_ID},

In hfc_pci.c at the end of the id_list[] you have to add the following line:

{PCI_VENDOR_ID_SITECOM, PCI_DEVICE_ID_DC105V2, "Sitecom Europe B.V.", "DC-105 V2"},

And, of course ensure that in ".config" CONFIG_HISAX_HFC_PCI is defined..
Recompile the kernel modules and install them. That's it. Now your sitecom card should be recognized.

Last but not least

Same procedure for the 2.6.xx kernels..
Don't ask me about a generl setup of ISDN (provider setup, etc..). I don't use a standard distribution. So even here: I don't know!!!
And, of course, there is no guarantee that this will work for you!
rasca, So Okt 30 16:23:52 CET 2005