Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Use correct PCI BAR offsets



details:   https://anonhg.NetBSD.org/src/rev/e11d6744ab7a
branches:  trunk
changeset: 994934:e11d6744ab7a
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Nov 28 19:06:54 2018 +0000

description:
Use correct PCI BAR offsets

diffstat:

 sys/dev/pci/if_enavar.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r 7def02c2e399 -r e11d6744ab7a sys/dev/pci/if_enavar.h
--- a/sys/dev/pci/if_enavar.h   Wed Nov 28 16:51:41 2018 +0000
+++ b/sys/dev/pci/if_enavar.h   Wed Nov 28 19:06:54 2018 +0000
@@ -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
 



Home | Main Index | Thread Index | Old Index