summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2013-08-06 09:45:32 +0000
committerjsg <jsg@openbsd.org>2013-08-06 09:45:32 +0000
commit85ff93793798df73f1769f78149b9449cf7537e8 (patch)
treea3206acdab3a41b6a20dbfccace35b31752a07f9 /sys/dev
parentMake it possible to have multiple clonable devices per major. (diff)
downloadwireguard-openbsd-85ff93793798df73f1769f78149b9449cf7537e8.tar.xz
wireguard-openbsd-85ff93793798df73f1769f78149b9449cf7537e8.zip
set ai_devid in struct agp_info so drm_agp_info() will work as intended
ok kettenis@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/agp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/pci/agp.c b/sys/dev/pci/agp.c
index 884c714a56f..8fc3869d720 100644
--- a/sys/dev/pci/agp.c
+++ b/sys/dev/pci/agp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp.c,v 1.37 2013/07/06 23:35:44 brad Exp $ */
+/* $OpenBSD: agp.c,v 1.38 2013/08/06 09:45:32 jsg Exp $ */
/*-
* Copyright (c) 2000 Doug Rabson
* All rights reserved.
@@ -816,8 +816,9 @@ agp_get_info(void *dev, struct agp_info *info)
info->ai_mode = 0; /* i810 doesn't have real AGP */
info->ai_aperture_base = sc->sc_apaddr;
info->ai_aperture_size = sc->sc_apsize;
- info->ai_memory_allowed = sc->sc_maxmem;
- info->ai_memory_used = sc->sc_allocated;
+ info->ai_memory_allowed = sc->sc_maxmem;
+ info->ai_memory_used = sc->sc_allocated;
+ info->ai_devid = sc->sc_id;
}
int