summaryrefslogtreecommitdiff
path: root/xpp/mpp_funcs.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-19 22:39:29 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-19 22:39:29 +0000
commit39fb6f44d7f137a6a9625b1afed557f69e438b9a (patch)
treea3669271a8e2d4c76162e29a784deda5aa2e6b38 /xpp/mpp_funcs.h
parent50835291aad9c71510af2efdd785ed6ab1da37a3 (diff)
xpp: MPP protocol v.1.4
* New firmware loading protocol - Older one (1.3) is still supported for now * Support loading firmwares from Astribanks with a minimal firmware (1163) * astribank_tool -Q: always query, regardless of verbosity level xpp rev: up to 7559 git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/trunk@7609 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'xpp/mpp_funcs.h')
-rw-r--r--xpp/mpp_funcs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/xpp/mpp_funcs.h b/xpp/mpp_funcs.h
index 8ab4b3a..59bbc7d 100644
--- a/xpp/mpp_funcs.h
+++ b/xpp/mpp_funcs.h
@@ -45,7 +45,7 @@ int mpp_caps_set(struct astribank_device *astribank,
int mpp_extrainfo_get(struct astribank_device *astribank, struct extrainfo *info);
int mpp_extrainfo_set(struct astribank_device *astribank, const struct extrainfo *info);
int mpp_eeprom_blk_rd(struct astribank_device *astribank, uint8_t *buf, uint16_t offset, uint16_t len);
-int mpp_send_start(struct astribank_device *astribank, enum dev_dest dest);
+int mpp_send_start(struct astribank_device *astribank, enum dev_dest dest, const char *ihex_version);
int mpp_send_end(struct astribank_device *astribank);
int mpp_send_seg(struct astribank_device *astribank, const uint8_t *data, uint16_t offset, uint16_t len);
int mpp_reset(struct astribank_device *astribank, int full_reset);
@@ -72,7 +72,9 @@ int mpp_tws_setportnum(struct astribank_device *astribank, uint8_t portnum);
/* low-level */
int process_command(struct astribank_device *astribank, struct mpp_command *cmd, struct mpp_command **reply_ref);
-struct mpp_command *new_command(uint8_t op, uint16_t extra_data);
+struct mpp_command *new_command(uint8_t protocol_version, uint8_t op, uint16_t extra_data);
void free_command(struct mpp_command *cmd);
+const char *dev_dest2str(enum dev_dest dest);
+
#endif /* MPP_FUNCS_H */