FreeBSD/sys/dev/nxge/xgehal/xgehal-mgmt.c
/**
 * xge_hal_getpause_data -Pause frame frame generation and reception.
 * @devh: HAL device handle.
 * @tx : A field to return the pause generation capability of the NIC.
 * @rx : A field to return the pause reception capability of the NIC.
 *
 * Returns the Pause frame generation and reception capability of the NIC.
 * Return value:
 *  void
 */
Pause frame frame generation and reception.
@devh: HAL device handle.
@tx : A field to return the pause generation capability of the NIC.
@rx : A field to return the pause reception capability of the NIC.

Returns the Pause frame generation and reception capability of the NIC.
Return value:
void
Pause frame frame generation and reception . @devh : HAL device handle . @tx : A field to return the pause generation capability of the NIC . @rx : A field to return the pause reception capability of the NIC . Returns the Pause frame generation and reception capability of the NIC . Return value : void
void xge_hal_getpause_data(xge_hal_device_h devh, int *tx, int *rx)
{
	xge_hal_device_t *hldev = (xge_hal_device_t*)devh;
	xge_hal_pci_bar0_t *bar0 = (xge_hal_pci_bar0_t *)hldev->bar0;
	u64 val64;
	val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0,
	            &bar0->rmac_pause_cfg);
	if (val64 & XGE_HAL_RMAC_PAUSE_GEN_EN)
	    *tx = 1;
	if (val64 & XGE_HAL_RMAC_PAUSE_RCV_EN)
	    *rx = 1;
}
void xge_hal_getpause_data ( xge_hal_device_h devh , int * tx , int * rx ) { xge_hal_device_t * hldev = ( xge_hal_device_t * ) devh ; xge_hal_pci_bar0_t * bar0 = ( xge_hal_pci_bar0_t * ) hldev -> bar0 ; u64 val64 ; val64 = xge_os_pio_mem_read64 ( hldev -> pdev , hldev -> regh0 , & bar0 -> rmac_pause_cfg ) ; if ( val64 & XGE_HAL_RMAC_PAUSE_GEN_EN ) * tx = 1 ; if ( val64 & XGE_HAL_RMAC_PAUSE_RCV_EN ) * rx = 1 ; }
xge_hal_getpause_data -Pause frame frame generation and reception.
xge_hal_getpause_data - Pause frame frame generation and reception .