summaryrefslogtreecommitdiff
path: root/xpp/mpp_funcs.h
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-22 11:48:40 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2009-11-22 11:48:40 +0000
commita55fc0054985fe01558a440fda80549fbe17e01a (patch)
treef6a72b209413f67c36c891d6e356eaa7d759e81e /xpp/mpp_funcs.h
parentd61645339b4515d0873288d908fbdb920b5b43d5 (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 Merged revisions 7609 via svnmerge from https://origsvn.digium.com/svn/dahdi/tools/trunk git-svn-id: http://svn.asterisk.org/svn/dahdi/tools/branches/2.2@7621 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 */