/*                                                                          */
/* Function    : define PCI utils                                           */
/*                                                                          */
/* Remark in following functions                                            */
/*                                                                          */
/*                                                                          */

#include  "windef.h"
#include  "string.h"
#include  "mbdr_dsp_common_status.h"
#ifndef _MBDR_DSP_XPCI_HW_UTILS_FAMILY_H__
#define _MBDR_DSP_XPCI_HW_UTILS_FAMILY_H__				

/* sets required BAR registers up to input list */
/* each slice is 8Mbyte                         */
extern void mbdr_dsp_xpci_hw_utils_config_bar_registers(
                                     SHORT   pi_list_size,
									 SHORT   pi_first_bar_index,  /* the first BAR index               */
                                     ULONG  *pi_pci_base_tbl_p);  /* values to be load to base address */
									 
/* it returns to application the virtual memory of each PCI device                */
/* I asuume the answer for (5, 3, p) will be [0x61800000, 0x62000000, 0x62800000] */
/* the value 0x60000000 has to be taken from SDK                                  */
extern void mbdr_dsp_xpci_hw_utils_get_data_space_region_start_address(
                                     SHORT   pi_list_size,
									 SHORT   pi_first_region_index,  /* the first */
                                     ULONG  *po_data_space_region_start_address_tbl_p);     /* values to be load to base address */

#endif
