summaryrefslogtreecommitdiff
path: root/sys/dev/pci/agp.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2013-08-06 09:45:33 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2013-08-06 09:45:33 +0000
commit3f52870ceacb81005cb85e25ece44fc1905319b2 (patch)
tree3140a4ea643f949a9087d8b3bf9edfe7929867fd /sys/dev/pci/agp.c
parenta81c1d8411fd014a2c5dfff5dfc5c16ea68ac1b2 (diff)
set ai_devid in struct agp_info so drm_agp_info() will work as intended
ok kettenis@
Diffstat (limited to 'sys/dev/pci/agp.c')
-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