FreeBSD/sys/dev/nxge/xgehal/xgehal-device.c
/*
 * Herc's clock rate doubled, unless the slot is 33MHz.
 */
Herc's clock rate doubled, unless the slot is 33MHz.
Herc ' s clock rate doubled unless the slot is 33MHz .
unsigned int __hal_fix_time_ival_herc(xge_hal_device_t *hldev,
	                  unsigned int time_ival)
{
	if (xge_hal_device_check_id(hldev) == XGE_HAL_CARD_XENA)
	    return time_ival;
	xge_assert(xge_hal_device_check_id(hldev) == XGE_HAL_CARD_HERC);
	if (hldev->bus_frequency != XGE_HAL_PCI_BUS_FREQUENCY_UNKNOWN &&
	    hldev->bus_frequency != XGE_HAL_PCI_BUS_FREQUENCY_33MHZ)
	    time_ival *= 2;
	return time_ival;
}
unsigned int __hal_fix_time_ival_herc ( xge_hal_device_t * hldev , unsigned int time_ival ) { if ( xge_hal_device_check_id ( hldev ) == XGE_HAL_CARD_XENA ) return time_ival ; xge_assert ( xge_hal_device_check_id ( hldev ) == XGE_HAL_CARD_HERC ) ; if ( hldev -> bus_frequency != XGE_HAL_PCI_BUS_FREQUENCY_UNKNOWN && hldev -> bus_frequency != XGE_HAL_PCI_BUS_FREQUENCY_33MHZ ) time_ival *= 2 ; return time_ival ; }
Herc's clock rate doubled, unless the slot is 33MHz.
Herc ' s clock rate doubled unless the slot is 33MHz .