ipoll.h (767B)
1 /* 2 * 3 * This license is set out in https://raw.githubusercontent.com/Broadcom-Network-Switching-Software/OpenBCM/master/Legal/LICENSE file. 4 * 5 * Copyright 2007-2019 Broadcom Inc. All rights reserved. 6 * 7 * Functions for polling IRQs instead of using hardware interrupts. 8 */ 9 10 #ifndef _SOC_IPOLL_H 11 #define _SOC_IPOLL_H 12 13 typedef void (*ipoll_handler_t)(void *data); 14 15 extern int soc_ipoll_connect(int dev, ipoll_handler_t handler, void *data); 16 extern int soc_ipoll_disconnect(int dev); 17 extern int soc_ipoll_pause(int dev); 18 extern int soc_ipoll_continue(int dev); 19 20 #ifdef SEPARATE_PKTDMA_INTR_HANDLER 21 extern int soc_ipoll_pktdma_connect(int dev, ipoll_handler_t handler, void *data); 22 extern int soc_ipoll_pktdma_disconnect(int dev); 23 #endif 24 25 #endif /* _SOC_IPOLL_H */