| 550 | } |
| 551 | |
| 552 | static struct resource * |
| 553 | cpu_alloc_resource(device_t dev, device_t child, int type, int *rid, |
| 554 | rman_res_t start, rman_res_t end, rman_res_t count, u_int flags) |
| 555 | { |
| 556 | struct resource *res; |
| 557 | |
| 558 | if (type != SYS_RES_IRQ) |
| 559 | return (NULL); |
| 560 | res = rman_reserve_resource(&cpu_hardirq_rman, start, end, count, 0, |
| 561 | child); |
| 562 | return (res); |
| 563 | } |
| 564 | |
| 565 | static int |
| 566 | cpu_setup_intr(device_t dev, device_t child, struct resource *res, int flags, |
nothing calls this directly
no test coverage detected