summaryrefslogtreecommitdiff
path: root/network/wlan/WDI/COMMON/DrvLog.h
blob: 40d974c88249ab587c651c77445291adac2835eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef __INC_DRV_LOG_H
#define __INC_DRV_LOG_H

typedef struct _DRV_LOG_TYPE_ATTRIBUTE_T
{
	unsigned int	MaxLogCountPwr; // 2's power, reprent for max number of logs of this type kept in driver, e.g. 5 means at most 2^5 logs kept.
	unsigned int	DescLen; // Length of bytes used in Description[] including EOS.
	char			Description[1]; // Null terminated string.
}DRV_LOG_TYPE_ATTRIBUTE_T, *PDRV_LOG_TYPE_ATTRIBUTE_T;

typedef struct _DRV_LOG_TYPE_LIST_T
{
	unsigned int				Count;
	DRV_LOG_TYPE_ATTRIBUTE_T	LogTypeAttributes[1];
}DRV_LOG_TYPE_LIST_T, *PDRV_LOG_TYPE_LIST_T;

typedef struct _DRV_LOG_ATTRIBUTE_T
{
	unsigned int	Type; // Key to assoicated with DRV_LOG_TYPE_ATTRIBUTE_T.
	unsigned int	DescLen; // Length of bytes used in Description[] including EOS.
	char			Description[1]; // Null terminated string.
}DRV_LOG_ATTRIBUTE_T, *PDRV_LOG_ATTRIBUTE_T;

typedef struct _DRV_LOG_ATTR_LIST_T
{
	unsigned int				Count;
	DRV_LOG_ATTRIBUTE_T			LogAttributes[1];
}DRV_LOG_ATTR_LIST_T, *PDRV_LOG_ATTR_LIST_T;

typedef struct _DRV_LOG_DATA_T
{
	unsigned int	Id; // Key to associated with DRV_LOG_ATTRIBUTE_T.
	unsigned int	TimeStampLow;
	unsigned int	TimeStampHigh;
	unsigned int	BufferLenUsed; 
	unsigned char	Buffer[1];
}DRV_LOG_DATA_T, *PDRV_LOG_DATA_T;

typedef struct _DRV_LOG_DATA_LIST_T
{
	unsigned int			Count;
	DRV_LOG_DATA_T			LogDatas[1];
}DRV_LOG_DATA_LIST_T, *PDRV_LOG_DATA_LIST_T;


#endif // #ifndef __INC_DRV_LOG_H