/*                                                                          */
/* Function    : define PCI utilities                                       */
/*                                                                          */
/* Macros      1)                                                           */
/*                                                                          */
/*                                                                          */
#include  "windef.h"
#include  "mbdr_dsp_utils.h"
#include  "mbdr_dsp_pci_hw_utils.h"
#include  "mbdr_dsp_system_utils.h"
#include  "mbdr_dsp_pci_utils_base_tbl.h"

long      mbdr_dsp_pci_delay_cycle = 0;

void mbdr_dsp_pci_hw_utils_memcpy_write(
                         LONG    po_dst_external_buf_bofs,
                         void   *pi_dsp_src_buf_p,
                         size_t  pi_byte_size,
                         LONG    pi_mbdr_dsp_pci_utils_base_tbl_index)
{/* mbdr_dsp_pci_hw_utils_memcpy_write */

	/* example of using mbdr_dsp_pci_utils_base_tbl */
	memcpy((void *)(mbdr_dsp_pci_utils_base_tbl[pi_mbdr_dsp_pci_utils_base_tbl_index]+po_dst_external_buf_bofs),
			pi_dsp_src_buf_p,
			pi_byte_size);

}/* mbdr_dsp_pci_hw_utils_memcpy_write */


void mbdr_dsp_pci_hw_utils_memcpy_read(
                    void   *po_dsp_dst_buf_p,
                    LONG    pi_src_external_buf_bofs,
                    size_t  pi_byte_size,
                    LONG    pi_mbdr_dsp_pci_utils_base_tbl_index)
{/* mbdr_dsp_pci_hw_utils_memcpy_read */


}/* mbdr_dsp_pci_hw_utils_memcpy_read */


void mbdr_dsp_pci_hw_utils_poll_till_end_of_transaction(void)
{/* mbdr_dsp_pci_hw_utils_poll_till_end_of_transaction */


}/* mbdr_dsp_pci_hw_utils_poll_till_end_of_transaction */



void mbdr_dsp_pci_hw_utils_memcpy_write_no_base(
                         void         *po_dst_external_buf_pci_p,
                         const void   *pi_dsp_src_buf_p,
                         size_t  pi_byte_size)
{/* mbdr_dsp_pci_hw_utils_memcpy_write_no_base */


}/* mbdr_dsp_pci_hw_utils_memcpy_write_no_base */

void* mbdr_dsp_pci_hw_utils_memcpy_read_no_base(
                    void         *po_dsp_dst_buf_p,
                    const  void  *pi_src_external_buf_pci_p,
                    size_t        pi_byte_size)
{/* mbdr_dsp_pci_hw_utils_memcpy_read_no_base */


   return(po_dsp_dst_buf_p);
}/* mbdr_dsp_pci_hw_utils_memcpy_read_no_base */

