2 * Broadcom Dongle Host Driver (DHD), Generic work queue framework
3 * Generic interface to handle dhd deferred work events
5 * $Copyright Open Broadcom Corporation$
7 * $Id: dhd_linux_wq.h 449578 2014-01-17 13:53:20Z $
9 #ifndef _dhd_linux_wq_h_
10 #define _dhd_linux_wq_h_
12 * Work event definitions
15 DHD_WQ_WORK_IF_ADD = 1,
18 DHD_WQ_WORK_SET_MCAST_LIST,
28 #define DHD_WORK_PRIORITY_LOW 0
29 #define DHD_WORK_PRIORITY_HIGH 1
34 #define DHD_WQ_STS_OK 0
35 #define DHD_WQ_STS_FAILED -1 /* General failure */
36 #define DHD_WQ_STS_UNINITIALIZED -2
37 #define DHD_WQ_STS_SCHED_FAILED -3
38 #define DHD_WQ_STS_UNKNOWN_EVENT -4
40 typedef void (*event_handler_t)(void *handle, void *event_data, u8 event);
42 void *dhd_deferred_work_init(void *dhd);
43 void dhd_deferred_work_deinit(void *workq);
44 int dhd_deferred_schedule_work(void *workq, void *event_data, u8 event,
45 event_handler_t evt_handler, u8 priority);
46 #endif /* _dhd_linux_wq_h_ */