Root/target/linux/s3c24xx/files-2.6.30/drivers/ar6000/include/dbglog_api.h

1#ifndef _DBGLOG_API_H_
2#define _DBGLOG_API_H_
3/*
4 * Copyright (c) 2004-2006 Atheros Communications Inc.
5 * All rights reserved.
6 *
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation;
11 *
12 * Software distributed under the License is distributed on an "AS
13 * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
14 * implied. See the License for the specific language governing
15 * rights and limitations under the License.
16 *
17 *
18 *
19 * This file contains host side debug primitives.
20 */
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26#include "dbglog.h"
27
28#define DBGLOG_HOST_LOG_BUFFER_SIZE DBGLOG_LOG_BUFFER_SIZE
29
30#define DBGLOG_GET_DBGID(arg) \
31    ((arg & DBGLOG_DBGID_MASK) >> DBGLOG_DBGID_OFFSET)
32
33#define DBGLOG_GET_MODULEID(arg) \
34    ((arg & DBGLOG_MODULEID_MASK) >> DBGLOG_MODULEID_OFFSET)
35
36#define DBGLOG_GET_NUMARGS(arg) \
37    ((arg & DBGLOG_NUM_ARGS_MASK) >> DBGLOG_NUM_ARGS_OFFSET)
38
39#define DBGLOG_GET_TIMESTAMP(arg) \
40    ((arg & DBGLOG_TIMESTAMP_MASK) >> DBGLOG_TIMESTAMP_OFFSET)
41
42#ifdef __cplusplus
43}
44#endif
45
46#endif /* _DBGLOG_API_H_ */
47

Archive Download this file



interactive