From 39fb6f44d7f137a6a9625b1afed557f69e438b9a Mon Sep 17 00:00:00 2001 From: Tzafrir Cohen Date: Thu, 19 Nov 2009 22:39:29 +0000 Subject: 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 --- xpp/mpp_funcs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'xpp/mpp_funcs.h') 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 */ -- cgit v1.2.3