Mercurial > flash_v2
comparison packages/net/tcpip/current/include/sys/kernel.h @ 97:ced4577552cd ecos-sw-2000-06-06
Merge from eCos master repository on 2000-06-06-08:44:00-BST
| author | jlarmour |
|---|---|
| date | Tue, 06 Jun 2000 08:39:36 +0000 |
| parents | |
| children | 6ed91473a1cd |
comparison
equal
deleted
inserted
replaced
| 96:b15c60e34c84 | 97:ced4577552cd |
|---|---|
| 1 //========================================================================== | |
| 2 // | |
| 3 // include/sys/kernel.h | |
| 4 // | |
| 5 // | |
| 6 // | |
| 7 //========================================================================== | |
| 8 //####COPYRIGHTBEGIN#### | |
| 9 // | |
| 10 // ------------------------------------------- | |
| 11 // The contents of this file are subject to the Red Hat eCos Public License | |
| 12 // Version 1.1 (the "License"); you may not use this file except in | |
| 13 // compliance with the License. You may obtain a copy of the License at | |
| 14 // http://www.redhat.com/ | |
| 15 // | |
| 16 // Software distributed under the License is distributed on an "AS IS" | |
| 17 // basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
| 18 // License for the specific language governing rights and limitations under | |
| 19 // the License. | |
| 20 // | |
| 21 // The Original Code is eCos - Embedded Configurable Operating System, | |
| 22 // released September 30, 1998. | |
| 23 // | |
| 24 // The Initial Developer of the Original Code is Red Hat. | |
| 25 // Portions created by Red Hat are | |
| 26 // Copyright (C) 1998, 1999, 2000 Red Hat, Inc. | |
| 27 // All Rights Reserved. | |
| 28 // ------------------------------------------- | |
| 29 // | |
| 30 //####COPYRIGHTEND#### | |
| 31 //####BSDCOPYRIGHTBEGIN#### | |
| 32 // | |
| 33 // ------------------------------------------- | |
| 34 // | |
| 35 // Portions of this software may have been derived from OpenBSD or other sources, | |
| 36 // and are covered by the appropriate copyright disclaimers included herein. | |
| 37 // | |
| 38 // ------------------------------------------- | |
| 39 // | |
| 40 //####BSDCOPYRIGHTEND#### | |
| 41 //========================================================================== | |
| 42 //#####DESCRIPTIONBEGIN#### | |
| 43 // | |
| 44 // Author(s): gthomas | |
| 45 // Contributors: gthomas | |
| 46 // Date: 2000-01-10 | |
| 47 // Purpose: | |
| 48 // Description: | |
| 49 // | |
| 50 // | |
| 51 //####DESCRIPTIONEND#### | |
| 52 // | |
| 53 //========================================================================== | |
| 54 | |
| 55 | |
| 56 /* $OpenBSD: kernel.h,v 1.5 1996/08/11 20:39:07 niklas Exp $ */ | |
| 57 /* $NetBSD: kernel.h,v 1.11 1995/03/03 01:24:16 cgd Exp $ */ | |
| 58 | |
| 59 /*- | |
| 60 * Copyright (c) 1990, 1993 | |
| 61 * The Regents of the University of California. All rights reserved. | |
| 62 * (c) UNIX System Laboratories, Inc. | |
| 63 * All or some portions of this file are derived from material licensed | |
| 64 * to the University of California by American Telephone and Telegraph | |
| 65 * Co. or Unix System Laboratories, Inc. and are reproduced herein with | |
| 66 * the permission of UNIX System Laboratories, Inc. | |
| 67 * | |
| 68 * Redistribution and use in source and binary forms, with or without | |
| 69 * modification, are permitted provided that the following conditions | |
| 70 * are met: | |
| 71 * 1. Redistributions of source code must retain the above copyright | |
| 72 * notice, this list of conditions and the following disclaimer. | |
| 73 * 2. Redistributions in binary form must reproduce the above copyright | |
| 74 * notice, this list of conditions and the following disclaimer in the | |
| 75 * documentation and/or other materials provided with the distribution. | |
| 76 * 3. All advertising materials mentioning features or use of this software | |
| 77 * must display the following acknowledgement: | |
| 78 * This product includes software developed by the University of | |
| 79 * California, Berkeley and its contributors. | |
| 80 * 4. Neither the name of the University nor the names of its contributors | |
| 81 * may be used to endorse or promote products derived from this software | |
| 82 * without specific prior written permission. | |
| 83 * | |
| 84 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
| 85 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
| 86 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
| 87 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
| 88 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
| 89 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
| 90 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
| 91 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
| 92 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
| 93 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
| 94 * SUCH DAMAGE. | |
| 95 * | |
| 96 * @(#)kernel.h 8.3 (Berkeley) 1/21/94 | |
| 97 */ | |
| 98 | |
| 99 /* Global variables for the kernel. */ | |
| 100 | |
| 101 /* 1.1 */ | |
| 102 extern long hostid; | |
| 103 extern char hostname[MAXHOSTNAMELEN]; | |
| 104 extern int hostnamelen; | |
| 105 extern char domainname[MAXHOSTNAMELEN]; | |
| 106 extern int domainnamelen; | |
| 107 | |
| 108 /* 1.2 */ | |
| 109 extern volatile struct timeval mono_time; | |
| 110 extern struct timeval boottime; | |
| 111 extern struct timeval runtime; | |
| 112 extern volatile struct timeval time; | |
| 113 extern struct timezone tz; /* XXX */ | |
| 114 | |
| 115 extern int tick; /* usec per tick (1000000 / hz) */ | |
| 116 extern int tickfix; /* periodic tick adj. tick not integral */ | |
| 117 extern int tickfixinterval; /* interval at which to apply adjustment */ | |
| 118 extern int tickadj; /* "standard" clock skew, us./tick */ | |
| 119 extern int hz; /* system clock's frequency */ | |
| 120 extern int stathz; /* statistics clock's frequency */ | |
| 121 extern int profhz; /* profiling clock's frequency */ | |
| 122 extern int lbolt; /* once a second sleep address */ | |
| 123 extern int tickdelta; | |
| 124 extern long timedelta; | |
| 125 | |
| 126 |
