| 738 | } |
| 739 | |
| 740 | static int |
| 741 | gicv3_its_sysctl_trace_enable(SYSCTL_HANDLER_ARGS) |
| 742 | { |
| 743 | struct gicv3_its_softc *sc; |
| 744 | int rv; |
| 745 | |
| 746 | sc = arg1; |
| 747 | |
| 748 | rv = sysctl_handle_bool(oidp, &sc->trace_enable, 0, req); |
| 749 | if (rv != 0 || req->newptr == NULL) |
| 750 | return (rv); |
| 751 | if (sc->trace_enable) |
| 752 | gic_its_write_8(sc, GITS_TRKCTLR, 3); |
| 753 | else |
| 754 | gic_its_write_8(sc, GITS_TRKCTLR, 0); |
| 755 | |
| 756 | return (0); |
| 757 | } |
| 758 | |
| 759 | static int |
| 760 | gicv3_its_sysctl_trace_regs(SYSCTL_HANDLER_ARGS) |
nothing calls this directly
no test coverage detected