2 * Copyright (c) 2007-2008 Atheros Communications Inc.
4 * Permission to use, copy, modify, and/or distribute this software for any
5 * purpose with or without fee is hereby granted, provided that the above
6 * copyright notice and this permission notice appear in all copies.
8 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 /* Module Name : wrap_dbg.c */
19 /* This module contains wrapper functions for debug functions */
22 /* Platform dependent. */
24 /************************************************************************/
29 #include <linux/netlink.h>
32 #include <net/iw_handler.h>
35 void zfwDumpBuf(zdev_t* dev, zbuf_t* buf)
39 for (i=0; i<buf->len; i++)
41 printk("%02x ", *(((u8_t*)buf->data)+i));
51 void zfwDbgReadRegDone(zdev_t* dev, u32_t addr, u32_t val)
53 printk("Read addr:%x = %x\n", addr, val);
56 void zfwDbgWriteRegDone(zdev_t* dev, u32_t addr, u32_t val)
58 printk("Write addr:%x = %x\n", addr, val);
61 void zfwDbgReadTallyDone(zdev_t* dev)
63 //printk("Read Tall Done\n");
66 void zfwDbgWriteEepromDone(zdev_t* dev, u32_t addr, u32_t val)
70 void zfwDbgQueryHwTxBusyDone(zdev_t* dev, u32_t val)
75 void zfwDbgReadFlashDone(zdev_t* dev, u32_t addr, u32_t* rspdata, u32_t datalen)
77 printk("Read Flash addr:%x length:%x\n", addr, datalen);
80 void zfwDbgProgrameFlashDone(zdev_t* dev)
82 printk("Program Flash Done\n");
85 void zfwDbgProgrameFlashChkDone(zdev_t* dev)
87 printk("Program Flash Done\n");
90 void zfwDbgGetFlashChkSumDone(zdev_t* dev, u32_t* rspdata)
92 printk("Get Flash ChkSum Done\n");
95 void zfwDbgDownloadFwInitDone(zdev_t* dev)
97 printk("Download FW Init Done\n");
101 /* Leave an empty line below to remove warning message on some compiler */