| 160 | } |
| 161 | |
| 162 | void |
| 163 | mtk_sysctl_clr_set(uint32_t reg, uint32_t clr, uint32_t set) |
| 164 | { |
| 165 | uint32_t val; |
| 166 | |
| 167 | MTK_SYSCTL_LOCK(mtk_sysctl_sc); |
| 168 | val = bus_read_4(mtk_sysctl_sc->mem_res, reg); |
| 169 | val &= ~(clr); |
| 170 | val |= set; |
| 171 | bus_write_4(mtk_sysctl_sc->mem_res, reg, val); |
| 172 | MTK_SYSCTL_UNLOCK(mtk_sysctl_sc); |
| 173 | } |
| 174 | |
| 175 | static device_method_t mtk_sysctl_methods[] = { |
| 176 | DEVMETHOD(device_probe, mtk_sysctl_probe), |
no outgoing calls
no test coverage detected