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