~gandelman-a/ubuntu/precise/dahdi-linux/merge879743

« back to all changes in this revision

Viewing changes to drivers/dahdi/xpp/init_card_4_30

  • Committer: Adam Gandelman
  • Date: 2011-10-22 01:54:59 UTC
  • mfrom: (3.1.7 sid)
  • Revision ID: adamg@canonical.com-20111022015459-kx0rzv8gpef9gcmb
* Merge from Debian testing (LP: #879743). Remaining changes:
  - debian/dahdi-dkms.install.in : add .version
  - Import modifications by Javier Uruen Val <javi@warp.es>:
    - debian/system.conf
    - debian/modules
  - DKMS support:
    - debian/control: Added Depends to dahdi-linux (dahdi-dkms | dahdi-source)
    - debian/control: Add dkms package
    - debian/dahdi-dkms.install
    - debian/dahdi-dkms.postinst
    - debian/dahdi-dkms.prerm
    - debian/dahdi-linux.install
    - debian/rules: add code to automatically configure dkms.conf
    - debian/dkms.conf.in
* Dropped changes:
  - debian/control: Fix typo (right command is m-a a-i dahdi-source)
  - debian/patches/define_spinlock: Fixed upstream
* debian/rules: Debian moved to dh, re-add code to automatically configure
  dkms.conf
* debian/dkms.conf.in: update to reflect dahdi-linux-extra patch update
  (opvxa1200's new  location (subdir) and to include ap400 and opvxd115)
* debian/patches/zaphfc_d_channel_fix.patch: Correct typo in zaphfc module
  until fix gets synced into dahdi-linux-extra patch in Debian (LP: #612091)
* New upstream release (Closes: #639702).
  - Patch wcb4xxp_bn4s0e removed: merged upstream.
  - Patch define_spinlock removed: merged upstream.
  - Patch dahdi-linux-extra updated.
* Updated dahdi-linux-extra:
  - "Upstream" is now a complete git mirror.
  - Actually include ap400 in the list of modules to build.
  - Updated OpenVox drivers: opvxa1200 is a subdirectory 
  - Updated OpenVox drivers: opvxd115 added (digital cards).
* Patch define_spinlock: include a (slightly big) build fix from upstream.
* Standards version 3.9.2 (no change needed).
* Switch to dh.
* Patch notest: Remove a bogus upstream 'test' target.
* Lintian override for an odd interpteter a dummy kernel module init script. 
* Dahdi udev rules are now named 'dahdi-linux.conf'.
* Patch xpp_fix_2fxs6fxo: bugfix for Xorcom 2FXX6FXO module code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
local $SIG{__WARN__} = sub { die @_ };
6
6
 
7
7
#
8
 
# $Id: init_card_4_30 9666 2011-01-21 05:29:09Z sruffell $
 
8
# $Id: init_card_4_30 9709 2011-01-30 18:10:33Z tzafrir $
9
9
#
10
10
 
11
11
#
348
348
        } else {
349
349
                my $file = sprintf "/sys/bus/xpds/devices/%02d:%1d:%1d/pri_protocol",
350
350
                                $ENV{XBUS_NUMBER}, $ENV{UNIT_NUMBER}, $portno;
 
351
                # The 'open' will fail if the port does not exist.
 
352
                # (or rather: the XPD for it does not exist). While
 
353
                # we only read this file to get the default E1/T1 value,
 
354
                # if it does not exist, it also implies the commands sent would
 
355
                # get nowhere. So we might as well quit now.
351
356
                open(F, $file) || return;
352
357
                $sysfs_pri_protocol = <F>;
353
358
                close F;