diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-03-18 11:14:45 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2013-03-18 11:14:45 +0000 |
commit | 1fa75b4f2bd2be043d18261e8016ca4908199c6e (patch) | |
tree | b592e0cfa3e2ac743db2331038b07001292faba4 /sys/dev | |
parent | 382dd00c6837cacb85c12add64446c7032432a6d (diff) |
stash the number of stolen entries in the agp struct
will be used in a future commit
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/agp_i810.c | 3 | ||||
-rw-r--r-- | sys/dev/pci/agpvar.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c index e57ee91afc3..1f062d42778 100644 --- a/sys/dev/pci/agp_i810.c +++ b/sys/dev/pci/agp_i810.c @@ -1,4 +1,4 @@ -/* $OpenBSD: agp_i810.c,v 1.71 2012/09/25 10:19:46 jsg Exp $ */ +/* $OpenBSD: agp_i810.c,v 1.72 2013/03/18 11:14:44 jsg Exp $ */ /*- * Copyright (c) 2000 Doug Rabson @@ -594,6 +594,7 @@ 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: diff --git a/sys/dev/pci/agpvar.h b/sys/dev/pci/agpvar.h index 6c907d30eb2..c86124158f1 100644 --- a/sys/dev/pci/agpvar.h +++ b/sys/dev/pci/agpvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: agpvar.h,v 1.24 2013/03/17 21:49:00 kettenis Exp $ */ +/* $OpenBSD: agpvar.h,v 1.25 2013/03/18 11:14:44 jsg Exp $ */ /* $NetBSD: agpvar.h,v 1.4 2001/10/01 21:54:48 fvdl Exp $ */ /*- @@ -131,6 +131,7 @@ 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; |