diff options
author | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 20:43:18 +0000 |
---|---|---|
committer | Tzafrir Cohen <tzafrir.cohen@xorcom.com> | 2012-03-15 20:43:18 +0000 |
commit | 4f5d4f0b197b12f93a839c3d706d1e58fc764500 (patch) | |
tree | ebc616adef51092e3b03627566779ac539ef30e4 /xpp/mpptalk.h | |
parent | 5a21f60998533b80e220e8c660f0f1b1387e736a (diff) |
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.asterisk.org/svn/dahdi/tools/trunk@10501 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/mpptalk.h')
-rw-r--r-- | xpp/mpptalk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xpp/mpptalk.h b/xpp/mpptalk.h index ca3e0f9..49db037 100644 --- a/xpp/mpptalk.h +++ b/xpp/mpptalk.h @@ -69,6 +69,7 @@ int twinstar_show(struct astribank_device *astribank, FILE *fp); * Serial commands to FPGA */ int mpps_card_info(struct astribank_device *astribank, int unit, uint8_t *card_type, uint8_t *card_status); +int mpps_stat(struct astribank_device *astribank, int unit, uint8_t *maincard_version, uint8_t *status); /* * Twinstar |