From 02aad920e95180f0c2412cfe66b373fa8378f499 Mon Sep 17 00:00:00 2001 From: jmcneill Date: Wed, 28 Nov 2018 19:06:54 +0000 Subject: [PATCH] Use correct PCI BAR offsets --- sys/dev/pci/if_enavar.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/pci/if_enavar.h b/sys/dev/pci/if_enavar.h index 6e5433f8fe6f..ae146adbb62d 100644 --- a/sys/dev/pci/if_enavar.h +++ b/sys/dev/pci/if_enavar.h @@ -1,4 +1,4 @@ -/* $NetBSD: if_enavar.h,v 1.4 2018/09/03 16:29:32 riastradh Exp $ */ +/* $NetBSD: if_enavar.h,v 1.5 2018/11/28 19:06:54 jmcneill Exp $ */ /*- * BSD LICENSE @@ -63,8 +63,8 @@ #define ENA_ADMIN_MSIX_VEC 1 #define ENA_MAX_MSIX_VEC(io_queues) (ENA_ADMIN_MSIX_VEC + (io_queues)) -#define ENA_REG_BAR 0 -#define ENA_MEM_BAR 2 +#define ENA_REG_BAR PCI_BAR(0) +#define ENA_MEM_BAR PCI_BAR(2) #define ENA_BUS_DMA_SEGS 32