2 * iwmc3200top - Intel Wireless MultiCom 3200 Top Driver
3 * drivers/misc/iwmc3200top/fw-msg.h
5 * Copyright (C) 2009 Intel Corporation. All rights reserved.
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License version
9 * 2 as published by the Free Software Foundation.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 * Author Name: Maxim Grabarnik <maxim.grabarnink@intel.com>
30 #define COMM_TYPE_D2H 0xFF
31 #define COMM_TYPE_H2D 0xEE
33 #define COMM_CATEGORY_OPERATIONAL 0x00
34 #define COMM_CATEGORY_DEBUG 0x01
35 #define COMM_CATEGORY_TESTABILITY 0x02
36 #define COMM_CATEGORY_DIAGNOSTICS 0x03
38 #define OP_DBG_ZSTR_MSG cpu_to_le16(0x1A)
40 #define FW_LOG_SRC_MAX 32
41 #define FW_LOG_SRC_ALL 255
43 #define FW_STRING_TABLE_ADDR cpu_to_le32(0x0C000000)
45 #define CMD_DBG_LOG_LEVEL cpu_to_le16(0x0001)
46 #define CMD_TST_DEV_RESET cpu_to_le16(0x0060)
47 #define CMD_TST_FUNC_RESET cpu_to_le16(0x0062)
48 #define CMD_TST_IFACE_RESET cpu_to_le16(0x0064)
49 #define CMD_TST_CPU_UTILIZATION cpu_to_le16(0x0065)
50 #define CMD_TST_TOP_DEEP_SLEEP cpu_to_le16(0x0080)
51 #define CMD_TST_WAKEUP cpu_to_le16(0x0081)
52 #define CMD_TST_FUNC_WAKEUP cpu_to_le16(0x0082)
53 #define CMD_TST_FUNC_DEEP_SLEEP_REQUEST cpu_to_le16(0x0083)
54 #define CMD_TST_GET_MEM_DUMP cpu_to_le16(0x0096)
56 #define OP_OPR_ALIVE cpu_to_le16(0x0010)
57 #define OP_OPR_CMD_ACK cpu_to_le16(0x001F)
58 #define OP_OPR_CMD_NACK cpu_to_le16(0x0020)
59 #define OP_TST_MEM_DUMP cpu_to_le16(0x0043)
61 #define CMD_FLAG_PADDING_256 0x80
63 #define FW_HCMD_BLOCK_SIZE 256
72 } __attribute__((__packed__
));
79 } __attribute__((__packed__
));
86 } __attribute__((__packed__
));
93 struct log_hdr log_hdr
;
95 } __attribute__((__packed__
)) log
;
98 struct log_hdr log_hdr
;
99 struct mdump_hdr md_hdr
;
101 } __attribute__((__packed__
)) mdump
;
107 } __attribute__((__packed__
)) logdefs
[FW_LOG_SRC_MAX
];
108 struct mdump_hdr mdump_req
;
110 } __attribute__((__packed__
));
113 #endif /* __FWMSG_H__ */