aboutsummaryrefslogtreecommitdiffstats
path: root/main/dahdi-linux-vanilla/zaphfc-dahdi-2.7.0.patch
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-02-01 20:55:22 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-01 20:55:22 +0000
commita89bb38a6765a19ffc5d6ae4397d2af2cbe6f221 (patch)
tree2d7ce7f3eeeacbe1ae10459a7adacc5742858019 /main/dahdi-linux-vanilla/zaphfc-dahdi-2.7.0.patch
parent4815c17138e1cbc9593e8d630c6d1d71c14e69ae (diff)
downloadaports-a89bb38a6765a19ffc5d6ae4397d2af2cbe6f221.tar.bz2
aports-a89bb38a6765a19ffc5d6ae4397d2af2cbe6f221.tar.xz
main/dahdi-linux-vanilla: new aport (replacing dahdi-linux-hardened)
Diffstat (limited to 'main/dahdi-linux-vanilla/zaphfc-dahdi-2.7.0.patch')
-rw-r--r--main/dahdi-linux-vanilla/zaphfc-dahdi-2.7.0.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/main/dahdi-linux-vanilla/zaphfc-dahdi-2.7.0.patch b/main/dahdi-linux-vanilla/zaphfc-dahdi-2.7.0.patch
new file mode 100644
index 0000000000..624cfe7b9a
--- /dev/null
+++ b/main/dahdi-linux-vanilla/zaphfc-dahdi-2.7.0.patch
@@ -0,0 +1,32 @@
+--- dahdi-linux-2.7.0/drivers/dahdi/zaphfc.c.orig 2013-11-13 14:47:31.772140792 +0200
++++ dahdi-linux-2.7.0/drivers/dahdi/zaphfc.c 2013-11-13 14:55:20.136270113 +0200
+@@ -687,19 +687,18 @@
+ if (!zthfc->ddev)
+ return -ENOMEM;
+
+- zthfc->ddev->manufacturer = "HFC";
+-
++ zthfc->ddev->manufacturer = "Cologne Chips";
++ zthfc->ddev->devicetype = "HFC-S PCI-A ISDN";
++ zthfc->ddev->location = kasprintf(GFP_KERNEL,
++ "PCI Bus %02d Slot %02d",
++ hfctmp->pcidev->bus->number,
++ PCI_SLOT(hfctmp->pcidev->devfn) + 1);
+ memset(&zthfc->span, 0x0, sizeof(struct dahdi_span)); // you never can tell...
+-
+ sprintf(zthfc->span.name, "ZTHFC/%d", hfc_dev_count + 1);
+- if (hfctmp->regs.nt_mode == 1) {
+- sprintf(zthfc->span.desc, "HFC-S PCI A ISDN card %d [NT]", hfc_dev_count + 1);
+- } else {
+- sprintf(zthfc->span.desc, "HFC-S PCI A ISDN card %d [TE]", hfc_dev_count + 1);
+- }
+-
++ sprintf(zthfc->span.desc, "HFC-S PCI A ISDN card %d [%s]",
++ hfc_dev_count + 1, hfctmp->regs.nt_mode ? "NT" : "TE");
++ zthfc->span.spantype = hfctmp->regs.nt_mode ? SPANTYPE_DIGITAL_BRI_NT : SPANTYPE_DIGITAL_BRI_TE;
+ zthfc->span.ops = &zaphfc_span_ops;
+-
+ zthfc->span.channels = 3;
+ zthfc->span.chans = zthfc->_chans;
+ for (i = 0; i < zthfc->span.channels; i++)
+