| 299 | } |
| 300 | |
| 301 | static int |
| 302 | nexus_setup_intr(device_t dev, device_t child, struct resource *res, int flags, |
| 303 | driver_filter_t *filt, driver_intr_t *intr, void *arg, void **cookiep) |
| 304 | { |
| 305 | int error; |
| 306 | |
| 307 | if ((rman_get_flags(res) & RF_SHAREABLE) == 0) |
| 308 | flags |= INTR_EXCL; |
| 309 | |
| 310 | /* We depend here on rman_activate_resource() being idempotent. */ |
| 311 | error = rman_activate_resource(res); |
| 312 | if (error) |
| 313 | return (error); |
| 314 | |
| 315 | error = intr_setup_irq(child, res, filt, intr, arg, flags, cookiep); |
| 316 | |
| 317 | return (error); |
| 318 | } |
| 319 | |
| 320 | static int |
| 321 | nexus_teardown_intr(device_t dev, device_t child, struct resource *r, void *ih) |
nothing calls this directly
no test coverage detected