Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x86/pci vmx(4) can be detached now.



details:   https://anonhg.NetBSD.org/src/rev/c35842b35684
branches:  trunk
changeset: 1000335:c35842b35684
user:      knakahara <knakahara%NetBSD.org@localhost>
date:      Tue Jul 23 04:50:05 2019 +0000

description:
vmx(4) can be detached now.

diffstat:

 sys/arch/x86/pci/if_vmx.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (43 lines):

diff -r 5a91cb2299d0 -r c35842b35684 sys/arch/x86/pci/if_vmx.c
--- a/sys/arch/x86/pci/if_vmx.c Tue Jul 23 04:32:06 2019 +0000
+++ b/sys/arch/x86/pci/if_vmx.c Tue Jul 23 04:50:05 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_vmx.c,v 1.36 2019/07/22 06:52:06 knakahara Exp $    */
+/*     $NetBSD: if_vmx.c,v 1.37 2019/07/23 04:50:05 knakahara Exp $    */
 /*     $OpenBSD: if_vmx.c,v 1.16 2014/01/22 06:04:17 brad Exp $        */
 
 /*
@@ -19,7 +19,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.36 2019/07/22 06:52:06 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_vmx.c,v 1.37 2019/07/23 04:50:05 knakahara Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -223,6 +223,7 @@
        struct vmxnet3_rxqueue *vmx_rxq;
 
        struct pci_attach_args *vmx_pa;
+       pci_chipset_tag_t vmx_pc;
 
        bus_space_tag_t vmx_iot0;
        bus_space_tag_t vmx_iot1;
@@ -528,6 +529,7 @@
 
        sc->vmx_dev = self;
        sc->vmx_pa = pa;
+       sc->vmx_pc = pa->pa_pc;
        if (pci_dma64_available(pa))
                sc->vmx_dmat = pa->pa_dmat64;
        else
@@ -802,7 +804,7 @@
 void
 vmxnet3_free_interrupts(struct vmxnet3_softc *sc)
 {
-       pci_chipset_tag_t pc = sc->vmx_pa->pa_pc;
+       pci_chipset_tag_t pc = sc->vmx_pc;
        int i;
 
        for (i = 0; i < sc->vmx_nintrs; i++) {



Home | Main Index | Thread Index | Old Index