Lines Matching refs:iomap
153 do_ioremap(dev_info_t *devi, drm_device_iomap_t *iomap)
159 regnum = drm_get_pci_index_reg(devi, iomap->physical,
160 iomap->size, &offset);
163 " start=0x%x, size=0x%x", iomap->physical, iomap->size);
167 iomap->drm_regnum = regnum;
169 ret = ddi_regs_map_setup(devi, iomap->drm_regnum,
170 (caddr_t *)&(iomap->drm_base), (offset_t)offset,
171 (offset_t)iomap->size, &dev_attr, &iomap->drm_handle);
175 iomap->drm_handle = NULL;
185 drm_device_iomap_t iomap;
190 bzero(&iomap, sizeof (drm_device_iomap_t));
191 iomap.physical = map->offset;
192 iomap.size = map->size;
193 ret = do_ioremap(softstate->dip, &iomap);
202 map->dev_handle = iomap.drm_handle;
203 map->handle = (void *)iomap.drm_base;
204 map->dev_addr = iomap.drm_base;