XilinxProcessorIPLib/drivers/pciepsu/src/xpciepsu_caps.c
static u32 XPciePsu_GetBaseCapability(XPciePsu *InstancePtr, u8 Bus, u8 Device,
	u8 Function)
{
	u32 CapBase = 0x0;

	if (XPciePsu_ReadConfigSpace(InstancePtr, Bus, Device, Function,
		XPCIEPSU_CFG_P_CAP_PTR_T1_REG, &CapBase) != (u8)XST_SUCCESS) {
		return (u32)CAP_NOT_PRESENT;
	}
	return (u32)(CapBase & XPCIEPSU_CAP_PTR_LOC);
}
/******************************************************************************/
/**
* This function returns offset to the first of the Function's Linked
* list of the capability registers.
*
* @param   InstancePtr pointer to XPciePsu Instance Pointer
* @param   Bus is the number of the Bus
* @param   Device is the number of the Device
* @param   Function is number of the Function
*
* @return  offset to the first of the Function's capability register
* if available.	0x0 if not available
*
*******************************************************************************/
This function returns offset to the first of the Function's Linked
list of the capability registers.
This function returns offset to the first of the Function ' s Linked list of the capability registers .
static u32 XPciePsu_GetBaseCapability(XPciePsu *InstancePtr, u8 Bus, u8 Device,
	u8 Function)
{
	u32 CapBase = 0x0;
	if (XPciePsu_ReadConfigSpace(InstancePtr, Bus, Device, Function,
		XPCIEPSU_CFG_P_CAP_PTR_T1_REG, &CapBase) != (u8)XST_SUCCESS) {
		return (u32)CAP_NOT_PRESENT;
	}
	return (u32)(CapBase & XPCIEPSU_CAP_PTR_LOC);
}
static u32 XPciePsu_GetBaseCapability ( XPciePsu * InstancePtr , u8 Bus , u8 Device , u8 Function ) { u32 CapBase = 0x0 ; if ( XPciePsu_ReadConfigSpace ( InstancePtr , Bus , Device , Function , XPCIEPSU_CFG_P_CAP_PTR_T1_REG , & CapBase ) != ( u8 ) XST_SUCCESS ) { return ( u32 ) CAP_NOT_PRESENT ; } return ( u32 ) ( CapBase & XPCIEPSU_CAP_PTR_LOC ) ; }
This function returns offset to the first of the Function's Linked
list of the capability registers.
This function returns offset to the first of the Function ' s Linked list of the capability registers .