]> rtime.felk.cvut.cz Git - l4.git/blob - l4/pkg/l4sys/include/ARCH-arm/types.h
update
[l4.git] / l4 / pkg / l4sys / include / ARCH-arm / types.h
1 /**
2  * \file
3  * \brief Types for ARM
4  */
5 /*
6  * (c) 2008-2009 Adam Lackorzynski <adam@os.inf.tu-dresden.de>,
7  *               Alexander Warg <warg@os.inf.tu-dresden.de>
8  *     economic rights: Technische Universität Dresden (Germany)
9  *
10  * This file is part of TUD:OS and distributed under the terms of the
11  * GNU General Public License 2.
12  * Please see the COPYING-GPL-2 file for details.
13  *
14  * As a special exception, you may use this file as part of a free software
15  * library without restriction.  Specifically, if other files instantiate
16  * templates or use macros or inline functions from this file, or you compile
17  * this file and link it with other files to produce an executable, this
18  * file does not by itself cause the resulting executable to be covered by
19  * the GNU General Public License.  This exception does not however
20  * invalidate any other reasons why the executable file might be covered by
21  * the GNU General Public License.
22  */
23 #ifndef L4_TYPES_H
24 #define L4_TYPES_H
25
26 #include_next <l4/sys/types.h>
27
28 #include <l4/sys/l4int.h>
29 #include <l4/sys/compiler.h>
30 #include <l4/sys/consts.h>
31
32 #include <l4/sys/__l4_fpage.h>
33
34 #include <l4/sys/__timeout.h>
35
36 /**
37  * \brief l4_schedule param word
38  */
39 /*
40 typedef union {
41   struct {
42     l4_umword_t prio     :8;
43     l4_umword_t small    :8;
44     l4_umword_t state    :4;
45     l4_umword_t time_exp :4;
46     l4_umword_t time_man :8;
47   } sp;
48   l4_umword_t sched_param;
49   l4_umword_t raw;
50 } l4_sched_param_t;
51
52 #define L4_INVALID_SCHED_PARAM ((l4_sched_param_t){raw:(l4_umword_t)-1})
53 */
54
55 /* Compute l4_sched_param_struct_t->small argument for
56    l4_thread_schedule(): size_mb is the size of all small address
57    spaces, and nr is the number of the small address space.  See
58    Liedtke: ``L4 Pentium implementation'' */
59 //#define L4_SMALL_SPACE(size_mb, nr) ((size_mb >> 2) + nr * (size_mb >> 1))
60
61 /*
62  * Some useful operations and test functions for id's and types
63  */
64
65 //L4_INLINE int        l4_is_invalid_sched_param (l4_sched_param_t sp);
66
67 /*-----------------------------------------------------------------------------
68  * IMPLEMENTATION
69  *---------------------------------------------------------------------------*/
70 /*
71 L4_INLINE int l4_is_invalid_sched_param(l4_sched_param_t sp)
72 {
73   return sp.raw == (l4_umword_t)-1;
74 }
75 */
76
77
78 #endif /* L4_TYPES_H */ 
79
80