~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to drivers/staging/ath6kl/include/common/dbglog.h

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#ifndef _DBGLOG_H_
25
25
#define _DBGLOG_H_
26
26
 
27
 
#ifndef ATH_TARGET
28
 
#include "athstartpack.h"
29
 
#endif
30
 
 
31
27
#ifdef __cplusplus
32
28
extern "C" {
33
29
#endif
44
40
#define DBGLOG_MODULEID_NUM_MAX          16 /* Upper limit is width of mask */
45
41
 
46
42
/*
47
 
 * Please ensure that the definition of any new module intrduced is captured
 
43
 * Please ensure that the definition of any new module introduced is captured
48
44
 * between the DBGLOG_MODULEID_START and DBGLOG_MODULEID_END defines. The 
49
45
 * structure is required for the parser to correctly pick up the values for
50
46
 * different modules.
89
85
 
90
86
PREPACK struct dbglog_buf_s {
91
87
    struct dbglog_buf_s *next;
92
 
    A_UINT8             *buffer;
93
 
    A_UINT32             bufsize;
94
 
    A_UINT32             length;
95
 
    A_UINT32             count;
96
 
    A_UINT32             free;
 
88
    u8 *buffer;
 
89
    u32 bufsize;
 
90
    u32 length;
 
91
    u32 count;
 
92
    u32 free;
97
93
} POSTPACK;
98
94
 
99
95
PREPACK struct dbglog_hdr_s {
100
96
    struct dbglog_buf_s *dbuf;
101
 
    A_UINT32             dropped;
 
97
    u32 dropped;
102
98
} POSTPACK;
103
99
 
104
100
PREPACK struct dbglog_config_s {
105
 
    A_UINT32                    cfgvalid; /* Mask with valid config bits */
 
101
    u32 cfgvalid; /* Mask with valid config bits */
106
102
    union {
107
103
        /* TODO: Take care of endianness */
108
104
        struct {
109
 
            A_UINT32            mmask:16; /* Mask of modules with logging on */
110
 
            A_UINT32            rep:1; /* Reporting enabled or not */
111
 
            A_UINT32            tsr:3; /* Time stamp resolution. Def: 1 ms */
112
 
            A_UINT32            size:10; /* Report size in number of messages */
113
 
            A_UINT32            reserved:2;
 
105
            u32 mmask:16; /* Mask of modules with logging on */
 
106
            u32 rep:1; /* Reporting enabled or not */
 
107
            u32 tsr:3; /* Time stamp resolution. Def: 1 ms */
 
108
            u32 size:10; /* Report size in number of messages */
 
109
            u32 reserved:2;
114
110
        } dbglog_config;
115
111
 
116
 
        A_UINT32                value;
 
112
        u32 value;
117
113
    } u;
118
114
} POSTPACK;
119
115
 
127
123
}
128
124
#endif
129
125
 
130
 
#ifndef ATH_TARGET
131
 
#include "athendpack.h"
132
 
#endif
133
 
 
134
126
#endif /* _DBGLOG_H_ */