| Dixon Peterson | 2061f85 | 2013-01-22 17:53:05 -0800 | [diff] [blame] | 1 | /* Copyright (c) 2008-2013, The Linux Foundation. All rights reserved. | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 2 |  * | 
 | 3 |  * This program is free software; you can redistribute it and/or modify | 
 | 4 |  * it under the terms of the GNU General Public License version 2 and | 
 | 5 |  * only version 2 as published by the Free Software Foundation. | 
 | 6 |  * | 
 | 7 |  * This program is distributed in the hope that it will be useful, | 
 | 8 |  * but WITHOUT ANY WARRANTY; without even the implied warranty of | 
 | 9 |  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | 
 | 10 |  * GNU General Public License for more details. | 
 | 11 |  */ | 
 | 12 |  | 
 | 13 | #ifndef DIAGCHAR_SHARED | 
 | 14 | #define DIAGCHAR_SHARED | 
 | 15 |  | 
 | 16 | #define MSG_MASKS_TYPE			1 | 
 | 17 | #define LOG_MASKS_TYPE			2 | 
 | 18 | #define EVENT_MASKS_TYPE		4 | 
 | 19 | #define PKT_TYPE			8 | 
 | 20 | #define DEINIT_TYPE			16 | 
| Dixon Peterson | 2061f85 | 2013-01-22 17:53:05 -0800 | [diff] [blame] | 21 | #define USER_SPACE_DATA_TYPE		32 | 
| Shalabh Jain | 1c99e4c | 2012-03-26 18:47:59 -0700 | [diff] [blame] | 22 | #define DCI_DATA_TYPE			64 | 
| Dixon Peterson | d3fb871 | 2013-04-01 20:14:57 -0700 | [diff] [blame] | 23 | #define CALLBACK_DATA_TYPE		128 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 24 | #define USB_MODE			1 | 
 | 25 | #define MEMORY_DEVICE_MODE		2 | 
 | 26 | #define NO_LOGGING_MODE			3 | 
| Shalabh Jain | 69890aa | 2011-10-10 12:59:16 -0700 | [diff] [blame] | 27 | #define UART_MODE			4 | 
| Dixon Peterson | 625ee65 | 2012-06-21 22:03:49 -0700 | [diff] [blame] | 28 | #define SOCKET_MODE			5 | 
| Dixon Peterson | 2061f85 | 2013-01-22 17:53:05 -0800 | [diff] [blame] | 29 | #define CALLBACK_MODE			6 | 
| Dixon Peterson | d3fb871 | 2013-04-01 20:14:57 -0700 | [diff] [blame] | 30 | #define MEMORY_DEVICE_MODE_NRT		7 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 31 | /* different values that go in for diag_data_type */ | 
 | 32 | #define DATA_TYPE_EVENT         	0 | 
 | 33 | #define DATA_TYPE_F3            	1 | 
 | 34 | #define DATA_TYPE_LOG           	2 | 
 | 35 | #define DATA_TYPE_RESPONSE      	3 | 
 | 36 |  | 
 | 37 | /* Different IOCTL values */ | 
 | 38 | #define DIAG_IOCTL_COMMAND_REG  	0 | 
 | 39 | #define DIAG_IOCTL_SWITCH_LOGGING	7 | 
 | 40 | #define DIAG_IOCTL_GET_DELAYED_RSP_ID 	8 | 
 | 41 | #define DIAG_IOCTL_LSM_DEINIT		9 | 
| Shalabh Jain | 1c99e4c | 2012-03-26 18:47:59 -0700 | [diff] [blame] | 42 | #define DIAG_IOCTL_DCI_INIT		20 | 
 | 43 | #define DIAG_IOCTL_DCI_DEINIT		21 | 
 | 44 | #define DIAG_IOCTL_DCI_SUPPORT		22 | 
 | 45 | #define DIAG_IOCTL_DCI_REG		23 | 
| Shalabh Jain | 14f480d | 2012-09-14 10:56:49 -0700 | [diff] [blame] | 46 | #define DIAG_IOCTL_DCI_STREAM_INIT	24 | 
| Shalabh Jain | d63ae31 | 2012-10-23 12:51:30 -0700 | [diff] [blame] | 47 | #define DIAG_IOCTL_DCI_HEALTH_STATS	25 | 
| Dixon Peterson | d3fb871 | 2013-04-01 20:14:57 -0700 | [diff] [blame] | 48 | #define DIAG_IOCTL_DCI_LOG_STATUS	26 | 
 | 49 | #define DIAG_IOCTL_DCI_EVENT_STATUS	27 | 
 | 50 | #define DIAG_IOCTL_DCI_CLEAR_LOGS	28 | 
 | 51 | #define DIAG_IOCTL_DCI_CLEAR_EVENTS	29 | 
| Dixon Peterson | 2061f85 | 2013-01-22 17:53:05 -0800 | [diff] [blame] | 52 | #define DIAG_IOCTL_REMOTE_DEV		32 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 53 |  | 
| Dixon Peterson | b4618a4 | 2012-02-29 18:56:31 -0800 | [diff] [blame] | 54 | /* PC Tools IDs */ | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 55 | #define APQ8060_TOOLS_ID	4062 | 
 | 56 | #define AO8960_TOOLS_ID		4064 | 
| Shalabh Jain | fb8e3c1 | 2011-10-19 17:29:42 -0700 | [diff] [blame] | 57 | #define APQ8064_TOOLS_ID	4072 | 
| Dixon Peterson | b4618a4 | 2012-02-29 18:56:31 -0800 | [diff] [blame] | 58 | #define MSM8625_TOOLS_ID	4075 | 
| Shalabh Jain | a755784 | 2012-02-01 20:25:03 +0530 | [diff] [blame] | 59 | #define MSM8930_TOOLS_ID	4076 | 
 | 60 | #define MSM8630_TOOLS_ID	4077 | 
 | 61 | #define MSM8230_TOOLS_ID	4078 | 
 | 62 | #define APQ8030_TOOLS_ID	4079 | 
 | 63 | #define MSM8627_TOOLS_ID	4080 | 
 | 64 | #define MSM8227_TOOLS_ID	4081 | 
| Dixon Peterson | a2dd735 | 2012-05-21 17:37:10 -0700 | [diff] [blame] | 65 | #define MSM8974_TOOLS_ID	4083 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 66 |  | 
 | 67 | #define MSG_MASK_0			(0x00000001) | 
 | 68 | #define MSG_MASK_1			(0x00000002) | 
 | 69 | #define MSG_MASK_2			(0x00000004) | 
 | 70 | #define MSG_MASK_3			(0x00000008) | 
 | 71 | #define MSG_MASK_4			(0x00000010) | 
 | 72 | #define MSG_MASK_5			(0x00000020) | 
 | 73 | #define MSG_MASK_6			(0x00000040) | 
 | 74 | #define MSG_MASK_7			(0x00000080) | 
 | 75 | #define MSG_MASK_8			(0x00000100) | 
 | 76 | #define MSG_MASK_9			(0x00000200) | 
 | 77 | #define MSG_MASK_10			(0x00000400) | 
 | 78 | #define MSG_MASK_11			(0x00000800) | 
 | 79 | #define MSG_MASK_12			(0x00001000) | 
 | 80 | #define MSG_MASK_13			(0x00002000) | 
 | 81 | #define MSG_MASK_14			(0x00004000) | 
 | 82 | #define MSG_MASK_15			(0x00008000) | 
 | 83 | #define MSG_MASK_16			(0x00010000) | 
 | 84 | #define MSG_MASK_17			(0x00020000) | 
 | 85 | #define MSG_MASK_18			(0x00040000) | 
 | 86 | #define MSG_MASK_19			(0x00080000) | 
 | 87 | #define MSG_MASK_20			(0x00100000) | 
 | 88 | #define MSG_MASK_21			(0x00200000) | 
 | 89 | #define MSG_MASK_22			(0x00400000) | 
 | 90 | #define MSG_MASK_23			(0x00800000) | 
 | 91 | #define MSG_MASK_24			(0x01000000) | 
 | 92 | #define MSG_MASK_25			(0x02000000) | 
 | 93 | #define MSG_MASK_26			(0x04000000) | 
 | 94 | #define MSG_MASK_27			(0x08000000) | 
 | 95 | #define MSG_MASK_28			(0x10000000) | 
 | 96 | #define MSG_MASK_29			(0x20000000) | 
 | 97 | #define MSG_MASK_30			(0x40000000) | 
 | 98 | #define MSG_MASK_31			(0x80000000) | 
 | 99 |  | 
 | 100 | /*  These masks are to be used for support of all legacy messages in the sw. | 
 | 101 | The user does not need to remember the names as they will be embedded in | 
 | 102 | the appropriate macros. */ | 
 | 103 | #define MSG_LEGACY_LOW			MSG_MASK_0 | 
 | 104 | #define MSG_LEGACY_MED			MSG_MASK_1 | 
 | 105 | #define MSG_LEGACY_HIGH			MSG_MASK_2 | 
 | 106 | #define MSG_LEGACY_ERROR		MSG_MASK_3 | 
 | 107 | #define MSG_LEGACY_FATAL		MSG_MASK_4 | 
 | 108 |  | 
 | 109 | /* Legacy Message Priorities */ | 
 | 110 | #define MSG_LVL_FATAL			(MSG_LEGACY_FATAL) | 
 | 111 | #define MSG_LVL_ERROR			(MSG_LEGACY_ERROR | MSG_LVL_FATAL) | 
 | 112 | #define MSG_LVL_HIGH			(MSG_LEGACY_HIGH | MSG_LVL_ERROR) | 
 | 113 | #define MSG_LVL_MED			(MSG_LEGACY_MED | MSG_LVL_HIGH) | 
 | 114 | #define MSG_LVL_LOW			(MSG_LEGACY_LOW | MSG_LVL_MED) | 
 | 115 |  | 
 | 116 | #define MSG_LVL_NONE			0 | 
 | 117 |  | 
 | 118 | /* This needs to be modified manually now, when we add | 
 | 119 |  a new RANGE of SSIDs to the msg_mask_tbl */ | 
| Shalabh Jain | 44b79b7 | 2012-06-15 13:39:27 -0700 | [diff] [blame] | 120 | #define MSG_MASK_TBL_CNT		24 | 
| Ravi Aravamudhan | 1787385 | 2013-05-23 17:16:19 -0700 | [diff] [blame] | 121 | #define EVENT_LAST_ID			0x09B2 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 122 |  | 
 | 123 | #define MSG_SSID_0			0 | 
| Ravi Aravamudhan | 1787385 | 2013-05-23 17:16:19 -0700 | [diff] [blame] | 124 | #define MSG_SSID_0_LAST			97 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 125 | #define MSG_SSID_1			500 | 
 | 126 | #define MSG_SSID_1_LAST			506 | 
 | 127 | #define MSG_SSID_2			1000 | 
 | 128 | #define MSG_SSID_2_LAST			1007 | 
 | 129 | #define MSG_SSID_3			2000 | 
 | 130 | #define MSG_SSID_3_LAST			2008 | 
 | 131 | #define MSG_SSID_4			3000 | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 132 | #define MSG_SSID_4_LAST			3014 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 133 | #define MSG_SSID_5			4000 | 
 | 134 | #define MSG_SSID_5_LAST			4010 | 
 | 135 | #define MSG_SSID_6			4500 | 
 | 136 | #define MSG_SSID_6_LAST			4526 | 
 | 137 | #define MSG_SSID_7			4600 | 
| Shalabh Jain | c00dd9b | 2012-06-23 14:34:18 -0700 | [diff] [blame] | 138 | #define MSG_SSID_7_LAST			4613 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 139 | #define MSG_SSID_8			5000 | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 140 | #define MSG_SSID_8_LAST			5029 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 141 | #define MSG_SSID_9			5500 | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 142 | #define MSG_SSID_9_LAST			5516 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 143 | #define MSG_SSID_10			6000 | 
| Ravi Aravamudhan | b32fcca | 2013-02-04 18:57:32 -0800 | [diff] [blame] | 144 | #define MSG_SSID_10_LAST		6080 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 145 | #define MSG_SSID_11			6500 | 
 | 146 | #define MSG_SSID_11_LAST		6521 | 
 | 147 | #define MSG_SSID_12			7000 | 
 | 148 | #define MSG_SSID_12_LAST		7003 | 
 | 149 | #define MSG_SSID_13			7100 | 
 | 150 | #define MSG_SSID_13_LAST		7111 | 
 | 151 | #define MSG_SSID_14			7200 | 
 | 152 | #define MSG_SSID_14_LAST		7201 | 
 | 153 | #define MSG_SSID_15			8000 | 
 | 154 | #define MSG_SSID_15_LAST		8000 | 
 | 155 | #define MSG_SSID_16			8500 | 
 | 156 | #define MSG_SSID_16_LAST		8523 | 
 | 157 | #define MSG_SSID_17			9000 | 
 | 158 | #define MSG_SSID_17_LAST		9008 | 
 | 159 | #define MSG_SSID_18			9500 | 
 | 160 | #define MSG_SSID_18_LAST		9509 | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 161 | #define MSG_SSID_19			10200 | 
 | 162 | #define MSG_SSID_19_LAST		10210 | 
 | 163 | #define MSG_SSID_20			10251 | 
 | 164 | #define MSG_SSID_20_LAST		10255 | 
 | 165 | #define MSG_SSID_21			10300 | 
 | 166 | #define MSG_SSID_21_LAST		10300 | 
 | 167 | #define MSG_SSID_22			10350 | 
| Ravi Aravamudhan | b32fcca | 2013-02-04 18:57:32 -0800 | [diff] [blame] | 168 | #define MSG_SSID_22_LAST		10374 | 
| Shalabh Jain | 44b79b7 | 2012-06-15 13:39:27 -0700 | [diff] [blame] | 169 | #define MSG_SSID_23			0xC000 | 
 | 170 | #define MSG_SSID_23_LAST		0xC063 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 171 |  | 
 | 172 | struct diagpkt_delay_params { | 
 | 173 | 	void *rsp_ptr; | 
 | 174 | 	int size; | 
 | 175 | 	int *num_bytes_ptr; | 
 | 176 | }; | 
 | 177 |  | 
 | 178 | static const uint32_t msg_bld_masks_0[] = { | 
 | 179 | 	MSG_LVL_LOW, | 
 | 180 | 	MSG_LVL_MED, | 
 | 181 | 	MSG_LVL_MED, | 
 | 182 | 	MSG_LVL_ERROR, | 
 | 183 | 	MSG_LVL_LOW, | 
 | 184 | 	MSG_LVL_MED, | 
 | 185 | 	MSG_LVL_MED, | 
 | 186 | 	MSG_LVL_HIGH, | 
 | 187 | 	MSG_LVL_ERROR, | 
 | 188 | 	MSG_LVL_LOW, | 
 | 189 | 	MSG_LVL_ERROR, | 
 | 190 | 	MSG_LVL_ERROR, | 
 | 191 | 	MSG_LVL_MED, | 
 | 192 | 	MSG_LVL_MED, | 
 | 193 | 	MSG_LVL_MED, | 
 | 194 | 	MSG_LVL_HIGH, | 
 | 195 | 	MSG_LVL_HIGH, | 
 | 196 | 	MSG_LVL_HIGH, | 
 | 197 | 	MSG_LVL_LOW, | 
 | 198 | 	MSG_LVL_ERROR, | 
 | 199 | 	MSG_LVL_LOW, | 
 | 200 | 	MSG_LVL_MED, | 
 | 201 | 	MSG_LVL_MED, | 
 | 202 | 	MSG_LVL_MED, | 
 | 203 | 	MSG_LVL_MED, | 
 | 204 | 	MSG_LVL_LOW, | 
 | 205 | 	MSG_LVL_MED, | 
 | 206 | 	MSG_LVL_MED, | 
 | 207 | 	MSG_LVL_MED, | 
 | 208 | 	MSG_LVL_MED, | 
 | 209 | 	MSG_LVL_MED|MSG_MASK_7 | \ | 
 | 210 | 		MSG_MASK_8|MSG_MASK_9|MSG_MASK_10|MSG_MASK_11|MSG_MASK_12 | \ | 
 | 211 | 		MSG_MASK_13|MSG_MASK_14|MSG_MASK_15|MSG_MASK_16 | \ | 
 | 212 | 		MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20|MSG_MASK_21, | 
 | 213 | 	MSG_LVL_MED|MSG_MASK_5 | \ | 
 | 214 | 		MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \ | 
 | 215 | 		MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14| \ | 
 | 216 | 		MSG_MASK_15|MSG_MASK_16|MSG_MASK_17, | 
 | 217 | 	MSG_LVL_MED, | 
 | 218 | 	MSG_LVL_MED, | 
 | 219 | 	MSG_LVL_HIGH, | 
 | 220 | 	MSG_LVL_HIGH, | 
 | 221 | 	MSG_LVL_HIGH, | 
 | 222 | 	MSG_LVL_HIGH, | 
 | 223 | 	MSG_LVL_MED, | 
 | 224 | 	MSG_LVL_MED, | 
 | 225 | 	MSG_LVL_MED|MSG_MASK_5 | \ | 
 | 226 | 		MSG_MASK_6|MSG_MASK_7|MSG_MASK_8, | 
 | 227 | 	MSG_LVL_LOW, | 
 | 228 | 	MSG_LVL_LOW, | 
 | 229 | 	MSG_LVL_HIGH, | 
 | 230 | 	MSG_LVL_HIGH, | 
 | 231 | 	MSG_LVL_HIGH, | 
 | 232 | 	MSG_LVL_MED, | 
 | 233 | 	MSG_LVL_MED|MSG_MASK_5 | \ | 
 | 234 | 		MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \ | 
 | 235 | 		MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15| \ | 
 | 236 | 		MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20| \ | 
 | 237 | 		MSG_MASK_21|MSG_MASK_22|MSG_MASK_23|MSG_MASK_24|MSG_MASK_25, | 
 | 238 | 	MSG_LVL_MED|MSG_MASK_5 | \ | 
 | 239 | 		MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10, | 
 | 240 | 	MSG_LVL_MED, | 
 | 241 | 	MSG_LVL_MED, | 
 | 242 | 	MSG_LVL_LOW, | 
 | 243 | 	MSG_LVL_MED, | 
 | 244 | 	MSG_LVL_LOW, | 
 | 245 | 	MSG_LVL_LOW, | 
 | 246 | 	MSG_LVL_LOW, | 
 | 247 | 	MSG_LVL_HIGH, | 
 | 248 | 	MSG_LVL_LOW, | 
 | 249 | 	MSG_LVL_LOW, | 
 | 250 | 	MSG_LVL_LOW | MSG_MASK_5 | \ | 
 | 251 | 		MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8, | 
 | 252 | 	MSG_LVL_LOW | MSG_MASK_5 | \ | 
 | 253 | 		MSG_MASK_6, | 
 | 254 | 	MSG_LVL_MED, | 
 | 255 | 	MSG_LVL_MED, | 
 | 256 | 	MSG_LVL_LOW, | 
 | 257 | 	MSG_LVL_MED | MSG_MASK_5 | \ | 
 | 258 | 		MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \ | 
 | 259 | 		MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15 | \ | 
 | 260 | 		MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20, | 
 | 261 | 	MSG_LVL_LOW, | 
 | 262 | 	MSG_LVL_MED, | 
 | 263 | 	MSG_LVL_LOW, | 
 | 264 | 	MSG_LVL_LOW, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 265 | 	MSG_LVL_LOW, | 
 | 266 | 	MSG_LVL_HIGH, | 
 | 267 | 	MSG_LVL_HIGH, | 
 | 268 | 	MSG_LVL_LOW, | 
 | 269 | 	MSG_LVL_LOW, | 
 | 270 | 	MSG_LVL_LOW, | 
 | 271 | 	MSG_LVL_LOW, | 
 | 272 | 	MSG_LVL_LOW, | 
 | 273 | 	MSG_LVL_HIGH, | 
 | 274 | 	MSG_LVL_HIGH, | 
 | 275 | 	MSG_LVL_LOW, | 
 | 276 | 	MSG_LVL_LOW, | 
 | 277 | 	MSG_LVL_LOW, | 
 | 278 | 	MSG_LVL_LOW, | 
 | 279 | 	MSG_LVL_LOW, | 
 | 280 | 	MSG_LVL_LOW, | 
 | 281 | 	MSG_LVL_LOW|MSG_LVL_MED|MSG_LVL_HIGH|MSG_LVL_ERROR|MSG_LVL_FATAL, | 
 | 282 | 	MSG_LVL_MED, | 
 | 283 | 	MSG_LVL_LOW|MSG_LVL_MED|MSG_LVL_HIGH|MSG_LVL_ERROR|MSG_LVL_FATAL, | 
 | 284 | 	MSG_LVL_LOW, | 
 | 285 | 	MSG_LVL_MED, | 
| Shalabh Jain | c00dd9b | 2012-06-23 14:34:18 -0700 | [diff] [blame] | 286 | 	MSG_LVL_LOW, | 
| Ravi Aravamudhan | d5b9a6b | 2013-03-04 13:24:02 -0800 | [diff] [blame] | 287 | 	MSG_LVL_LOW, | 
 | 288 | 	MSG_LVL_LOW, | 
| Ravi Aravamudhan | 1787385 | 2013-05-23 17:16:19 -0700 | [diff] [blame] | 289 | 	MSG_LVL_LOW, | 
 | 290 | 	MSG_LVL_LOW, | 
 | 291 | 	MSG_LVL_LOW, | 
 | 292 | 	MSG_LVL_LOW|MSG_LVL_MED|MSG_LVL_HIGH|MSG_LVL_ERROR|MSG_LVL_FATAL, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 293 | 	MSG_LVL_LOW | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 294 | }; | 
 | 295 |  | 
 | 296 | static const uint32_t msg_bld_masks_1[] = { | 
 | 297 | 	MSG_LVL_MED, | 
 | 298 | 	MSG_LVL_HIGH, | 
 | 299 | 	MSG_LVL_HIGH, | 
 | 300 | 	MSG_LVL_LOW, | 
 | 301 | 	MSG_LVL_HIGH, | 
 | 302 | 	MSG_LVL_HIGH, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 303 | 	MSG_LVL_HIGH | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 304 | }; | 
 | 305 |  | 
 | 306 | static const uint32_t msg_bld_masks_2[] = { | 
 | 307 | 	MSG_LVL_MED, | 
 | 308 | 	MSG_LVL_MED, | 
 | 309 | 	MSG_LVL_MED, | 
 | 310 | 	MSG_LVL_MED, | 
 | 311 | 	MSG_LVL_MED, | 
 | 312 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 313 | 	MSG_LVL_MED, | 
 | 314 | 	MSG_LVL_MED | 
 | 315 | }; | 
 | 316 |  | 
 | 317 | static const uint32_t msg_bld_masks_3[] = { | 
 | 318 | 	MSG_LVL_MED, | 
 | 319 | 	MSG_LVL_MED, | 
 | 320 | 	MSG_LVL_MED, | 
 | 321 | 	MSG_LVL_MED, | 
 | 322 | 	MSG_LVL_MED, | 
 | 323 | 	MSG_LVL_MED, | 
 | 324 | 	MSG_LVL_MED, | 
 | 325 | 	MSG_LVL_MED, | 
 | 326 | 	MSG_LVL_MED | 
 | 327 | }; | 
 | 328 |  | 
 | 329 | static const uint32_t msg_bld_masks_4[] = { | 
 | 330 | 	MSG_LVL_HIGH, | 
 | 331 | 	MSG_LVL_HIGH, | 
 | 332 | 	MSG_LVL_HIGH, | 
 | 333 | 	MSG_LVL_HIGH, | 
 | 334 | 	MSG_LVL_HIGH, | 
 | 335 | 	MSG_LVL_HIGH, | 
 | 336 | 	MSG_LVL_HIGH, | 
 | 337 | 	MSG_LVL_HIGH, | 
 | 338 | 	MSG_LVL_HIGH, | 
 | 339 | 	MSG_LVL_HIGH, | 
 | 340 | 	MSG_LVL_HIGH, | 
 | 341 | 	MSG_LVL_HIGH, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 342 | 	MSG_LVL_HIGH, | 
 | 343 | 	MSG_LVL_LOW, | 
 | 344 | 	MSG_LVL_LOW | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 345 | }; | 
 | 346 |  | 
 | 347 | static const uint32_t msg_bld_masks_5[] = { | 
 | 348 | 	MSG_LVL_HIGH, | 
 | 349 | 	MSG_LVL_MED, | 
 | 350 | 	MSG_LVL_HIGH, | 
 | 351 | 	MSG_LVL_MED, | 
 | 352 | 	MSG_LVL_MED, | 
 | 353 | 	MSG_LVL_MED, | 
 | 354 | 	MSG_LVL_MED, | 
 | 355 | 	MSG_LVL_MED, | 
 | 356 | 	MSG_LVL_MED, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 357 | 	MSG_LVL_MED|MSG_LVL_MED|MSG_MASK_5|MSG_MASK_6|MSG_MASK_7| \ | 
 | 358 | 		MSG_MASK_8|MSG_MASK_9, | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 359 | 	MSG_LVL_MED | 
 | 360 | }; | 
 | 361 |  | 
 | 362 | static const uint32_t msg_bld_masks_6[] = { | 
 | 363 | 	MSG_LVL_MED, | 
 | 364 | 	MSG_LVL_MED, | 
 | 365 | 	MSG_LVL_MED, | 
 | 366 | 	MSG_LVL_MED, | 
 | 367 | 	MSG_LVL_MED, | 
 | 368 | 	MSG_LVL_MED, | 
 | 369 | 	MSG_LVL_MED, | 
 | 370 | 	MSG_LVL_LOW, | 
 | 371 | 	MSG_LVL_LOW, | 
 | 372 | 	MSG_LVL_LOW, | 
 | 373 | 	MSG_LVL_LOW, | 
 | 374 | 	MSG_LVL_LOW, | 
 | 375 | 	MSG_LVL_LOW, | 
 | 376 | 	MSG_LVL_LOW, | 
 | 377 | 	MSG_LVL_LOW, | 
 | 378 | 	MSG_LVL_LOW, | 
 | 379 | 	MSG_LVL_LOW, | 
 | 380 | 	MSG_LVL_LOW, | 
 | 381 | 	MSG_LVL_LOW, | 
 | 382 | 	MSG_LVL_LOW, | 
 | 383 | 	MSG_LVL_LOW, | 
 | 384 | 	MSG_LVL_LOW, | 
 | 385 | 	MSG_LVL_LOW, | 
 | 386 | 	MSG_LVL_LOW, | 
 | 387 | 	MSG_LVL_LOW, | 
 | 388 | 	MSG_LVL_LOW, | 
 | 389 | 	MSG_LVL_LOW | 
 | 390 | }; | 
 | 391 |  | 
 | 392 | static const uint32_t msg_bld_masks_7[] = { | 
 | 393 | 	MSG_LVL_MED, | 
 | 394 | 	MSG_LVL_MED, | 
 | 395 | 	MSG_LVL_MED, | 
 | 396 | 	MSG_LVL_MED, | 
 | 397 | 	MSG_LVL_MED, | 
 | 398 | 	MSG_LVL_MED, | 
 | 399 | 	MSG_LVL_MED, | 
 | 400 | 	MSG_LVL_MED, | 
 | 401 | 	MSG_LVL_MED, | 
 | 402 | 	MSG_LVL_MED, | 
 | 403 | 	MSG_LVL_MED, | 
 | 404 | 	MSG_LVL_MED, | 
| Shalabh Jain | c00dd9b | 2012-06-23 14:34:18 -0700 | [diff] [blame] | 405 | 	MSG_LVL_LOW, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 406 | 	MSG_LVL_LOW | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 407 | }; | 
 | 408 |  | 
 | 409 | static const uint32_t msg_bld_masks_8[] = { | 
 | 410 | 	MSG_LVL_MED, | 
 | 411 | 	MSG_LVL_MED, | 
 | 412 | 	MSG_LVL_MED, | 
 | 413 | 	MSG_LVL_MED, | 
 | 414 | 	MSG_LVL_MED, | 
 | 415 | 	MSG_LVL_MED, | 
 | 416 | 	MSG_LVL_MED, | 
 | 417 | 	MSG_LVL_MED, | 
 | 418 | 	MSG_LVL_MED, | 
 | 419 | 	MSG_LVL_MED, | 
 | 420 | 	MSG_LVL_MED, | 
 | 421 | 	MSG_LVL_MED, | 
 | 422 | 	MSG_LVL_MED, | 
 | 423 | 	MSG_LVL_MED, | 
 | 424 | 	MSG_LVL_MED, | 
 | 425 | 	MSG_LVL_MED, | 
 | 426 | 	MSG_LVL_LOW, | 
 | 427 | 	MSG_LVL_LOW, | 
 | 428 | 	MSG_LVL_LOW, | 
 | 429 | 	MSG_LVL_MED, | 
 | 430 | 	MSG_LVL_MED, | 
 | 431 | 	MSG_LVL_MED, | 
 | 432 | 	MSG_LVL_MED, | 
 | 433 | 	MSG_LVL_MED, | 
 | 434 | 	MSG_LVL_MED, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 435 | 	MSG_LVL_MED, | 
 | 436 | 	MSG_LVL_MED, | 
 | 437 | 	MSG_LVL_MED, | 
 | 438 | 	MSG_LVL_MED, | 
 | 439 | 	MSG_LVL_MED | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 440 | }; | 
 | 441 |  | 
 | 442 | static const uint32_t msg_bld_masks_9[] = { | 
 | 443 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 444 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 445 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 446 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 447 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 448 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 449 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 450 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 451 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 452 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 453 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 454 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 455 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 456 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 457 | 	MSG_LVL_MED|MSG_MASK_5, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 458 | 	MSG_LVL_MED|MSG_MASK_5, | 
 | 459 | 	MSG_LVL_MED|MSG_MASK_5 | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 460 | }; | 
 | 461 |  | 
 | 462 | static const uint32_t msg_bld_masks_10[] =  { | 
 | 463 | 	MSG_LVL_MED, | 
 | 464 | 	MSG_LVL_ERROR, | 
 | 465 | 	MSG_LVL_LOW, | 
 | 466 | 	MSG_LVL_LOW|MSG_MASK_5 | \ | 
 | 467 | 		MSG_MASK_6|MSG_MASK_7|MSG_MASK_8|MSG_MASK_9|MSG_MASK_10| \ | 
 | 468 | 		MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15| \ | 
 | 469 | 		MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20| \ | 
 | 470 | 		MSG_MASK_21|MSG_MASK_22, | 
 | 471 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 472 | 	MSG_LVL_LOW, | 
 | 473 | 	MSG_LVL_LOW, | 
 | 474 | 	MSG_LVL_LOW, | 
 | 475 | 	MSG_LVL_LOW, | 
 | 476 | 	MSG_LVL_LOW, | 
 | 477 | 	MSG_LVL_LOW, | 
 | 478 | 	MSG_LVL_LOW, | 
 | 479 | 	MSG_LVL_LOW, | 
 | 480 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 481 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 482 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 483 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 484 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 485 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 486 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 487 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 488 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 489 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 490 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 491 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 492 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 493 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 494 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 495 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 496 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 497 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 498 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 499 | 	MSG_LVL_LOW, | 
 | 500 | 	MSG_LVL_MED, | 
 | 501 | 	MSG_LVL_HIGH, | 
 | 502 | 	MSG_LVL_LOW, | 
 | 503 | 	MSG_LVL_LOW, | 
 | 504 | 	MSG_LVL_LOW|MSG_MASK_5, | 
 | 505 | 	MSG_LVL_LOW|MSG_MASK_0 | MSG_MASK_1 | MSG_MASK_2 | \ | 
 | 506 | 		MSG_MASK_3 | MSG_MASK_4 | MSG_MASK_5 | MSG_MASK_6, | 
 | 507 | 	MSG_LVL_HIGH, | 
 | 508 | 	MSG_LVL_LOW, | 
 | 509 | 	MSG_LVL_LOW, | 
 | 510 | 	MSG_LVL_LOW, | 
 | 511 | 	MSG_LVL_LOW, | 
 | 512 | 	MSG_LVL_LOW, | 
 | 513 | 	MSG_LVL_LOW, | 
 | 514 | 	MSG_LVL_LOW, | 
 | 515 | 	MSG_LVL_LOW, | 
 | 516 | 	MSG_LVL_LOW, | 
 | 517 | 	MSG_LVL_LOW, | 
 | 518 | 	MSG_LVL_LOW, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 519 | 	MSG_LVL_LOW, | 
 | 520 | 	MSG_LVL_MED, | 
 | 521 | 	MSG_LVL_MED, | 
 | 522 | 	MSG_LVL_MED, | 
 | 523 | 	MSG_LVL_MED, | 
 | 524 | 	MSG_LVL_MED, | 
 | 525 | 	MSG_LVL_MED, | 
 | 526 | 	MSG_LVL_MED, | 
 | 527 | 	MSG_LVL_MED, | 
 | 528 | 	MSG_LVL_MED, | 
 | 529 | 	MSG_LVL_MED, | 
 | 530 | 	MSG_LVL_MED, | 
 | 531 | 	MSG_LVL_MED, | 
 | 532 | 	MSG_LVL_MED, | 
 | 533 | 	MSG_LVL_MED, | 
 | 534 | 	MSG_LVL_MED, | 
 | 535 | 	MSG_LVL_MED, | 
 | 536 | 	MSG_LVL_MED, | 
 | 537 | 	MSG_LVL_MED, | 
 | 538 | 	MSG_LVL_MED, | 
 | 539 | 	MSG_LVL_MED, | 
| Ravi Aravamudhan | b32fcca | 2013-02-04 18:57:32 -0800 | [diff] [blame] | 540 | 	MSG_LVL_LOW, | 
 | 541 | 	MSG_LVL_LOW, | 
 | 542 | 	MSG_LVL_LOW, | 
 | 543 | 	MSG_LVL_LOW, | 
 | 544 | 	MSG_LVL_LOW, | 
 | 545 | 	MSG_LVL_LOW, | 
 | 546 | 	MSG_LVL_LOW, | 
 | 547 | 	MSG_LVL_LOW, | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 548 | 	MSG_LVL_LOW | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 549 | }; | 
 | 550 |  | 
 | 551 | static const uint32_t msg_bld_masks_11[] = { | 
 | 552 | 	MSG_LVL_LOW, | 
 | 553 | 	MSG_LVL_LOW, | 
 | 554 | 	MSG_LVL_LOW, | 
 | 555 | 	MSG_LVL_LOW, | 
 | 556 | 	MSG_LVL_LOW, | 
 | 557 | 	MSG_LVL_LOW, | 
 | 558 | 	MSG_LVL_LOW, | 
 | 559 | 	MSG_LVL_LOW, | 
 | 560 | 	MSG_LVL_LOW, | 
 | 561 | 	MSG_LVL_LOW, | 
 | 562 | 	MSG_LVL_LOW, | 
 | 563 | 	MSG_LVL_LOW, | 
 | 564 | 	MSG_LVL_LOW, | 
 | 565 | 	MSG_LVL_LOW, | 
 | 566 | 	MSG_LVL_LOW, | 
 | 567 | 	MSG_LVL_LOW, | 
 | 568 | 	MSG_LVL_LOW, | 
 | 569 | 	MSG_LVL_LOW, | 
 | 570 | 	MSG_LVL_LOW, | 
 | 571 | 	MSG_LVL_LOW, | 
 | 572 | 	MSG_LVL_LOW, | 
 | 573 | 	MSG_LVL_LOW, | 
 | 574 | }; | 
 | 575 |  | 
 | 576 | static const uint32_t msg_bld_masks_12[] = { | 
 | 577 | 	MSG_LVL_MED, | 
 | 578 | 	MSG_LVL_MED, | 
 | 579 | 	MSG_LVL_MED, | 
 | 580 | 	MSG_LVL_MED, | 
 | 581 | }; | 
 | 582 |  | 
 | 583 | static const uint32_t msg_bld_masks_13[] = { | 
 | 584 | 	MSG_LVL_MED, | 
 | 585 | 	MSG_LVL_MED, | 
 | 586 | 	MSG_LVL_MED, | 
 | 587 | 	MSG_LVL_MED, | 
 | 588 | 	MSG_LVL_MED, | 
 | 589 | 	MSG_LVL_MED, | 
 | 590 | 	MSG_LVL_MED, | 
 | 591 | 	MSG_LVL_MED, | 
 | 592 | 	MSG_LVL_MED, | 
 | 593 | 	MSG_LVL_MED, | 
 | 594 | 	MSG_LVL_MED, | 
 | 595 | 	MSG_LVL_MED, | 
 | 596 | }; | 
 | 597 |  | 
 | 598 | static const uint32_t msg_bld_masks_14[] = { | 
 | 599 | 	MSG_LVL_MED, | 
 | 600 | 	MSG_LVL_MED, | 
 | 601 | }; | 
 | 602 |  | 
 | 603 | static const uint32_t msg_bld_masks_15[] = { | 
 | 604 | 	MSG_LVL_MED | 
 | 605 | }; | 
 | 606 |  | 
 | 607 | static const uint32_t msg_bld_masks_16[] = { | 
 | 608 | 	MSG_LVL_LOW, | 
 | 609 | 	MSG_LVL_LOW, | 
 | 610 | 	MSG_LVL_LOW, | 
 | 611 | 	MSG_LVL_LOW, | 
 | 612 | 	MSG_LVL_LOW, | 
 | 613 | 	MSG_LVL_LOW, | 
 | 614 | 	MSG_LVL_LOW, | 
 | 615 | 	MSG_LVL_LOW, | 
 | 616 | 	MSG_LVL_LOW, | 
 | 617 | 	MSG_LVL_LOW, | 
 | 618 | 	MSG_LVL_LOW, | 
 | 619 | 	MSG_LVL_LOW, | 
 | 620 | 	MSG_LVL_LOW, | 
 | 621 | 	MSG_LVL_LOW, | 
 | 622 | 	MSG_LVL_LOW, | 
 | 623 | 	MSG_LVL_LOW, | 
 | 624 | 	MSG_LVL_LOW, | 
 | 625 | 	MSG_LVL_LOW, | 
 | 626 | 	MSG_LVL_LOW, | 
 | 627 | 	MSG_LVL_LOW, | 
 | 628 | 	MSG_LVL_LOW, | 
 | 629 | 	MSG_LVL_LOW, | 
 | 630 | 	MSG_LVL_LOW, | 
 | 631 | 	MSG_LVL_LOW, | 
 | 632 | }; | 
 | 633 |  | 
 | 634 | static const uint32_t msg_bld_masks_17[] =  { | 
 | 635 | 	MSG_LVL_MED, | 
 | 636 | 	MSG_LVL_MED, | 
 | 637 | 	MSG_LVL_MED, | 
 | 638 | 	MSG_LVL_MED | MSG_MASK_6 | \ | 
 | 639 | 		MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9, | 
 | 640 | 	MSG_LVL_MED | MSG_MASK_5 | \ | 
 | 641 | 		MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9 | \ | 
 | 642 | 		MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 | MSG_MASK_13 | \ | 
 | 643 | 		MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 | MSG_MASK_17, | 
 | 644 | 	MSG_LVL_MED, | 
 | 645 | 	MSG_LVL_MED | MSG_MASK_5 | \ | 
 | 646 | 		MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9 | \ | 
 | 647 | 		MSG_MASK_10 | MSG_MASK_11 | MSG_MASK_12 | MSG_MASK_13 | \ | 
 | 648 | 		MSG_MASK_14 | MSG_MASK_15 | MSG_MASK_16 | MSG_MASK_17 | \ | 
 | 649 | 		MSG_MASK_18 | MSG_MASK_19 | MSG_MASK_20 | MSG_MASK_21 | \ | 
 | 650 | 		MSG_MASK_22, | 
 | 651 | 	MSG_LVL_MED, | 
 | 652 | 	MSG_LVL_MED, | 
 | 653 | }; | 
 | 654 |  | 
 | 655 | static const uint32_t msg_bld_masks_18[] = { | 
 | 656 | 	MSG_LVL_LOW, | 
 | 657 | 	MSG_LVL_LOW | MSG_MASK_8 | MSG_MASK_9 | MSG_MASK_10 | \ | 
 | 658 | 		MSG_MASK_11|MSG_MASK_12|MSG_MASK_13|MSG_MASK_14|MSG_MASK_15 | \ | 
 | 659 | 		MSG_MASK_16|MSG_MASK_17|MSG_MASK_18|MSG_MASK_19|MSG_MASK_20, | 
 | 660 | 	MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6, | 
 | 661 | 	MSG_LVL_LOW | MSG_MASK_5, | 
 | 662 | 	MSG_LVL_LOW | MSG_MASK_5 | MSG_MASK_6, | 
 | 663 | 	MSG_LVL_LOW, | 
 | 664 | 	MSG_LVL_LOW | MSG_MASK_5 | \ | 
 | 665 | 		MSG_MASK_6 | MSG_MASK_7 | MSG_MASK_8 | MSG_MASK_9, | 
 | 666 | 	MSG_LVL_LOW, | 
 | 667 | 	MSG_LVL_LOW, | 
 | 668 | 	MSG_LVL_LOW | 
 | 669 | }; | 
 | 670 |  | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 671 | static const uint32_t msg_bld_masks_19[] = { | 
 | 672 | 	MSG_LVL_LOW, | 
 | 673 | 	MSG_LVL_LOW, | 
 | 674 | 	MSG_LVL_LOW, | 
 | 675 | 	MSG_LVL_LOW, | 
 | 676 | 	MSG_LVL_LOW, | 
 | 677 | 	MSG_LVL_LOW, | 
 | 678 | 	MSG_LVL_LOW, | 
 | 679 | 	MSG_LVL_LOW, | 
 | 680 | 	MSG_LVL_LOW, | 
 | 681 | 	MSG_LVL_LOW, | 
 | 682 | 	MSG_LVL_LOW | 
 | 683 | }; | 
 | 684 |  | 
 | 685 | static const uint32_t msg_bld_masks_20[] = { | 
 | 686 | 	MSG_LVL_LOW, | 
 | 687 | 	MSG_LVL_LOW, | 
 | 688 | 	MSG_LVL_LOW, | 
 | 689 | 	MSG_LVL_LOW, | 
 | 690 | 	MSG_LVL_LOW | 
 | 691 | }; | 
 | 692 |  | 
 | 693 | static const uint32_t msg_bld_masks_21[] = { | 
 | 694 | 	MSG_LVL_HIGH | 
 | 695 | }; | 
 | 696 |  | 
 | 697 | static const uint32_t msg_bld_masks_22[] = { | 
| Dixon Peterson | 2061f85 | 2013-01-22 17:53:05 -0800 | [diff] [blame] | 698 | 	MSG_LVL_LOW, | 
 | 699 | 	MSG_LVL_LOW, | 
 | 700 | 	MSG_LVL_LOW, | 
 | 701 | 	MSG_LVL_LOW, | 
 | 702 | 	MSG_LVL_LOW, | 
 | 703 | 	MSG_LVL_LOW, | 
 | 704 | 	MSG_LVL_LOW, | 
 | 705 | 	MSG_LVL_LOW, | 
 | 706 | 	MSG_LVL_LOW, | 
 | 707 | 	MSG_LVL_LOW, | 
 | 708 | 	MSG_LVL_LOW, | 
| Ravi Aravamudhan | b32fcca | 2013-02-04 18:57:32 -0800 | [diff] [blame] | 709 | 	MSG_LVL_LOW, | 
 | 710 | 	MSG_LVL_LOW, | 
 | 711 | 	MSG_LVL_LOW, | 
 | 712 | 	MSG_LVL_LOW, | 
 | 713 | 	MSG_LVL_LOW, | 
 | 714 | 	MSG_LVL_LOW, | 
 | 715 | 	MSG_LVL_LOW, | 
 | 716 | 	MSG_LVL_LOW, | 
 | 717 | 	MSG_LVL_LOW, | 
 | 718 | 	MSG_LVL_LOW, | 
 | 719 | 	MSG_LVL_LOW, | 
 | 720 | 	MSG_LVL_LOW, | 
 | 721 | 	MSG_LVL_LOW, | 
| Dixon Peterson | 2061f85 | 2013-01-22 17:53:05 -0800 | [diff] [blame] | 722 | 	MSG_LVL_LOW | 
| Shalabh Jain | 321c8b5 | 2012-02-22 12:37:06 -0800 | [diff] [blame] | 723 | }; | 
 | 724 |  | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 725 | /* LOG CODES */ | 
 | 726 |  | 
 | 727 | #define LOG_0	0x0 | 
| Ravi Aravamudhan | 1787385 | 2013-05-23 17:16:19 -0700 | [diff] [blame] | 728 | #define LOG_1	0x17FA | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 729 | #define LOG_2	0x0 | 
 | 730 | #define LOG_3	0x0 | 
 | 731 | #define LOG_4	0x4910 | 
 | 732 | #define LOG_5	0x5420 | 
 | 733 | #define LOG_6	0x0 | 
 | 734 | #define LOG_7	0x74FF | 
 | 735 | #define LOG_8	0x0 | 
 | 736 | #define LOG_9	0x0 | 
 | 737 | #define LOG_10	0xA38A | 
 | 738 | #define LOG_11	0xB201 | 
 | 739 | #define LOG_12	0x0 | 
 | 740 | #define LOG_13	0x0 | 
 | 741 | #define LOG_14	0x0 | 
 | 742 | #define LOG_15	0x0 | 
 | 743 |  | 
 | 744 | #define LOG_GET_ITEM_NUM(xx_code) (xx_code & 0x0FFF) | 
| Shalabh Jain | 14f480d | 2012-09-14 10:56:49 -0700 | [diff] [blame] | 745 | #define LOG_GET_EQUIP_ID(xx_code) ((xx_code & 0xF000) >> 12) | 
| Bryan Huntsman | 3f2bc4d | 2011-08-16 17:27:22 -0700 | [diff] [blame] | 746 |  | 
 | 747 | #endif |