]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
NTB: MFV 53a788a7: Split ntb_setup_interrupts() into SOC, Xeon, and legacy routines
authorConrad Meyer <cem@FreeBSD.org>
Wed, 14 Oct 2015 23:46:15 +0000 (23:46 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Wed, 14 Oct 2015 23:46:15 +0000 (23:46 +0000)
commitc25a9f91c6d2c50a4bc2d31fbc81fee681b0e231
tree595ddf41259e945b40f524c5ef5d92720354c0dc
parente77461d7ca991e8f6bf29fe04216408a73b02282
NTB: MFV 53a788a7: Split ntb_setup_interrupts() into SOC, Xeon, and legacy routines

The names don't line up 100% with Linux.  Our routines are named
ntb_setup_interrupts, ntb_setup_xeon_msix, ntb_setup_soc_msix, and
ntb_setup_legacy_interrupt.  Linux SNB = FreeBSD Xeon; Linux BWD =
FreeBSD SOC.  Original Linux commit log:

This is an cleanup effort to make ntb_setup_msix() more readable - use
ntb_setup_bwd_msix() to init MSI-Xs on BWD hardware and
ntb_setup_snb_msix() - on SNB hardware.

Function ntb_setup_snb_msix() also initializes MSI-Xs the way it should
has been done - looping pci_enable_msix() until success or failure.

Authored by: Alexander Gordeev
Obtained from: Linux (Dual BSD/GPL driver)
Sponsored by: EMC / Isilon Storage Division
sys/dev/ntb/ntb_hw/ntb_hw.c