Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / cmnos / dbg_api.h
1 /************************************************************************/
2 /*                                                                      */
3 /*  FILE DESCRIPTION                                                    */
4 /*                                                                      */
5 /*  This file contains console debug command table structure and        */
6 /*  relative defination.                                                */
7 /*                                                                      */
8 /*  ROUTINES                                                            */
9 /*                                                                      */
10 /*      None                                                            */
11 /*                                                                      */
12 /*  NOTES                                                               */
13 /*                                                                      */
14 /*      None                                                            */
15 /*                                                                      */
16 /************************************************************************/
17 #ifndef _DB_DEFS_H
18 #define _DB_DEFS_H
19
20 #define ATH_DEBUGGER_VERSION_STR     "Magpie Debugger: "ATH_VERSION_STR
21 #define ATH_COMMAND_LIST_STR         "\n\r===Command Listing===\n\r"
22
23 #define DB_MAX_COMMAND_LENGTH       40   /* Maximum command line length */
24 #define COMMAND_BUFFER_SIZE         6    /* Maximum command buffer size */
25
26 struct DB_COMMAND_STRUCT
27 {
28     char* cmd_str;                         /* Command string */
29     char* help_str;                        /* Help description */
30     int (*cmd_func)(char *, char*, char*, char*);  /* Command function */
31 };
32
33 #define zm_uart_send(x, y) A_PUTS(x)
34 #define zm_get_char(x)     A_GETC(x)
35
36 /******** hardware API table structure (API descriptions below) *************/
37 struct dbg_api {
38     void (*_dbg_init)(void);
39     void (*_dbg_task)(void);
40 };
41
42
43 #endif