Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Don't forget to install the pointer to the chip-...



details:   https://anonhg.NetBSD.org/src/rev/99f824f9f8d7
branches:  trunk
changeset: 514841:99f824f9f8d7
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Sep 11 06:30:38 2001 +0000

description:
Don't forget to install the pointer to the chip-specific chipc.

diffstat:

 sys/dev/pci/agp_intel.c |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (27 lines):

diff -r 14a3c9a9adae -r 99f824f9f8d7 sys/dev/pci/agp_intel.c
--- a/sys/dev/pci/agp_intel.c   Tue Sep 11 06:30:02 2001 +0000
+++ b/sys/dev/pci/agp_intel.c   Tue Sep 11 06:30:38 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: agp_intel.c,v 1.1 2001/09/10 10:01:02 fvdl Exp $       */
+/*     $NetBSD: agp_intel.c,v 1.2 2001/09/11 06:30:38 fvdl Exp $       */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -99,13 +99,17 @@
                return ENOMEM;
        }
        memset(isc, 0, sizeof *isc);
+
        sc->as_methods = &agp_intel_methods;
+       sc->as_chipc = isc;
+
        pci_get_capability(pa->pa_pc, pa->pa_tag, PCI_CAP_AGP, &sc->as_capoff,
            NULL);
 
        if (agp_map_aperture(pa, sc) != 0) {
                printf(": can't map aperture\n");
                free(isc, M_AGP);
+               sc->as_chipc = NULL;
                return ENXIO;
        }
 



Home | Main Index | Thread Index | Old Index