/* * Copyright (c) 2004-2011 Atheros Communications Inc. * Copyright (c) 2011 Qualcomm Atheros, Inc. * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef BMI_H #define BMI_H
/* * Bootloader Messaging Interface (BMI) * * BMI is a very simple messaging interface used during initialization * to read memory, write memory, execute code, and to define an * application entry PC. * * It is used to download an application to ATH6KL, to provide * patches to code that is already resident on ATH6KL, and generally * to examine and modify state. The Host has an opportunity to use * BMI only once during bootup. Once the Host issues a BMI_DONE * command, this opportunity ends. * * The Host writes BMI requests to mailbox0, and reads BMI responses * from mailbox0. BMI requests all begin with a command * (see below for specific commands), and are followed by * command-specific data. * * Flow control: * The Host can only issue a command once the Target gives it a * "BMI Command Credit", using ATH6KL Counter #4. As soon as the * Target has completed a command, it issues another BMI Command * Credit (so the Host can issue the next command). * * BMI handles all required Target-side cache flushing.
*/
#define BMI_ROMPATCH_ACTIVATE 11 /* * Semantics: Activate a list of previously-installed ROM Patches. * Request format: * u32 command (BMI_ROMPATCH_ACTIVATE) * u32 rompatch_count * u32 PatchID[rompatch_count] * * Response format: none
*/
#define BMI_ROMPATCH_DEACTIVATE 12 /* * Semantics: Deactivate a list of active ROM Patches. * Request format: * u32 command (BMI_ROMPATCH_DEACTIVATE) * u32 rompatch_count * u32 PatchID[rompatch_count] * * Response format: none
*/
#define BMI_LZ_STREAM_START 13 /* * Semantics: Begin an LZ-compressed stream of input * which is to be uncompressed by the Target to an * output buffer at address. The output buffer must * be sufficiently large to hold the uncompressed * output from the compressed input stream. This BMI * command should be followed by a series of 1 or more * BMI_LZ_DATA commands. * u32 command (BMI_LZ_STREAM_START) * u32 address * Note: Not supported on all versions of ROM firmware.
*/
#define BMI_LZ_DATA 14 /* * Semantics: Host writes ATH6KL memory with LZ-compressed * data which is uncompressed by the Target. This command * must be preceded by a BMI_LZ_STREAM_START command. A series * of BMI_LZ_DATA commands are considered part of a single * input stream until another BMI_LZ_STREAM_START is issued. * Request format: * u32 command (BMI_LZ_DATA) * u32 length (of compressed data), * at most BMI_DATASZ_MAX * u8 CompressedData[length] * Response format: none * Note: Not supported on all versions of ROM firmware.
*/
#define BMI_COMMUNICATION_TIMEOUT 1000 /* in msec */
struct ath6kl; struct ath6kl_bmi_target_info {
__le32 byte_count; /* size of this structure */
__le32 version; /* target version id */
__le32 type; /* target type */
} __packed;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.