Subversion Repositories shark

Rev

Rev 3 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 pj 1
/*
2
 * Project: S.Ha.R.K.
3
 *
4
 * Coordinators:
5
 *   Giorgio Buttazzo    <giorgio@sssup.it>
6
 *   Paolo Gai           <pj@gandalf.sssup.it>
7
 *
8
 * Authors     :
9
 *   Paolo Gai           <pj@gandalf.sssup.it>
10
 *   Massimiliano Giorgi <massy@gandalf.sssup.it>
11
 *   Luca Abeni          <luca@gandalf.sssup.it>
12
 *   (see the web pages for full authors list)
13
 *
14
 * ReTiS Lab (Scuola Superiore S.Anna - Pisa - Italy)
15
 *
16
 * http://www.sssup.it
17
 * http://retis.sssup.it
18
 * http://shark.sssup.it
19
 */
20
 
21
/*
22
 * Copyright (C) 1999 Massimiliano Giorgi
23
 *
24
 * This program is free software; you can redistribute it and/or modify
25
 * it under the terms of the GNU General Public License as published by
26
 * the Free Software Foundation; either version 2 of the License, or
27
 * (at your option) any later version.
28
 *
29
 * This program is distributed in the hope that it will be useful,
30
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
32
 * GNU General Public License for more details.
33
 *
34
 * You should have received a copy of the GNU General Public License
35
 * along with this program; if not, write to the Free Software
36
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
37
 *
38
 */
39
 
40
/*
41
 * CVS :        $Id: magic.h,v 1.1.1.1 2002-03-29 14:12:51 pj Exp $
42
 *
43
 * File:        $File$
44
 * Revision:    $Revision: 1.1.1.1 $
45
 * Last update: $Date: 2002-03-29 14:12:51 $
46
 */
47
 
48
#ifndef _FS_MAGIC_H
49
#define _FS_MAGIC_H
50
 
51
#ifdef _PARANOIA
52
 
53
/*
54
 * _PARANOIA defined
55
 */
56
 
57
#define ZERO_MAGIC         0x00000000
58
 
59
/* drivers/block/ */
60
#define BLOCK_DEVICE_MAGIC 0xaa1b1234
61
#define PHDSK_MAGIC        0x129a7412
62
#define IDE_MAGIC          0x30afc781
63
#define IDE_MAGIC_MINOR    0x1290aff3
64
 
65
/* fs/ */
66
#define DCACHE_MAGIC       0x77881299
67
#define INODE_MAGIC        0x9978100a
68
#define DENTRY_MAGIC       0x119aaf45
69
 
70
/* log level */
71
#include <fs/util.h>
72
#define PARANOIALOG KERN_EMERG
73
 
74
/* assert macros */
75
#include <fs/assert.h>
76
 
77
#define magic_set(value,magic) \
78
  { (value)=(magic); }
79
 
80
#include <fs/types.h>
81
#define DECLARE_MAGIC(x)  __uint32_t x
82
 
83
#else
84
 
85
/*
86
 * _PARANOIA not defined
87
 */
88
 
89
#define DECLARE_MAGIC(x)  __uint32_t x
90
#define magic_set(value,magic) {}
91
 
92
#endif
93
 
94
#define magic_clr(value) magic_set(value,ZERO_MAGIC)
95
 
96
#endif