summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/drm/drm_memory.c
diff options
context:
space:
mode:
authoroga <oga@openbsd.org>2008-11-24 04:21:31 +0000
committeroga <oga@openbsd.org>2008-11-24 04:21:31 +0000
commitd2ba5afed5a8fabd7563fff3d75d8cf06161cd8b (patch)
tree659ccc4ed4f7e1a23d6ee0995a03c4ae169551bf /sys/dev/pci/drm/drm_memory.c
parentmake device works out if it's agp and tells the drm driver, not the (diff)
downloadwireguard-openbsd-d2ba5afed5a8fabd7563fff3d75d8cf06161cd8b.tar.xz
wireguard-openbsd-d2ba5afed5a8fabd7563fff3d75d8cf06161cd8b.zip
change drm_attach_mi to drm_attach_pci. we take the pci_attach_args, and
setup the drm_attach_args with the needed information. require interface version 1.1 libdrm has been requesting it for ages), which means that we can set the busid string at attach time. (generated in drm_attach_pci), also pass in the interrupt line and bst. Now we don't need dev->pa at all, so remove it, finally.
Diffstat (limited to 'sys/dev/pci/drm/drm_memory.c')
-rw-r--r--sys/dev/pci/drm/drm_memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_memory.c b/sys/dev/pci/drm/drm_memory.c
index a6f46e0bb7d..fd53412b0dc 100644
--- a/sys/dev/pci/drm/drm_memory.c
+++ b/sys/dev/pci/drm/drm_memory.c
@@ -88,7 +88,7 @@ drm_ioremap(struct drm_device *dev, drm_local_map_t *map)
* to map it.
*/
DRM_DEBUG("AGP map\n");
- map->bst = dev->pa.pa_memt;
+ map->bst = dev->bst;
if (bus_space_map(map->bst, map->offset,
map->size, BUS_SPACE_MAP_LINEAR, &map->bsh)) {
DRM_ERROR("ioremap fail\n");