FreeBSD/sys/dev/pms/freebsd/driver/common/lxosapi.c
/******************************************************************************
ostiChipConfigReadBit32()
Purpose:
  Read 32-bit value from PCI configuration register
Parameters:
  tiRoot_t *ptiRoot (IN)     Pointer to tiRoot structure
  U32 chipConfigOffset (IN)  Offset to PCI configuration register
Return:
  32 bit data
******************************************************************************/
ostiChipConfigReadBit32()
Purpose:
Read 32-bit value from PCI configuration register
Parameters:
tiRoot_t *ptiRoot (IN)     Pointer to tiRoot structure
U32 chipConfigOffset (IN)  Offset to PCI configuration register
Return:
32 bit data
ostiChipConfigReadBit32 () Purpose : Read 32 - bit value from PCI configuration register Parameters : tiRoot_t * ptiRoot ( IN ) Pointer to tiRoot structure U32 chipConfigOffset ( IN ) Offset to PCI configuration register Return : 32 bit data
U32 ostiChipConfigReadBit32( tiRoot_t *ptiRoot, U32 chipConfigOffset )
{
  device_t lDev = TIROOT_TO_PCIDEV(ptiRoot);
  u_int32_t lData = 0;
  lData = pci_read_config( lDev, chipConfigOffset, 4 );
  return (U32)lData;
}
U32 ostiChipConfigReadBit32 ( tiRoot_t * ptiRoot , U32 chipConfigOffset ) { device_t lDev = TIROOT_TO_PCIDEV ( ptiRoot ) ; u_int32_t lData = 0 ; lData = pci_read_config ( lDev , chipConfigOffset , 4 ) ; return ( U32 ) lData ; }
ostiChipConfigReadBit32()
Purpose:
Read 32-bit value from PCI configuration register
Parameters:
tiRoot_t *ptiRoot (IN)     Pointer to tiRoot structure
U32 chipConfigOffset (IN)  Offset to PCI configuration register
Return:
32 bit data
ostiChipConfigReadBit32 () Purpose : Read 32 - bit value from PCI configuration register Parameters : tiRoot_t * ptiRoot ( IN ) Pointer to tiRoot structure U32 chipConfigOffset ( IN ) Offset to PCI configuration register Return : 32 bit data