MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ti_pruss_interrupt_enable

Function ti_pruss_interrupt_enable

freebsd/arm/ti/ti_pruss.c:460–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

458}
459
460static int
461ti_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
481static int
482ti_pruss_global_interrupt_enable(SYSCTL_HANDLER_ARGS)

Callers

nothing calls this directly

Calls 2

sysctl_handle_boolFunction · 0.85

Tested by

no test coverage detected