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>
30 #include <net/iw_handler.h>
32 void zfwDumpBuf(zdev_t
* dev
, zbuf_t
* buf
)
36 for (i
=0; i
<buf
->len
; i
++)
38 printk("%02x ", *(((u8_t
*)buf
->data
)+i
));
48 void zfwDbgReadRegDone(zdev_t
* dev
, u32_t addr
, u32_t val
)
50 printk("Read addr:%x = %x\n", addr
, val
);
53 void zfwDbgWriteRegDone(zdev_t
* dev
, u32_t addr
, u32_t val
)
55 printk("Write addr:%x = %x\n", addr
, val
);
58 void zfwDbgReadTallyDone(zdev_t
* dev
)
60 //printk("Read Tall Done\n");
63 void zfwDbgWriteEepromDone(zdev_t
* dev
, u32_t addr
, u32_t val
)
67 void zfwDbgQueryHwTxBusyDone(zdev_t
* dev
, u32_t val
)
72 void zfwDbgReadFlashDone(zdev_t
* dev
, u32_t addr
, u32_t
* rspdata
, u32_t datalen
)
74 printk("Read Flash addr:%x length:%x\n", addr
, datalen
);
77 void zfwDbgProgrameFlashDone(zdev_t
* dev
)
79 printk("Program Flash Done\n");
82 void zfwDbgProgrameFlashChkDone(zdev_t
* dev
)
84 printk("Program Flash Done\n");
87 void zfwDbgGetFlashChkSumDone(zdev_t
* dev
, u32_t
* rspdata
)
89 printk("Get Flash ChkSum Done\n");
92 void zfwDbgDownloadFwInitDone(zdev_t
* dev
)
94 printk("Download FW Init Done\n");
98 /* Leave an empty line below to remove warning message on some compiler */