| 264 | } |
| 265 | |
| 266 | static int |
| 267 | apb_release_resource(device_t dev, device_t child, int type, |
| 268 | int rid, struct resource *r) |
| 269 | { |
| 270 | struct resource_list *rl; |
| 271 | struct resource_list_entry *rle; |
| 272 | |
| 273 | rl = apb_get_resource_list(dev, child); |
| 274 | if (rl == NULL) |
| 275 | return (EINVAL); |
| 276 | rle = resource_list_find(rl, type, rid); |
| 277 | if (rle == NULL) |
| 278 | return (EINVAL); |
| 279 | rman_release_resource(r); |
| 280 | rle->res = NULL; |
| 281 | |
| 282 | return (0); |
| 283 | } |
| 284 | |
| 285 | static int |
| 286 | apb_setup_intr(device_t bus, device_t child, struct resource *ires, |
nothing calls this directly
no test coverage detected