remove unused agp_softc variables
authorjsg <jsg@openbsd.org>
Thu, 10 Oct 2024 03:36:10 +0000 (03:36 +0000)
committerjsg <jsg@openbsd.org>
Thu, 10 Oct 2024 03:36:10 +0000 (03:36 +0000)
sys/dev/pci/agp_i810.c
sys/dev/pci/agpvar.h

index 07f2490..6992da6 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: agp_i810.c,v 1.97 2024/05/24 06:02:53 jsg Exp $       */
+/*     $OpenBSD: agp_i810.c,v 1.98 2024/10/10 03:36:10 jsg Exp $       */
 
 /*-
  * Copyright (c) 2000 Doug Rabson
@@ -515,7 +515,6 @@ agp_i810_attach(struct device *parent, struct device *self, void *aux)
 
        isc->agpdev = (struct agp_softc *)agp_attach_bus(pa, &agp_i810_methods,
            isc->isc_apaddr, isc->isc_apsize, &isc->dev);
-       isc->agpdev->sc_stolen_entries = isc->stolen;
        return;
 out:
 
index 9e1dff9..9b79279 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: agpvar.h,v 1.39 2024/10/10 00:41:01 jsg Exp $ */
+/*     $OpenBSD: agpvar.h,v 1.40 2024/10/10 03:36:10 jsg Exp $ */
 /*     $NetBSD: agpvar.h,v 1.4 2001/10/01 21:54:48 fvdl Exp $  */
 
 /*-
@@ -85,12 +85,9 @@ struct agp_softc {
        pcitag_t                         sc_pcitag;
        bus_addr_t                       sc_apaddr;
        bus_size_t                       sc_apsize;
-       uint32_t                         sc_stolen_entries;
        pcireg_t                         sc_id;
 
-       int                              sc_opened;
        int                              sc_capoff;                     
-       int                              sc_nextid;     /* next mem block id */
        enum agp_acquire_state           sc_state;
 
        u_int32_t                        sc_maxmem;     /* mem upper bound */