blob: e5caf850bbb69ea3d8634a9b11e97ab362d09591 [file] [log] [blame]
Shad Ansari2f7f9be2017-06-07 13:34:53 -07001/******************************************************************************
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_osmsg.h
34 * @brief BAL Message data structure definitions
35 *
36 */
37#ifndef BAL_OSMSG_H_
38#define BAL_OSMSG_H_
39/*
40 * Message structures.
41 * Going to be generated from object model and moved elsewhere
42 */
43
44/* BAL subsystem */
45typedef enum
46{
47 BAL_SUBSYSTEM_CORE,
48 BAL_SUBSYSTEM_MAC_UTIL,
49 BAL_SUBSYSTEM_SWITCH_UTIL,
50 BAL_SUBSYSTEM_PUBLIC_API,
51
52 BAL_SUBSYSTEM__NUM_OF
53} bal_subsystem;
54
55
56__attribute__ ((unused)) static const char *subsystem_str[] =
57{
58 "BAL Core",
59 "BAL Mac Util",
60 "BAL Switch Util",
61 "BAL Public API"
62};
63
64/** BAL OS message
65 * \ingroup system_msg
66 */
67typedef enum
68{
69 BCMOS_MSG_ID__BEGIN,
70
71 /* Messages used internally by OS abstraction. Do not touch */
72 BCMOS_MSG_ID_INTERNAL_TIMER, /**< Internal "timer message" type */
73 BCMOS_MSG_ID_INTERNAL_EVENT, /**< Internal "event message" type */
74 BCMOS_MSG_ID_INTERNAL_IPC,
75
76 /* Application messages */
77 BCMOS_MSG_ID_IPC_PING, /*** Inter-process communication ping */
78
79 /* Core/Switch util messages */
80 BCMBAL_SWITCH_UTIL_MSG,
81
82 /* Core/Mac util messages */
83 BCMBAL_MAC_UTIL_MSG,
84
85 /* Core<->Public API messages */
86 BCMBAL_MGMT_MSG,
87
88 /* Core->Public API indication messages (both auto and "normal") */
89 BCMBAL_MGMT_API_IND_MSG,
90
91 BCMOS_MSG_ID_EON_PROXY_RX,
92 BCMOS_MSG_ID_EON_DESTROY_STATE,
93
94 BCMOS_MSG_ID_EPON_OAM_PROXY_RX,
95 BCMOS_MSG_ID_EPON_OAM_TIMEOUT,
96
97 BCMOS_MSG_ID_OMCI_TRANSPORT_SEND,
98
99 BCMOS_MSG_ID__END,
100 BCMOS_MSG_ID__FORCE16 = 0x7fff
101} bcmos_msg_id;
102
103
104#endif /* BAL_OSMSG_H_ */