Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/quicc/quicc_core.c
| Show First 20 Lines • Show All 327 Lines • ▼ Show 20 Lines | case QUICC_IVAR_DEVTYPE: | ||||
| break; | break; | ||||
| default: | default: | ||||
| return (EINVAL); | return (EINVAL); | ||||
| } | } | ||||
| return (0); | return (0); | ||||
| } | } | ||||
| int | int | ||||
| quicc_bus_release_resource(device_t dev, device_t child, int type, int rid, | quicc_bus_release_resource(device_t dev, device_t child, struct resource *res) | ||||
| struct resource *res) | |||||
| { | { | ||||
| struct quicc_device *qd; | struct quicc_device *qd; | ||||
| struct resource_list_entry *rle; | struct resource_list_entry *rle; | ||||
| if (device_get_parent(child) != dev) | if (device_get_parent(child) != dev) | ||||
| return (EINVAL); | return (EINVAL); | ||||
| qd = device_get_ivars(child); | qd = device_get_ivars(child); | ||||
| rle = resource_list_find(&qd->qd_rlist, type, rid); | rle = resource_list_find(&qd->qd_rlist, rman_get_type(res), | ||||
| rman_get_rid(res)); | |||||
| return ((rle == NULL) ? EINVAL : 0); | return ((rle == NULL) ? EINVAL : 0); | ||||
| } | } | ||||
| int | int | ||||
| quicc_bus_setup_intr(device_t dev, device_t child, struct resource *r, | quicc_bus_setup_intr(device_t dev, device_t child, struct resource *r, | ||||
| int flags, driver_filter_t *filt, void (*ihand)(void *), void *arg, | int flags, driver_filter_t *filt, void (*ihand)(void *), void *arg, | ||||
| void **cookiep) | void **cookiep) | ||||
| { | { | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||