summaryrefslogtreecommitdiff
path: root/kernel/ctswic.h
blob: 67f3e0b2b03e3d7729bac69b41bd81302800b1c1 (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
/*
-------------------------------------------------------------------------------|
|
| ctswic.h - Header for CodeTEST SWIC data structures used
|            in the Linux kernel
|
| Copyright (c) 2003 - 2007 Freescale Semiconductor, Inc.
| 
| This software is licensed under the GPL.  It may be redistributed 
| and/or modified under the terms of the GNU General Public License as 
| published by the Free Software Foundation; either version 2 of the 
| License, or (at your option) any later version.
|
| Module version: Revision: 1.8
|
-------------------------------------------------------------------------------|
*/

#ifndef CT_SWIC_H_
#define CT_SWIC_H_

/* define this if you disabled in ctdriver.c */
#ifdef CONFIG_ARM
#define CT_SWIC_BUFFER_NOCACHE
#endif

typedef struct Q_Tag {
	u32 tag;
	u32 a_time;
} Q_Tag;

#define HOOK_BUFFER_SIZE  2048	/* must be a power of two */

struct Hook_Buffer {
	int head;
	volatile int tail;
	Q_Tag buffer[HOOK_BUFFER_SIZE];
};

#endif