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