FreeBSD/sys/dev/nxge/xgehal/xgehal-device.c
/*
 * __hal_device_rts_mac_configure - Configure RTS steering based on
 * destination mac address.
 * @hldev: HAL device handle.
 *
 */
Configure RTS steering based on
destination mac address.
@hldev: HAL device handle.
Configure RTS steering based on destination mac address . @hldev : HAL device handle .
xge_hal_status_e
__hal_device_rts_mac_configure(xge_hal_device_t *hldev)
{
	xge_hal_pci_bar0_t *bar0 = (xge_hal_pci_bar0_t *)(void *)hldev->bar0;
	u64 val64;
	if (!hldev->config.rts_mac_en) {
	    return XGE_HAL_OK;
	}
	val64 = xge_os_pio_mem_read64(hldev->pdev, hldev->regh0,
	                &bar0->rts_ctrl);
	val64 |=  XGE_HAL_RTS_CTRL_ENHANCED_MODE;
	xge_os_pio_mem_write64(hldev->pdev, hldev->regh0,
	            val64, &bar0->rts_ctrl);
	return XGE_HAL_OK;
}
xge_hal_status_e __hal_device_rts_mac_configure ( xge_hal_device_t * hldev ) { xge_hal_pci_bar0_t * bar0 = ( xge_hal_pci_bar0_t * ) ( void * ) hldev -> bar0 ; u64 val64 ; if ( ! hldev -> config . rts_mac_en ) { return XGE_HAL_OK ; } val64 = xge_os_pio_mem_read64 ( hldev -> pdev , hldev -> regh0 , & bar0 -> rts_ctrl ) ; val64 |= XGE_HAL_RTS_CTRL_ENHANCED_MODE ; xge_os_pio_mem_write64 ( hldev -> pdev , hldev -> regh0 , val64 , & bar0 -> rts_ctrl ) ; return XGE_HAL_OK ; }
__hal_device_rts_mac_configure - Configure RTS steering based on
 destination mac address.
__hal_device_rts_mac_configure - Configure RTS steering based on destination mac address .
/*
	* Set the receive traffic steering mode from default(classic)
	* to enhanced.
	*/