xpp: Add info to astribank_tool -Q
authorOron Peled <oron.peled@xorcom.com>
Thu, 15 Mar 2012 20:43:18 +0000 (20:43 +0000)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Thu, 15 Mar 2012 20:43:18 +0000 (20:43 +0000)
commitd8213d2adf8709eba913c176acbd163a3d11441f
tree1d758596dea02e4b93b48d51b08cd5ca215b16ca
parent273230b044c22121e1a1e32f49ae2e5e45031394
xpp: Add info to astribank_tool -Q

* In MPP serial protocol add support for SER_STAT_GET command
* Use it to query firmware for:
  - FPGA build configuration number (1 - old main, 2 - new main)
  - Watchdog timer state bit (ready/expired)
  - XPD Alive timer state bit (yes/no)
* Also cleanup the code in mpps_card_info():
  - In all MPP serial commands the send/recive buffers must
    have identical size
  - No need to alias struct pointers to byte-buffers, just use
    the structs themselves as buffers.

Signed-off-by: Oron Peled <oron.peled@xorcom.com>
Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com>

git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@10501 17933a7a-c749-41c5-a318-cba88f637d49
xpp/astribank_tool.c
xpp/mpp.h
xpp/mpptalk.c
xpp/mpptalk.h