diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-23 23:31:26 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-24 15:35:08 +0100 |
commit | ea5ce23d72cbb6571862a4356ca21890aae5ecc9 (patch) | |
tree | f21942c09ed14873540e8b96d3e551fa08e50d36 /include | |
parent | 8ade9b7bc235b644a1ce63ba0db9e855b118d267 (diff) |
mtp: Make it possible to block a link.
The semantic of a block is to take the physical
link down, call mtp_link_down and to make sure
that the link remains down and no packets are
forwarded there. The unblock call will reset the
link and this should get it back into operation
again.
Diffstat (limited to 'include')
-rw-r--r-- | include/mtp_data.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mtp_data.h b/include/mtp_data.h index b991f46..1d93f20 100644 --- a/include/mtp_data.h +++ b/include/mtp_data.h @@ -90,6 +90,8 @@ struct mtp_link { /* link test routine */ uint8_t test_ptrn[14]; + int blocked; + int link_no; int sltm_pending; int was_up; @@ -120,6 +122,9 @@ int mtp_link_set_submit_isup_data(struct mtp_link_set *link, int sls, const uint void mtp_link_set_init_slc(struct mtp_link_set *set); int mtp_link_set_add_link(struct mtp_link_set *set, struct mtp_link *link); +void mtp_link_block(struct mtp_link *link); +void mtp_link_unblock(struct mtp_link *link); + /* one time init function */ void mtp_link_set_init(void); |