a6824019fb
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 |
||
---|---|---|
.. | ||
firmwares | ||
card_bri.c | ||
card_bri.h | ||
card_echo.c | ||
card_echo.h | ||
card_fxo.c | ||
card_fxo.h | ||
card_fxs.c | ||
card_fxs.h | ||
card_global.c | ||
card_global.h | ||
card_pri.c | ||
card_pri.h | ||
Changelog_xpp | ||
dahdi_debug.c | ||
dahdi_debug.h | ||
init_card_1_30 | ||
init_card_2_30 | ||
init_card_3_30 | ||
init_card_4_30 | ||
init_card_5_30 | ||
Kbuild | ||
Kconfig | ||
Makefile | ||
mmapbus.c | ||
mmapbus.h | ||
mmapdrv.c | ||
param_doc | ||
parport_debug.c | ||
parport_debug.h | ||
print_fxo_modes.c | ||
xbus-core.c | ||
xbus-core.h | ||
xbus-pcm.c | ||
xbus-pcm.h | ||
xbus-sysfs.c | ||
xdefs.h | ||
xframe_queue.c | ||
xframe_queue.h | ||
xpd.h | ||
xpp_dahdi.c | ||
xpp_dahdi.h | ||
xpp_debug | ||
xpp_usb.c | ||
xpp.conf | ||
xpp.rules | ||
XppConfig.pm | ||
xproto.c | ||
xproto.h |