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

Function nlm_sys_enable_block

freebsd/mips/nlm/hal/sys.h:147–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145};
146
147static __inline
148void nlm_sys_enable_block(uint64_t sys_base, int block)
149{
150 uint32_t dfsdis, mask;
151
152 mask = 1 << block;
153 dfsdis = nlm_read_sys_reg(sys_base, SYS_DFS_DIS_CTRL);
154 if ((dfsdis & mask) == 0)
155 return; /* already enabled, nothing to do */
156 dfsdis &= ~mask;
157 nlm_write_sys_reg(sys_base, SYS_DFS_DIS_CTRL, dfsdis);
158}
159
160#endif
161#endif

Callers 1

xlp_enable_blocksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected