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