/* vxge_hw_device_set_intr_type - Updates the configuration with new interrupt type. @hldev: HW device handle. @intr_mode: New interrupt type  */
u32 vxge_hw_device_set_intr_type(struct __vxge_hw_device *hldev, u32 intr_mode)
/* vxge_hw_device_set_intr_type - Updates the configuration with new interrupt type. @hldev: HW device handle. @intr_mode: New interrupt type  */
u32 vxge_hw_device_set_intr_type(struct __vxge_hw_device *hldev, u32 intr_mode)
{
	if ((intr_mode != VXGE_HW_INTR_MODE_IRQLINE) &&
	   (intr_mode != VXGE_HW_INTR_MODE_MSIX) &&
	   (intr_mode != VXGE_HW_INTR_MODE_MSIX_ONE_SHOT) &&
	   (intr_mode != VXGE_HW_INTR_MODE_DEF))
		intr_mode = VXGE_HW_INTR_MODE_IRQLINE;
	hldev->config.intr_mode = intr_mode;
	return intr_mode;
}