• Home
  • History
  • Annotate
  • Line#
  • Navigate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/router/gctwimax-0.0.3rc4/src/
1/*
2 * This is a reverse-engineered driver for mobile WiMAX (802.16e) devices
3 * based on GCT Semiconductor GDM7213 & GDM7205 chip.
4 * Copyright (�) 2010 Yaroslav Levandovsky <leyarx@gmail.com>
5 *
6 * Based on  madWiMAX driver writed by Alexander Gordeev
7 * Copyright (C) 2008-2009 Alexander Gordeev <lasaine@lvk.cs.msu.su>
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU General Public License for more details.
18 *
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
22 */
23
24#ifndef _LOGGING_H
25#define _LOGGING_H
26
27#include <stdio.h>
28
29/* get printable madwimax version */
30const char* get_wimax_version();
31
32/* set wmlog level to the desired value */
33int wimax_log_level;
34void set_wmlog_level(int level);
35
36/* increase wmlog level by 1 */
37void inc_wmlog_level();
38
39/* set logger */
40#define WMLOGGER_FILE	0
41#define WMLOGGER_SYSLOG	1
42void set_wmlogger(const char *progname, int logger, FILE *file);
43
44/* print wmlog message. */
45void wmlog_msg(int level, const char *fmt, ...);
46
47/* dump message and len bytes from buf in hexadecimal and ASCII. */
48void wmlog_dumphexasc(int level, const void *buf, int len, const char *fmt, ...);
49
50#endif /* _LOGGING_H */
51
52