/*                                                                          */
/* Function    : define PCI utilities                                       */
/*                                                                          */
/* Macros      1)                                                           */
/*                                                                          */
/*                                                                          */

#include  "windef.h"
#include  "string.h"

#include  "mbdr_dsp_utils.h"
#include  "mbdr_dsp_pci_hw_utils.h"
#include  "mbdr_dsp_pci_manage_utils.h"


/* never read dummy */
extern USHORT mbdr_dsp_pci_manage_utils_dummy;
USHORT mbdr_dsp_pci_manage_utils_dummy;


void mbdr_dsp_pci_manage_utils_memcpy_write(
                         LONG    po_src_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_manage_utils_memcpy_write */


}/* mbdr_dsp_pci_manage_utils_memcpy_write */

void* mbdr_dsp_pci_manage_utils_memcpy_write_no_base(
                         void         *po_src_external_buf_pci_p,
                         const void   *pi_dsp_src_buf_p,
                         USHORT        pi_byte_size,
                         USHORT        pi_pci_memcpy_code)
{/* mbdr_dsp_pci_manage_utils_memcpy_write_no_base */


  return(po_src_external_buf_pci_p);

}/* mbdr_dsp_pci_manage_utils_memcpy_write_no_base */



void mbdr_dsp_pci_manage_utils_write_dw(
                         LONG    po_src_external_buf_bofs,
                         LONG    pi_32bit_data,
                         LONG    pi_mbdr_dsp_pci_utils_base_tbl_index,
                         USHORT        pi_pci_memcpy_code)
{/* mbdr_dsp_pci_manage_utils_write_dw */


  /* avoid warning */
  mbdr_dsp_utils_dummy = pi_pci_memcpy_code;


}/* mbdr_dsp_pci_manage_utils_write_dw */

void mbdr_dsp_pci_manage_utils_write_dw_no_base(
                         LONG    pi_32bit_data,
                         LONG   *po_dst_external_buf_pci_p,
                         USHORT  pi_pci_memcpy_code)
{/* mbdr_dsp_pci_manage_utils_write_dw_no_base */

  LONG input_dw;

  /* adjust interface of mbdr_dsp_pci_manage_utils_memcpy_write */
  input_dw = pi_32bit_data;

  mbdr_dsp_pci_manage_utils_memcpy_write_no_base(
                         (void  *)po_dst_external_buf_pci_p,
                         (const void   *)&input_dw,
                          sizeof(LONG),
                          pi_pci_memcpy_code);

}/* mbdr_dsp_pci_manage_utils_write_dw_no_base */

void mbdr_dsp_pci_manage_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_utils_memcpy_read */


    /* reads buffer */
    mbdr_dsp_pci_hw_utils_memcpy_read(
                    po_dsp_dst_buf_p,
                    pi_src_external_buf_bofs,
                    pi_byte_size,
                    pi_mbdr_dsp_pci_utils_base_tbl_index);

}/* mbdr_dsp_pci_utils_memcpy_read */


void mbdr_dsp_pci_manage_utils_poll_till_end_of_transaction(void)
{
}
