]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - sitara-epos/sitara-epos-kernel.git/blobdiff - arch/arm/plat-omap/include/plat/mailbox.h
omap: mailbox: Add an API for flushing the FIFO
[sitara-epos/sitara-epos-kernel.git] / arch / arm / plat-omap / include / plat / mailbox.h
index cc3921e9059c8995d55334dba80ee64cba8d9aff..e136529f30e21adf0d511baf412fbdc391413a7f 100644 (file)
@@ -29,6 +29,8 @@ struct omap_mbox_ops {
        void            (*fifo_write)(struct omap_mbox *mbox, mbox_msg_t msg);
        int             (*fifo_empty)(struct omap_mbox *mbox);
        int             (*fifo_full)(struct omap_mbox *mbox);
+       int             (*fifo_needs_flush)(struct omap_mbox *mbox);
+       mbox_msg_t      (*fifo_readback)(struct omap_mbox *mbox);
        /* irq */
        void            (*enable_irq)(struct omap_mbox *mbox,
                                                omap_mbox_irq_t irq);
@@ -61,6 +63,7 @@ struct omap_mbox {
        struct blocking_notifier_head   notifier;
 };
 
+int omap_mbox_msg_rx_flush(struct omap_mbox *mbox);
 int omap_mbox_msg_send(struct omap_mbox *, mbox_msg_t msg);
 void omap_mbox_init_seq(struct omap_mbox *);