/* * omap-mailbox: interprocessor communication module for OMAP * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */#ifndef OMAP_MAILBOX_H#define OMAP_MAILBOX_Htypedefu32mbox_msg_t;structomap_mbox;typedefint__bitwiseomap_mbox_irq_t;#define IRQ_TX ((__force omap_mbox_irq_t) 1)#define IRQ_RX ((__force omap_mbox_irq_t) 2)intomap_mbox_msg_send(structomap_mbox*,mbox_msg_tmsg);structomap_mbox*omap_mbox_get(constchar*,structnotifier_block*nb);voidomap_mbox_put(structomap_mbox*mbox,structnotifier_block*nb);voidomap_mbox_save_ctx(structomap_mbox*mbox);voidomap_mbox_restore_ctx(structomap_mbox*mbox);voidomap_mbox_enable_irq(structomap_mbox*mbox,omap_mbox_irq_tirq);voidomap_mbox_disable_irq(structomap_mbox*mbox,omap_mbox_irq_tirq);#endif /* OMAP_MAILBOX_H */