| 119 | } |
| 120 | |
| 121 | static void drain_4_bytes(int fd, fd_set *fdset) |
| 122 | { |
| 123 | if (FD_ISSET(fd, fdset)) { |
| 124 | /* drain 4 bytes */ |
| 125 | uint32_t junk; |
| 126 | ssize_t sjunk = read(qman_thread_fd(), &junk, sizeof(junk)); |
| 127 | if (sjunk != sizeof(junk)) |
| 128 | DPAA_EVENTDEV_ERR("UIO irq read error"); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | static inline int |
| 133 | dpaa_event_dequeue_wait(uint64_t timeout_ticks) |
no test coverage detected