arm: socfpga: Add clock for smp_twd timer
[linux-2.6.git] / include / linux / omap-mailbox.h
blobf8322d9cd2355e299af8388fd3c13e2da0fd9f62
1 /*
2 * omap-mailbox: interprocessor communication module for OMAP
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */
9 #ifndef OMAP_MAILBOX_H
10 #define OMAP_MAILBOX_H
12 typedef u32 mbox_msg_t;
13 struct omap_mbox;
15 typedef int __bitwise omap_mbox_irq_t;
16 #define IRQ_TX ((__force omap_mbox_irq_t) 1)
17 #define IRQ_RX ((__force omap_mbox_irq_t) 2)
19 int omap_mbox_msg_send(struct omap_mbox *, mbox_msg_t msg);
21 struct omap_mbox *omap_mbox_get(const char *, struct notifier_block *nb);
22 void omap_mbox_put(struct omap_mbox *mbox, struct notifier_block *nb);
24 void omap_mbox_save_ctx(struct omap_mbox *mbox);
25 void omap_mbox_restore_ctx(struct omap_mbox *mbox);
26 void omap_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq);
27 void omap_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_irq_t irq);
29 #endif /* OMAP_MAILBOX_H */