FreeBSD/sys/dev/pms/freebsd/driver/common/lxosapi.c
/******************************************************************************
ostiChipWriteBit32()
Purpose:
  Write 32-bit value to PCI address register
Parameters:
  tiRoot_t *ptiRoot (IN)  Pointer to tiRoot structure
  U32 chipOffset (IN)     Offset to PCI configuration register    
  U32 chipValue (IN)      Value to be written
Return: none
******************************************************************************/
ostiChipWriteBit32()
Purpose:
Write 32-bit value to PCI address register
Parameters:
tiRoot_t *ptiRoot (IN)  Pointer to tiRoot structure
U32 chipOffset (IN)     Offset to PCI configuration register
U32 chipValue (IN)      Value to be written
Return: none
ostiChipWriteBit32 () Purpose : Write 32 - bit value to PCI address register Parameters : tiRoot_t * ptiRoot ( IN ) Pointer to tiRoot structure U32 chipOffset ( IN ) Offset to PCI configuration register U32 chipValue ( IN ) Value to be written Return : none
void ostiChipWriteBit32( tiRoot_t *ptiRoot, U32 chipOffset, U32 chipValue )
{
  ag_card_info_t *pCardInfo;
  pCardInfo = TIROOT_TO_CARDINFO(ptiRoot);
  *(U32 *)(pCardInfo->pciMemVirtAddr + chipOffset) = chipValue;
}
void ostiChipWriteBit32 ( tiRoot_t * ptiRoot , U32 chipOffset , U32 chipValue ) { ag_card_info_t * pCardInfo ; pCardInfo = TIROOT_TO_CARDINFO ( ptiRoot ) ; * ( U32 * ) ( pCardInfo -> pciMemVirtAddr + chipOffset ) = chipValue ; }
ostiChipWriteBit32()
Purpose:
Write 32-bit value to PCI address register
Parameters:
tiRoot_t *ptiRoot (IN)  Pointer to tiRoot structure
U32 chipOffset (IN)     Offset to PCI configuration register
U32 chipValue (IN)      Value to be written
Return: none
ostiChipWriteBit32 () Purpose : Write 32 - bit value to PCI address register Parameters : tiRoot_t * ptiRoot ( IN ) Pointer to tiRoot structure U32 chipOffset ( IN ) Offset to PCI configuration register U32 chipValue ( IN ) Value to be written Return : none