1/*
2 * Copyright (c) 2014, The Linux Foundation. All rights reserved.
3 * Permission to use, copy, modify, and/or distribute this software for
4 * any purpose with or without fee is hereby granted, provided that the
5 * above copyright notice and this permission notice appear in all copies.
6 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
7 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
8 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
9 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
10 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
11 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
12 * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
13 */
14
15#ifndef _SW_SHELL_H
16#define _SW_SHELL_H
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include "sw.h"
23#include "sw_api.h"
24#include "ssdk_init.h"
25
26    extern a_uint32_t *ioctl_buf;
27    extern ssdk_init_cfg init_cfg;
28    extern ssdk_cfg_t ssdk_cfg;
29
30#define IOCTL_BUF_SIZE 2048
31#define CMDSTR_BUF_SIZE 1024
32#define CMDSTR_ARGS_MAX 128
33#define dprintf cmd_print
34    extern sw_error_t cmd_exec_api(a_uint32_t *arg_val);
35    extern void cmd_print(char *fmt, ...);
36    void cmd_print_error(sw_error_t rtn);
37
38
39#ifdef __cplusplus
40}
41#endif                          /* __cplusplus */
42
43#endif                          /* _SW_SHELL_H */
44