| 458 | } |
| 459 | |
| 460 | static int |
| 461 | ti_pruss_interrupt_enable(SYSCTL_HANDLER_ARGS) |
| 462 | { |
| 463 | struct ti_pruss_softc *sc; |
| 464 | int err; |
| 465 | bool irqenable; |
| 466 | const int8_t irq = arg2; |
| 467 | |
| 468 | sc = arg1; |
| 469 | irqenable = sc->sc_irq_devs[arg2].enable; |
| 470 | |
| 471 | err = sysctl_handle_bool(oidp, &irqenable, arg2, req); |
| 472 | if (err != 0) |
| 473 | return (err); |
| 474 | |
| 475 | if (req->newptr) // write enable |
| 476 | return ti_pruss_interrupts_enable(sc, irq, irqenable); |
| 477 | |
| 478 | return (err); |
| 479 | } |
| 480 | |
| 481 | static int |
| 482 | ti_pruss_global_interrupt_enable(SYSCTL_HANDLER_ARGS) |
nothing calls this directly
no test coverage detected