FreeBSD/sys/dev/isci/isci_io_request.c
/**
 * @brief This callback method asks the user to provide the contents of the
 *        "address" field in the Scatter-Gather Element.
 *
 * @param[in] scif_user_io_request This parameter points to the user's
 *            IO request object.  It is a cookie that allows the user to
 *            provide the necessary information for this callback.
 * @param[in] sge_address This parameter specifies the address for the
 *            SGE from which to retrieve the address field.
 *
 * @return A physical address specifying the contents of the SGE's address
 *         field.
 */
@brief This callback method asks the user to provide the contents of the
"address" field in the Scatter-Gather Element.

@param[in] scif_user_io_request This parameter points to the user's
IO request object.  It is a cookie that allows the user to
provide the necessary information for this callback.
@param[in] sge_address This parameter specifies the address for the
SGE from which to retrieve the address field.

@return A physical address specifying the contents of the SGE's address
field.
@brief This callback method asks the user to provide the contents of the " address " field in the Scatter - Gather Element . @param [ in ] scif_user_io_request This parameter points to the user ' s IO request object . It is a cookie that allows the user to provide the necessary information for this callback . @param [ in ] sge_address This parameter specifies the address for the SGE from which to retrieve the address field . @return A physical address specifying the contents of the SGE ' s address field .
SCI_PHYSICAL_ADDRESS
scif_cb_sge_get_address_field(void *scif_user_io_request, void *sge_address)
{
	bus_dma_segment_t *sge = (bus_dma_segment_t *)sge_address;
	return ((SCI_PHYSICAL_ADDRESS)sge->ds_addr);
}
SCI_PHYSICAL_ADDRESS scif_cb_sge_get_address_field ( void * scif_user_io_request , void * sge_address ) { bus_dma_segment_t * sge = ( bus_dma_segment_t * ) sge_address ; return ( ( SCI_PHYSICAL_ADDRESS ) sge -> ds_addr ) ; }
@brief This callback method asks the user to provide the contents of the
        "address" field in the Scatter-Gather Element.
@brief This callback method asks the user to provide the contents of the " address " field in the Scatter - Gather Element .