aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wan/lmc/lmc_debug.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /drivers/net/wan/lmc/lmc_debug.h
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'drivers/net/wan/lmc/lmc_debug.h')
-rw-r--r--drivers/net/wan/lmc/lmc_debug.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/drivers/net/wan/lmc/lmc_debug.h b/drivers/net/wan/lmc/lmc_debug.h
new file mode 100644
index 000000000000..cf3563859bf3
--- /dev/null
+++ b/drivers/net/wan/lmc/lmc_debug.h
@@ -0,0 +1,52 @@
1#ifndef _LMC_DEBUG_H_
2#define _LMC_DEBUG_H_
3
4#ifdef DEBUG
5#ifdef LMC_PACKET_LOG
6#define LMC_CONSOLE_LOG(x,y,z) lmcConsoleLog((x), (y), (z))
7#else
8#define LMC_CONSOLE_LOG(x,y,z)
9#endif
10#else
11#define LMC_CONSOLE_LOG(x,y,z)
12#endif
13
14
15
16/* Debug --- Event log definitions --- */
17/* EVENTLOGSIZE*EVENTLOGARGS needs to be a power of 2 */
18#define LMC_EVENTLOGSIZE 1024 /* number of events in eventlog */
19#define LMC_EVENTLOGARGS 4 /* number of args for each event */
20
21/* event indicators */
22#define LMC_EVENT_XMT 1
23#define LMC_EVENT_XMTEND 2
24#define LMC_EVENT_XMTINT 3
25#define LMC_EVENT_RCVINT 4
26#define LMC_EVENT_RCVEND 5
27#define LMC_EVENT_INT 6
28#define LMC_EVENT_XMTINTTMO 7
29#define LMC_EVENT_XMTPRCTMO 8
30#define LMC_EVENT_INTEND 9
31#define LMC_EVENT_RESET1 10
32#define LMC_EVENT_RESET2 11
33#define LMC_EVENT_FORCEDRESET 12
34#define LMC_EVENT_WATCHDOG 13
35#define LMC_EVENT_BADPKTSURGE 14
36#define LMC_EVENT_TBUSY0 15
37#define LMC_EVENT_TBUSY1 16
38
39
40#ifdef DEBUG
41extern u_int32_t lmcEventLogIndex;
42extern u_int32_t lmcEventLogBuf[LMC_EVENTLOGSIZE * LMC_EVENTLOGARGS];
43#define LMC_EVENT_LOG(x, y, z) lmcEventLog((x), (y), (z))
44#else
45#define LMC_EVENT_LOG(x,y,z)
46#endif /* end ifdef _DBG_EVENTLOG */
47
48void lmcConsoleLog(char *type, unsigned char *ucData, int iLen);
49void lmcEventLog (u_int32_t EventNum, u_int32_t arg2, u_int32_t arg3);
50void lmc_trace(struct net_device *dev, char *msg);
51
52#endif