Shad Ansari | 2f7f9be | 2017-06-07 13:34:53 -0700 | [diff] [blame^] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * <:copyright-BRCM:2016:DUAL/GPL:standard |
| 4 | * |
| 5 | * Copyright (c) 2016 Broadcom |
| 6 | * All Rights Reserved |
| 7 | * |
| 8 | * Unless you and Broadcom execute a separate written software license |
| 9 | * agreement governing use of this software, this software is licensed |
| 10 | * to you under the terms of the GNU General Public License version 2 |
| 11 | * (the "GPL"), available at http://www.broadcom.com/licenses/GPLv2.php, |
| 12 | * with the following added to such license: |
| 13 | * |
| 14 | * As a special exception, the copyright holders of this software give |
| 15 | * you permission to link this software with independent modules, and |
| 16 | * to copy and distribute the resulting executable under terms of your |
| 17 | * choice, provided that you also meet, for each linked independent |
| 18 | * module, the terms and conditions of the license of that module. |
| 19 | * An independent module is a module which is not derived from this |
| 20 | * software. The special exception does not apply to any modifications |
| 21 | * of the software. |
| 22 | * |
| 23 | * Not withstanding the above, under no circumstances may you combine |
| 24 | * this software in any way with any other Broadcom software provided |
| 25 | * under a license other than the GPL, without Broadcom's express prior |
| 26 | * written consent. |
| 27 | * |
| 28 | * :> |
| 29 | * |
| 30 | *****************************************************************************/ |
| 31 | |
| 32 | /** |
| 33 | * @file bal_worker.h |
| 34 | * |
| 35 | * @brief Bal worker thread include file |
| 36 | * |
| 37 | * Module contains the data structures and functions used to support the |
| 38 | * BAL core worker thread. |
| 39 | * |
| 40 | * @defgroup ctrlr Core Controller |
| 41 | * @ingroup core |
| 42 | * |
| 43 | */ |
| 44 | |
| 45 | #ifndef BALWORKER_H |
| 46 | #define BALWORKER_H |
| 47 | |
| 48 | /*@{*/ |
| 49 | |
| 50 | #include <bcmos_errno.h> |
| 51 | #include <bal_api.h> |
| 52 | |
| 53 | /* Transmit Queues to and from BAL core */ |
| 54 | extern bcmos_msg_queue *p_bal_core_to_api_queue; |
| 55 | extern bcmos_msg_queue *p_bal_core_to_api_ind_queue; |
| 56 | |
| 57 | /* |
| 58 | * Function declarations |
| 59 | */ |
| 60 | extern bcmos_errno _bal_worker_mgmt_module_init(long data); |
| 61 | extern bcmos_errno _bal_worker_util_module_init(long data); |
| 62 | |
| 63 | extern bcmos_errno core_msg_queue_init(mgmt_queue_addr_ports *msg_queue_info); |
| 64 | extern void core_worker_thread_init(void); |
| 65 | extern void core_worker_thread_finish(void); |
| 66 | |
| 67 | extern void core_util_msg_handler(bcmos_module_id module_id, bcmos_msg *msg); |
| 68 | |
| 69 | |
| 70 | /*@}*/ |
| 71 | |
| 72 | #endif /* BALWORKER_H */ |