diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2012-03-30 16:47:53 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-05-16 11:56:48 -0500 |
commit | f4f33e68921d3fffdac8c848979659a6dce552ce (patch) | |
tree | d8c29878f65c5873a2eaaa1f6c7830a7686c5806 /src/usr/mbox/mailboxsp.H | |
parent | bb809cc17398ed47d5ab40c9ffb97f95c5d8779f (diff) | |
download | talos-hostboot-f4f33e68921d3fffdac8c848979659a6dce552ce.tar.gz talos-hostboot-f4f33e68921d3fffdac8c848979659a6dce552ce.zip |
Mailbox DMA buffer capabilities
RTC:34032
Change-Id: Ib1e29210ffc183f9c3bd475ab8d9779b5a448909
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/932
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/mbox/mailboxsp.H')
-rw-r--r-- | src/usr/mbox/mailboxsp.H | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/usr/mbox/mailboxsp.H b/src/usr/mbox/mailboxsp.H index 9545dc076..b3c806d28 100644 --- a/src/usr/mbox/mailboxsp.H +++ b/src/usr/mbox/mailboxsp.H @@ -26,6 +26,7 @@ * @file mailboxrp.C * @brief Mailbox service provider declariation */ +#include "mbox_dma_buffer.H" #include <stdint.h> #include <builtins.h> #include <mbox/mboxif.H> @@ -178,6 +179,18 @@ namespace MBOX void trace_msg(const char * i_text, const mbox_msg_t & i_mbox_msg) const; + /** + * Handle a message to hbmbox from fspmbox + * @param[in] i_mbox_msg, the mbox message + */ + void handle_hbmbox_msg(mbox_msg_t & i_mbox_msg); + + /** + * Handle a response from FSP + * @param[in] i_mbox_msg, the mbox message + */ + void handle_hbmbox_resp(mbox_msg_t & i_mbox_msg); + enum { MAX_RETRY_COUNT = 3, @@ -218,6 +231,7 @@ namespace MBOX respond_q_t iv_respondq; //!< msg respond pending list registry_t iv_registry; //!< Registered queue + DmaBuffer iv_dmaBuffer; //!< DMA buffer manager TARGETING::Target * iv_trgt;//!< mailbox device driver target bool iv_rts; //!< ready to send flag bool iv_dma_pend; //!< Request pending for more DMA buffers |