blob: 6dbcd2da03328c4ba83cfb9c2e8bc833312e5d4e [file] [log] [blame]
Suman Anna2ad51572018-07-11 18:42:11 -05001/* SPDX-License-Identifier: GPL-2.0 */
Suman Annac869c752013-03-12 17:55:29 -05002/*
3 * omap-mailbox: interprocessor communication module for OMAP
Suman Annac869c752013-03-12 17:55:29 -05004 */
5
6#ifndef OMAP_MAILBOX_H
7#define OMAP_MAILBOX_H
8
9typedef u32 mbox_msg_t;
Suman Annac869c752013-03-12 17:55:29 -050010
11typedef int __bitwise omap_mbox_irq_t;
12#define IRQ_TX ((__force omap_mbox_irq_t) 1)
13#define IRQ_RX ((__force omap_mbox_irq_t) 2)
14
Suman Anna8841a662014-11-03 17:05:50 -060015struct mbox_chan;
16struct mbox_client;
Suman Annac869c752013-03-12 17:55:29 -050017
Suman Anna8841a662014-11-03 17:05:50 -060018struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl,
19 const char *chan_name);
Suman Annac869c752013-03-12 17:55:29 -050020
Suman Anna8841a662014-11-03 17:05:50 -060021void omap_mbox_enable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
22void omap_mbox_disable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
Suman Annac869c752013-03-12 17:55:29 -050023
24#endif /* OMAP_MAILBOX_H */