Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/dpaa2/dpaa2_rc.c
| Show First 20 Lines • Show All 257 Lines • ▼ Show 20 Lines | if (device_get_parent(child) != rcdev) | ||||
| return (BUS_ALLOC_RESOURCE(device_get_parent(rcdev), child, | return (BUS_ALLOC_RESOURCE(device_get_parent(rcdev), child, | ||||
| type, rid, start, end, count, flags)); | type, rid, start, end, count, flags)); | ||||
| return (dpaa2_rc_alloc_multi_resource(rcdev, child, type, rid, start, | return (dpaa2_rc_alloc_multi_resource(rcdev, child, type, rid, start, | ||||
| end, count, flags)); | end, count, flags)); | ||||
| } | } | ||||
| static int | static int | ||||
| dpaa2_rc_release_resource(device_t rcdev, device_t child, int type, int rid, | dpaa2_rc_release_resource(device_t rcdev, device_t child, struct resource *r) | ||||
| struct resource *r) | |||||
| { | { | ||||
| struct resource_list *rl; | struct resource_list *rl; | ||||
| struct dpaa2_devinfo *dinfo; | struct dpaa2_devinfo *dinfo; | ||||
| if (device_get_parent(child) != rcdev) | if (device_get_parent(child) != rcdev) | ||||
| return (BUS_RELEASE_RESOURCE(device_get_parent(rcdev), child, | return (BUS_RELEASE_RESOURCE(device_get_parent(rcdev), child, | ||||
| type, rid, r)); | r)); | ||||
| dinfo = device_get_ivars(child); | dinfo = device_get_ivars(child); | ||||
| rl = &dinfo->resources; | rl = &dinfo->resources; | ||||
| return (resource_list_release(rl, rcdev, child, type, rid, r)); | return (resource_list_release(rl, rcdev, child, r)); | ||||
| } | } | ||||
| static void | static void | ||||
| dpaa2_rc_child_deleted(device_t rcdev, device_t child) | dpaa2_rc_child_deleted(device_t rcdev, device_t child) | ||||
| { | { | ||||
| struct dpaa2_devinfo *dinfo; | struct dpaa2_devinfo *dinfo; | ||||
| struct resource_list *rl; | struct resource_list *rl; | ||||
| struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
| ▲ Show 20 Lines • Show All 3,274 Lines • Show Last 20 Lines | |||||