| 209 | } |
| 210 | |
| 211 | void 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 */ |
| 227 | int nlm_cms_outputq_intr_check(uint64_t base, int qid) |
no outgoing calls
no test coverage detected