]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[intelxl] Fix bit width of function number in PFFUNC_RID register
authorMichael Brown <mcb30@ipxe.org>
Mon, 14 Mar 2022 16:40:32 +0000 (16:40 +0000)
committerMichael Brown <mcb30@ipxe.org>
Mon, 8 Aug 2022 14:59:55 +0000 (15:59 +0100)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/net/intelxl.h

index a4a776d284b038924898fe848abc8c4f7ae1769b..69e98f0cd4eff6b99b91cfa802962ae65a1692b7 100644 (file)
@@ -993,7 +993,7 @@ intelxl_init_ring ( struct intelxl_ring *ring, unsigned int count, size_t len,
 /** Function Requester ID Information Register */
 #define INTELXL_PFFUNC_RID 0x09c000
 #define INTELXL_PFFUNC_RID_FUNC_NUM(x) \
-       ( ( (x) >> 0 ) & 0x3 )                          /**< Function number */
+       ( ( (x) >> 0 ) & 0x7 )                          /**< Function number */
 
 /** PF Queue Allocation Register */
 #define INTELXL_PFLAN_QALLOC 0x1c0400