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

Function ti_pruss_global_interrupt_enable

freebsd/arm/ti/ti_pruss.c:481–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481static int
482ti_pruss_global_interrupt_enable(SYSCTL_HANDLER_ARGS)
483{
484 struct ti_pruss_softc *sc;
485 int err;
486 bool glob_irqen;
487
488 sc = arg1;
489 glob_irqen = sc->sc_glob_irqen;
490
491 err = sysctl_handle_bool(oidp, &glob_irqen, arg2, req);
492 if (err != 0)
493 return (err);
494
495 if (req->newptr) {
496 sc->sc_glob_irqen = glob_irqen;
497 ti_pruss_reg_write(sc, PRUSS_INTC_GER, glob_irqen);
498 }
499
500 return (err);
501}
502static int
503ti_pruss_probe(device_t dev)
504{

Callers

nothing calls this directly

Calls 2

sysctl_handle_boolFunction · 0.85
ti_pruss_reg_writeFunction · 0.85

Tested by

no test coverage detected