FreeBSD/sys/dev/pms/freebsd/driver/common/lxosapi.c
/******************************************************************************
ostiChipReadBit32Ext()
Purpose:
  Read 32-bit value from PCI address register
Parameters:
  tiRoot_t *ptiRoot (IN)  Pointer to tiRoot structure
  busBaseNumber            PCI BAR number
  U32 chipOffset (IN)     Offset to PCI configuration register    
Return:
  32 bit data
******************************************************************************/
ostiChipReadBit32Ext()
Purpose:
Read 32-bit value from PCI address register
Parameters:
tiRoot_t *ptiRoot (IN)  Pointer to tiRoot structure
busBaseNumber            PCI BAR number
U32 chipOffset (IN)     Offset to PCI configuration register
Return:
32 bit data
ostiChipReadBit32Ext () Purpose : Read 32 - bit value from PCI address register Parameters : tiRoot_t * ptiRoot ( IN ) Pointer to tiRoot structure busBaseNumber PCI BAR number U32 chipOffset ( IN ) Offset to PCI configuration register Return : 32 bit data
U32 ostiChipReadBit32Ext( tiRoot_t *ptiRoot,
			  U32 busBaseNumber,
			  U32 chipOffset )
{
  U32  data;
  ag_card_info_t *pCardInfo;
  pCardInfo = TIROOT_TO_CARDINFO(ptiRoot);
  data = *(U32 *)((pCardInfo->pciMemVirtAddrSpc[busBaseNumber]) + chipOffset );
  return data;
}
U32 ostiChipReadBit32Ext ( tiRoot_t * ptiRoot , U32 busBaseNumber , U32 chipOffset ) { U32 data ; ag_card_info_t * pCardInfo ; pCardInfo = TIROOT_TO_CARDINFO ( ptiRoot ) ; data = * ( U32 * ) ( ( pCardInfo -> pciMemVirtAddrSpc [ busBaseNumber ] ) + chipOffset ) ; return data ; }
ostiChipReadBit32Ext()
Purpose:
Read 32-bit value from PCI address register
Parameters:
tiRoot_t *ptiRoot (IN)  Pointer to tiRoot structure
busBaseNumber            PCI BAR number
U32 chipOffset (IN)     Offset to PCI configuration register
Return:
32 bit data
ostiChipReadBit32Ext () Purpose : Read 32 - bit value from PCI address register Parameters : tiRoot_t * ptiRoot ( IN ) Pointer to tiRoot structure busBaseNumber PCI BAR number U32 chipOffset ( IN ) Offset to PCI configuration register Return : 32 bit data