dahdi-linux/drivers/dahdi/xpp
Shaun Ruffell a6824019fb dahdi: Expose dahdi devices in sysfs.
This exposes dahdi devices in sysfs and also exposes attributes that
will allow user space to control the registration order in spans. This
facilitates loading drivers out of order yet keeping consistent
span/channel numbering, which in turn will eventually allow the
blacklist for DAHDI drivers to be removed. The default behavior,
controlled with the auto_register module parameter on dahdi is to number
the spans / channels in order like is currently done. So this change
does not introduce any new behavior by default.

 * Writing (anything) to this attribute returns the span to its
   unassigned state
 * Fix dahdi_chan_unreg() echocan refcount
 * Add safeguard against duplicate unassignment to _dahdi_unregister_span()
 * Remove the span from device_node list, only in dahdi_unregister_device()
   and not in dahdi_unregister_span()
 * Free allocated span->span_device in span_sysfs_remove()
   [is it safe?, didn't cause problem so far...]

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

dahdi: Add "hardware_id" dahdi_device attribute.

- The "hardware_id" does not change with device location (e.g: when a PCI
  card is moved from one slot to another).
- Not all devices have this attribute. It is legal for it to be NULL (that
  is the default for all low-level drivers that do not set it explicitly).
- When "hardware_id" is NULL, the sysfs attribute value is "\n"

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Shaun Ruffell <sruffell@digium.com>

git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10275 a0bf4364-ded3-4de4-8d8a-66a801d63aff
2011-10-26 18:59:20 +00:00
..
firmwares xpp: firmware to detect the new 2+6 module 2011-09-05 09:51:55 +00:00
card_bri.c A number of cases of testing for unsigned int < 0 2011-07-04 14:05:19 +00:00
card_bri.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
card_echo.c xpp: Eliminate "set but unused" compiler warnings. 2011-07-04 14:04:56 +00:00
card_echo.h xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00
card_fxo.c xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00
card_fxo.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
card_fxs.c xpp: fix FXS D DTMF detection (not zero) 2011-09-27 17:10:48 +00:00
card_fxs.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
card_global.c xpp: Remove obsolete and unused OLD_PROC code 2011-05-23 13:37:40 +00:00
card_global.h xpp: Remove obsolete and unused OLD_PROC code 2011-05-23 13:37:40 +00:00
card_pri.c xpp: PRI_timing_priority can be static. 2011-07-20 16:49:07 +00:00
card_pri.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Changelog_xpp wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_debug.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
dahdi_debug.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
init_card_1_30 wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
init_card_2_30 wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
init_card_3_30 wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
init_card_4_30 xpp: init_card_4_30: add comment 2011-01-30 18:10:33 +00:00
init_card_5_30 xpp: also install init (non)script for xpd_echo 2011-06-30 21:38:47 +00:00
Kbuild xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00
Kconfig wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
Makefile wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
mmapbus.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
mmapbus.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
mmapdrv.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
param_doc wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
parport_debug.c Move test for DEFINE_SPINLOCK into include/dahdi/kernel.h 2010-09-24 22:44:53 +00:00
parport_debug.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
print_fxo_modes.c wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
xbus-core.c dahdi: Expose dahdi devices in sysfs. 2011-10-26 18:59:20 +00:00
xbus-core.h dahdi: Register devices instead of individual spans. 2011-10-26 18:58:14 +00:00
xbus-pcm.c xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00
xbus-pcm.h xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00
xbus-sysfs.c dahdi: Register devices instead of individual spans. 2011-10-26 18:58:14 +00:00
xdefs.h xpp: prepare for phonedev refactor 2011-01-30 14:11:49 +00:00
xframe_queue.c xpp: rate limit queue overflow messages 2011-07-20 16:48:46 +00:00
xframe_queue.h wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
xpd.h xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00
xpp_dahdi.c dahdi: Register devices instead of individual spans. 2011-10-26 18:58:14 +00:00
xpp_dahdi.h dahdi: Register devices instead of individual spans. 2011-10-26 18:58:14 +00:00
xpp_debug xpp: fix bashism in xpp_debug 2011-08-24 08:11:38 +00:00
xpp_usb.c Remove unused variables. 2011-06-02 20:00:36 +00:00
xpp.conf wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
xpp.rules wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
XppConfig.pm wct4xxp: Moving the transmit short detection behind debug module param. 2010-08-27 21:59:27 +00:00
xproto.c xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00
xproto.h xpd_echo: XPP Octasic echo canceler module 2011-06-28 18:23:00 +00:00