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

Function nlm_fmn_cpu_init

freebsd/mips/nlm/hal/cop2.h:286–303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286static inline void
287nlm_fmn_cpu_init(int int_vec, int ecc_en, int v0pe, int v1pe, int v2pe, int v3pe)
288{
289 uint32_t val = nlm_read_c2_msgconfig();
290
291 /* Note: in XLP PRM 0.8.1, the int_vec bits are un-documented
292 * in msgconfig register of cop2.
293 * As per chip/cpu RTL, [16:20] bits consist of int_vec.
294 */
295 val |= (((int_vec & 0x1f) << 16) |
296 ((ecc_en & 0x1) << 8) |
297 ((v3pe & 0x1) << 4) |
298 ((v2pe & 0x1) << 3) |
299 ((v1pe & 0x1) << 2) |
300 ((v0pe & 0x1) << 1));
301
302 nlm_write_c2_msgconfig(val);
303}
304#endif

Callers 1

msgring_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected