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

Function nlm_cms_per_queue_timer_intr

freebsd/mips/nlm/hal/fmn.c:211–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211void nlm_cms_per_queue_timer_intr(uint64_t base, int qid, int sub_type,
212 int intr_val)
213{
214 uint64_t val;
215
216 val = nlm_read_cms_reg(base, CMS_OUTPUTQ_CONFIG(qid));
217
218 val &= ~((0x7ULL << 51) | (0x3ULL << 49));
219
220 val |= (((uint64_t)sub_type<<49) |
221 ((uint64_t)intr_val<<51));
222
223 nlm_write_cms_reg(base, CMS_OUTPUTQ_CONFIG(qid), val);
224}
225
226/* returns 1 if interrupt has been generated for this output queue */
227int nlm_cms_outputq_intr_check(uint64_t base, int qid)

Callers 1

xlp_cms_enable_intrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected