summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorLee Jones <lee.jones@linaro.org>2015-05-11 17:08:50 +0100
committerJassi Brar <jaswinder.singh@linaro.org>2015-06-11 22:19:45 +0530
commitdfabde206aa10ae71a89ba75e68b1f58a6336a05 (patch)
tree830d0e9e2b7ae1a090c02bd9d0293ccb011bdb90 /include/linux
parent0bae6af6d704f026d4938739786e0a69d50177ca (diff)
downloadblackbird-op-linux-dfabde206aa10ae71a89ba75e68b1f58a6336a05.tar.gz
blackbird-op-linux-dfabde206aa10ae71a89ba75e68b1f58a6336a05.zip
mailbox: Add ability for clients to request channels by name
This patch supplies a new framework API; mbox_request_channel_byname(). It works by supplying the usual client pointer as the first argument and a string as the second. The API will search the client's node for a 'mbox-names' property then request a channel in the normal way using the requested string's index as the expected second 'index' argument. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/mailbox_client.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/mailbox_client.h b/include/linux/mailbox_client.h
index 1726ccbd8009..44348710953f 100644
--- a/include/linux/mailbox_client.h
+++ b/include/linux/mailbox_client.h
@@ -40,6 +40,8 @@ struct mbox_client {
void (*tx_done)(struct mbox_client *cl, void *mssg, int r);
};
+struct mbox_chan *mbox_request_channel_byname(struct mbox_client *cl,
+ const char *name);
struct mbox_chan *mbox_request_channel(struct mbox_client *cl, int index);
int mbox_send_message(struct mbox_chan *chan, void *mssg);
void mbox_client_txdone(struct mbox_chan *chan, int r); /* atomic */
OpenPOWER on IntegriCloud