00001 /* 00002 * Copyright (C) 2001-2004 Jakub Jermar 00003 * All rights reserved. 00004 * 00005 * Redistribution and use in source and binary forms, with or without 00006 * modification, are permitted provided that the following conditions 00007 * are met: 00008 * 00009 * - Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * - Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in the 00013 * documentation and/or other materials provided with the distribution. 00014 * - The name of the author may not be used to endorse or promote products 00015 * derived from this software without specific prior written permission. 00016 * 00017 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 00018 * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 00019 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 00020 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 00021 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 00022 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 00023 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 00024 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 00025 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 00026 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 00027 */ 00028 00035 #ifndef __TYPEDEFS_H__ 00036 #define __TYPEDEFS_H__ 00037 00038 #define false 0 00039 #define true 1 00040 00041 typedef short bool; 00042 00043 typedef unsigned long size_t; 00044 typedef unsigned long count_t; 00045 typedef unsigned long index_t; 00046 00047 typedef unsigned long long task_id_t; 00048 00049 typedef struct cpu_info cpu_info_t; 00050 00051 typedef struct cpu cpu_t; 00052 typedef struct cpu_arch cpu_arch_t; 00053 typedef struct task task_t; 00054 typedef enum state state_t; 00055 typedef struct thread thread_t; 00056 typedef struct context context_t; 00057 typedef struct fpu_context fpu_context_t; 00058 00059 typedef struct timeout timeout_t; 00060 00061 typedef struct runq runq_t; 00062 00063 typedef struct spinlock spinlock_t; 00064 typedef struct mutex mutex_t; 00065 typedef struct semaphore semaphore_t; 00066 typedef struct rwlock rwlock_t; 00067 typedef enum rwlock_type rwlock_type_t; 00068 typedef struct condvar condvar_t; 00069 typedef struct waitq waitq_t; 00070 typedef struct futex futex_t; 00071 00072 typedef struct buddy_system buddy_system_t; 00073 typedef struct buddy_system_operations buddy_system_operations_t; 00074 00075 typedef struct as_area as_area_t; 00076 typedef struct as as_t; 00077 00078 typedef struct link link_t; 00079 00080 typedef struct the the_t; 00081 00082 typedef struct chardev chardev_t; 00083 00084 typedef enum cmd_arg_type cmd_arg_type_t; 00085 typedef struct cmd_arg cmd_arg_t; 00086 typedef struct cmd_info cmd_info_t; 00087 00088 typedef struct istate istate_t; 00089 typedef void (* iroutine)(int n, istate_t *istate); 00090 00091 typedef struct hash_table hash_table_t; 00092 typedef struct hash_table_operations hash_table_operations_t; 00093 00094 typedef struct btree_node btree_node_t; 00095 typedef struct btree btree_t; 00096 00097 #endif 00098