1 /*
2  * Include file for defining the kernel loggger messages
3  * These definitions are shared between the klog driver and the
4  * klogd daemon process
5  *
6  * Copyright (C) Eicon Technology Corporation, 2000.
7  *
8  * Eicon File Revision :    1.0
9  *
10  * This software may be used and distributed according to the terms
11  * of the GNU General Public License, incorporated herein by reference.
12  *
13  */
14 
15 #if !defined(_KLOGMSG_H)
16 #define _KLOGMSG_H
17 
18 /* define a type for a log entry */
19 
20 #define KLOG_TEXT_MSG   	(0)
21 #define KLOG_XLOG_MSG   	(1)
22 #define KLOG_XTXT_MSG   	(2)
23 #define KLOG_IDI_REQ   		(4)
24 #define KLOG_IDI_CALLBACK   (5)
25 #define KLOG_CAPI_MSG   	(6)
26 
27 typedef struct
28 {
29     unsigned long   time_stamp; /* in ms since last system boot */
30     int    			card;       /* card number (-1 for all) */
31     unsigned int    type;       /* type of log message (0 is text) */
32     unsigned int    length;     /* message length (non-text messages only) */
33     unsigned short  code;       /* message code (non-text messages only) */
34     char            buffer[110];/* text/data to log */
35 } klog_t;
36 
37 void    DivasLogAdd(void *buffer, int length);
38 #endif /* of _KLOGMSG_H */
39