From a176739740d6e0ee4fdf184c4788e59191bf4315 Mon Sep 17 00:00:00 2001 From: mav Date: Sun, 2 Apr 2017 10:50:49 +0000 Subject: MFC r315579, r315670: Add initial support for multiple MSI-X vectors. For 24xx and above use 2 vectors (default and response queue). For 26xx and above use 3 vectors (default, response and ATIO queues). Due to global lock interrupt hardlers never run simultaneously now, but at least this allows to save one regitster read per interrupt. --- sys/dev/isp/ispmbox.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/dev/isp/ispmbox.h') diff --git a/sys/dev/isp/ispmbox.h b/sys/dev/isp/ispmbox.h index 8bd4d1a..e929e86 100644 --- a/sys/dev/isp/ispmbox.h +++ b/sys/dev/isp/ispmbox.h @@ -895,6 +895,8 @@ typedef struct { (IS_24XX(isp)? (isp->isp_fwattr & ISP2400_FW_ATTR_MULTIID) : 0) #define ISP_GET_VPIDX(isp, tag) \ (ISP_CAP_MULTI_ID(isp) ? tag : 0) +#define ISP_CAP_MSIX(isp) \ + (IS_24XX(isp)? (isp->isp_fwattr & ISP2400_FW_ATTR_MSIX) : 0) #define ISP_CAP_VP0(isp) \ (IS_24XX(isp)? (isp->isp_fwattr & ISP2400_FW_ATTR_VP0) : 0) -- cgit v1.1