| 310 | } |
| 311 | |
| 312 | t_Error |
| 313 | XX_PreallocAndBindIntr(device_t dev, uintptr_t irq, unsigned int cpu) |
| 314 | { |
| 315 | struct resource *r; |
| 316 | unsigned int inum; |
| 317 | t_Error error; |
| 318 | |
| 319 | r = (struct resource *)irq; |
| 320 | inum = rman_get_start(r); |
| 321 | |
| 322 | error = XX_SetIntr(irq, XX_Dispatch, &XX_IntrInfo[inum]); |
| 323 | if (error != 0) |
| 324 | return (error); |
| 325 | |
| 326 | error = bus_bind_intr(dev, r, cpu); |
| 327 | if (error != 0) |
| 328 | return (error); |
| 329 | |
| 330 | XX_IntrInfo[inum].flags = XX_INTR_FLAG_PREALLOCATED; |
| 331 | XX_IntrInfo[inum].cpu = cpu; |
| 332 | |
| 333 | return (E_OK); |
| 334 | } |
| 335 | |
| 336 | t_Error |
| 337 | XX_DeallocIntr(uintptr_t irq) |
nothing calls this directly
no test coverage detected