FreeBSD/sys/dev/isci/isci.c
/**
 * @brief In this method the user must return the base address register (BAR)
 *        value for the supplied base address register number.
 *
 * @param[in] controller The controller for which to retrieve the bar number.
 * @param[in] bar_number This parameter depicts the BAR index/number to be read.
 *
 * @return Return a pointer value indicating the contents of the BAR.
 * @retval NULL indicates an invalid BAR index/number was specified.
 * @retval All other values indicate a valid VIRTUAL address from the BAR.
 */
@brief In this method the user must return the base address register (BAR)
value for the supplied base address register number.

@param[in] controller The controller for which to retrieve the bar number.
@param[in] bar_number This parameter depicts the BAR index/number to be read.

@return Return a pointer value indicating the contents of the BAR.
@retval NULL indicates an invalid BAR index/number was specified.
@retval All other values indicate a valid VIRTUAL address from the BAR.
@brief In this method the user must return the base address register ( BAR ) value for the supplied base address register number . @param [ in ] controller The controller for which to retrieve the bar number . @param [ in ] bar_number This parameter depicts the BAR index / number to be read . @return Return a pointer value indicating the contents of the BAR . @retval NULL indicates an invalid BAR index / number was specified . @retval All other values indicate a valid VIRTUAL address from the BAR .
void *
scic_cb_pci_get_bar(SCI_CONTROLLER_HANDLE_T controller,
    uint16_t bar_number)
{
	return ((void *)(POINTER_UINT)((uint32_t)bar_number << 28));
}
void * scic_cb_pci_get_bar ( SCI_CONTROLLER_HANDLE_T controller , uint16_t bar_number ) { return ( ( void * ) ( POINTER_UINT ) ( ( uint32_t ) bar_number << 28 ) ) ; }
@brief In this method the user must return the base address register (BAR)
        value for the supplied base address register number.
@brief In this method the user must return the base address register ( BAR ) value for the supplied base address register number .