diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 04:26:51 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-11-24 04:26:51 +0000 |
commit | 5aeb2e90eaecfeb8cd6fd361603e2438561a45ec (patch) | |
tree | 41ebf5ee680f9d9bb5babcfdd0d0283c2e2672f4 /sys/dev/pci/drm/drm_drv.c | |
parent | 27c9abaed85d9199b957fb45182590ae4ca4b464 (diff) |
actually set the bus_space_tag
Diffstat (limited to 'sys/dev/pci/drm/drm_drv.c')
-rw-r--r-- | sys/dev/pci/drm/drm_drv.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index e385230dac8..e84445fed60 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -55,6 +55,12 @@ int drm_detach(struct device *, int); int drm_activate(struct device *, enum devact); int drmprint(void *, const char *); +/* + * attach drm to a pci-based driver. + * + * This function does all the pci-specific calculations for the + * drm_attach_args. + */ struct device * drm_attach_pci(const struct drm_driver_info *driver, struct pci_attach_args *pa, int is_agp, struct device *dev) @@ -119,6 +125,7 @@ drm_attach(struct device *parent, struct device *self, void *aux) dev->driver = da->driver; dev->dmat = da->dmat; + dev->bst = da->bst; dev->irq = da->irq; dev->unique = da->busid; dev->unique_len = da->busid_len; |