ACPI / dock: fix error return code in dock_add()
[firefly-linux-kernel-4.4.55.git] / drivers / staging / csr / csr_wifi_fsm_event.h
1 /*****************************************************************************
2
3             (c) Cambridge Silicon Radio Limited 2011
4             All rights reserved and confidential information of CSR
5
6             Refer to LICENSE.txt included with this source for details
7             on the license terms.
8
9 *****************************************************************************/
10
11 #ifndef CSR_WIFI_FSM_EVENT_H
12 #define CSR_WIFI_FSM_EVENT_H
13
14 #include "csr_prim_defs.h"
15 #include "csr_sched.h"
16
17 /**
18  * @brief
19  *   FSM event header.
20  *
21  * @par Description
22  *   All events MUST have this struct as the FIRST member.
23  *   The next member is used internally for linked lists
24  */
25 typedef struct CsrWifiFsmEvent
26 {
27     CsrPrim     type;
28     u16   primtype;
29     CsrSchedQid destination;
30     CsrSchedQid source;
31
32     /* Private pointer to allow an optimal Event list */
33     /* NOTE: Ignore this pointer.
34      *       Do not waste code initializing OR freeing it.
35      *       The pointer is used internally in the CsrWifiFsm code
36      *       to avoid a second malloc when queuing events.
37      */
38     struct CsrWifiFsmEvent *next;
39 } CsrWifiFsmEvent;
40
41 #endif /* CSR_WIFI_FSM_EVENT_H */
42