1 #include <linux/types.h>
2 #include <linux/netdevice.h>
3 #include <linux/interrupt.h>
8 * Prints out len, max to 80 octets using printk, 20 per line
12 void lmcConsoleLog(char *type, unsigned char *ucData, int iLen)
17 sprintf(str, KERN_DEBUG "lmc: %s: ", type);
18 pstr = str+strlen(str);
21 printk(KERN_DEBUG "lmc: Printing 240 chars... out of: %d\n", iLen);
25 printk(KERN_DEBUG "lmc: Printing %d chars\n", iLen);
30 sprintf(pstr, "%02x ", *ucData);
37 sprintf(str, KERN_DEBUG "lmc: %s: ", type);
51 u32 lmcEventLogBuf[LMC_EVENTLOGSIZE * LMC_EVENTLOGARGS];
53 void lmcEventLog(u32 EventNum, u32 arg2, u32 arg3)
55 lmcEventLogBuf[lmcEventLogIndex++] = EventNum;
56 lmcEventLogBuf[lmcEventLogIndex++] = arg2;
57 lmcEventLogBuf[lmcEventLogIndex++] = arg3;
58 lmcEventLogBuf[lmcEventLogIndex++] = jiffies;
60 lmcEventLogIndex &= (LMC_EVENTLOGSIZE * LMC_EVENTLOGARGS) - 1;
64 void lmc_trace(struct net_device *dev, char *msg){
66 unsigned long j = jiffies + 3; /* Wait for 50 ms */
69 printk("%s: * %s\n", dev->name, msg);
70 // while(time_before(jiffies, j+10))
74 printk("%s: %s\n", dev->name, msg);
75 while(time_before(jiffies, j))
82 /* --------------------------- end if_lmc_linux.c ------------------------ */