0001
0002
0003
0004
0005
0006 #ifndef OMAP_MAILBOX_H
0007 #define OMAP_MAILBOX_H
0008
0009 typedef uintptr_t mbox_msg_t;
0010
0011 #define omap_mbox_message(data) (u32)(mbox_msg_t)(data)
0012
0013 typedef int __bitwise omap_mbox_irq_t;
0014 #define IRQ_TX ((__force omap_mbox_irq_t) 1)
0015 #define IRQ_RX ((__force omap_mbox_irq_t) 2)
0016
0017 struct mbox_chan;
0018 struct mbox_client;
0019
0020 struct mbox_chan *omap_mbox_request_channel(struct mbox_client *cl,
0021 const char *chan_name);
0022
0023 void omap_mbox_enable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
0024 void omap_mbox_disable_irq(struct mbox_chan *chan, omap_mbox_irq_t irq);
0025
0026 #endif