Rev 1618 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1063 | tullio | 1 | |
2 | /* |
||
3 | * This program is free software; you can redistribute it and/or modify |
||
4 | * it under the terms of the GNU General Public License as published by |
||
5 | * the Free Software Foundation; either version 2 of the License, or |
||
6 | * (at your option) any later version. |
||
7 | * |
||
8 | * This program is distributed in the hope that it will be useful, |
||
9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
||
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
||
11 | * GNU General Public License for more details. |
||
12 | * |
||
13 | * You should have received a copy of the GNU General Public License |
||
14 | * along with this program; if not, write to the Free Software |
||
15 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
||
16 | * |
||
17 | */ |
||
18 | |||
497 | giacomo | 19 | #ifndef __FTRACE_TYPES__ |
20 | #define __FTRACE_TYPES__ |
||
21 | |||
22 | /* FTrace types and structures */ |
||
23 | |||
24 | #include <ll/sys/types.h> |
||
25 | #include <ll/i386/mem.h> |
||
1621 | fabio | 26 | #include <arch/math.h> |
497 | giacomo | 27 | |
501 | giacomo | 28 | #include "FTrace.h" |
29 | |||
497 | giacomo | 30 | #define FTRACE_CHUNK_ID 0xFFAAFFBB |
31 | |||
32 | #define MAX_CHUNK 256 |
||
33 | |||
34 | #define FTRACE_CHUNK_FLAG_FREE 0x01 /* Chunk is free */ |
||
35 | #define FTRACE_CHUNK_FLAG_FULL 0x02 /* Chunk is full */ |
||
36 | #define FTRACE_CHUNK_FLAG_CYC 0x00 /* Mode: Cyclical */ |
||
37 | #define FTRACE_CHUNK_FLAG_JTN 0x04 /* Mode: Jump To Next */ |
||
38 | #define FTRACE_CHUNK_FLAG_STOP 0x08 /* MOde: Stop if full */ |
||
39 | #define FTRACE_CHUNK_FLAG_BUSY 0x10 /* Chunk is busy */ |
||
40 | #define FTRACE_CHUNK_FLAG_NODEL 0x20 /* Chunk is protected from delete */ |
||
41 | #define FTRACE_CHUNK_FLAG_COMPR 0x40 /* Chunk is compressed */ |
||
42 | |||
43 | typedef BYTE FTrace_flags; |
||
44 | |||
45 | struct FTrace_Chunk { |
||
46 | DWORD id; |
||
47 | DWORD number; |
||
48 | FTrace_flags flags; |
||
49 | DWORD size; |
||
498 | giacomo | 50 | DWORD emergency_size; |
497 | giacomo | 51 | DWORD osd; |
52 | }; |
||
53 | |||
54 | typedef struct FTrace_Chunk *FTrace_Chunk_Ptr; |
||
55 | |||
56 | #endif |