summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xbus-core.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-11-02 14:08:12 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-11-02 14:08:12 +0000
commit5fa21d8d3801ae92c901c70145c04d89e635776b (patch)
treefd7cc57b7f77d6c0a1b1edb43dedbc844f883780 /drivers/dahdi/xpp/xbus-core.h
parent147994d6d13d9af2a2b3d0f524be4723d7a46282 (diff)
xpp: Adaptations for E-Main-3
* An xbus transport now have a "model_string" member * The xpp_usb driver fills this with "usb:<idVendor>/<idProduct>/<bcdDevice>" * It is passed via environment to the "init_card_<type>_<protocol>" scripts * The FXS script uses this to condition two registers according to the power supply model. Signed-off-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10300 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xbus-core.h')
-rw-r--r--drivers/dahdi/xpp/xbus-core.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dahdi/xpp/xbus-core.h b/drivers/dahdi/xpp/xbus-core.h
index 6f4c672..67da031 100644
--- a/drivers/dahdi/xpp/xbus-core.h
+++ b/drivers/dahdi/xpp/xbus-core.h
@@ -29,8 +29,9 @@
#include "xframe_queue.h"
#include "xbus-pcm.h"
-#define MAX_BUSES 32
-#define XFRAME_DATASIZE 512
+#define MAX_BUSES 32
+#define XFRAME_DATASIZE 512
+#define MAX_ENV_STR 40
/* forward declarations */
struct xbus_workqueue;
@@ -108,6 +109,7 @@ struct xbus_transport {
atomic_t transport_refcount;
wait_queue_head_t transport_unused;
spinlock_t lock;
+ char model_string[MAX_ENV_STR];
};
#define MAX_SEND_SIZE(xbus) ((xbus)->transport.max_send_size)