Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/drm2/i915/i915_dma.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
return 0; | return 0; | ||||
#endif | #endif | ||||
/* Get some space for it */ | /* Get some space for it */ | ||||
device_t vga; | device_t vga; | ||||
vga = device_get_parent(dev->dev); | vga = device_get_parent(dev->dev); | ||||
dev_priv->mch_res_rid = 0x100; | dev_priv->mch_res_rid = 0x100; | ||||
dev_priv->mch_res = BUS_ALLOC_RESOURCE(device_get_parent(vga), | dev_priv->mch_res = BUS_ALLOC_RESOURCE(device_get_parent(vga), | ||||
dev->dev, SYS_RES_MEMORY, &dev_priv->mch_res_rid, 0, ~0UL, | dev->dev, SYS_RES_MEMORY, &dev_priv->mch_res_rid, 0, ~0, | ||||
MCHBAR_SIZE, RF_ACTIVE | RF_SHAREABLE); | MCHBAR_SIZE, RF_ACTIVE | RF_SHAREABLE); | ||||
if (dev_priv->mch_res == NULL) { | if (dev_priv->mch_res == NULL) { | ||||
DRM_DEBUG_DRIVER("failed bus alloc\n"); | DRM_DEBUG_DRIVER("failed bus alloc\n"); | ||||
return -ENOMEM; | return -ENOMEM; | ||||
} | } | ||||
if (INTEL_INFO(dev)->gen >= 4) { | if (INTEL_INFO(dev)->gen >= 4) { | ||||
temp = rman_get_start(dev_priv->mch_res); | temp = rman_get_start(dev_priv->mch_res); | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |