-
Notifications
You must be signed in to change notification settings - Fork 7
/
package.h
61 lines (50 loc) · 2.24 KB
/
package.h
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*-
*
* Simulator Trace Library Header
*
* Copyright (C) 1995-2007, Hewlett-Packard Development Company, L.P.
*
* This program is free software; you can redistribute it and/or modify
* it 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.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
#ifndef _SKI_PACKAGE_H
#define _SKI_PACKAGE_H
/**************************************************************************
* File package constants
**************************************************************************/
/* Defines for magic numbers */
#define SKI_PACKAGE_MAGIC 0xf4841436 /* magic_number */
#define SKI_PACKAGE_MAGIC_SP 0xf4841445 /* previous magic_number */
/* SP: Small Package. Kept for compatibility (6/99) */
/* Defines for type */
#define TRACE_PACKAGE 0x10000 /* trace records */
#define ELF_PACKAGE 0x20000 /* an elf package */
#define STATE_PACKAGE 0x30000 /* processor & system state */
/**************************************************************************
* Auxiliary structs
**************************************************************************/
typedef struct {
unsigned short version; /* major version number */
unsigned short revision; /* minor revision number */
} Package_Type;
/**************************************************************************
* File package struct
**************************************************************************/
typedef struct {
unsigned magic_number; /* Marks as Ski Trace Package */
Package_Type type; /* The type of package */
unsigned long long total_length; /* Package length in bytes */
} Package_Header;
#endif /* _SKI_PACKAGE_H */