1*84d9c625SLionel Sambuc /* $NetBSD: kernel.h,v 1.29 2013/07/30 13:14:30 matt Exp $ */ 26c8f7fc3SBen Gras 36c8f7fc3SBen Gras /*- 46c8f7fc3SBen Gras * Copyright (c) 1990, 1993 56c8f7fc3SBen Gras * The Regents of the University of California. All rights reserved. 66c8f7fc3SBen Gras * (c) UNIX System Laboratories, Inc. 76c8f7fc3SBen Gras * All or some portions of this file are derived from material licensed 86c8f7fc3SBen Gras * to the University of California by American Telephone and Telegraph 96c8f7fc3SBen Gras * Co. or Unix System Laboratories, Inc. and are reproduced herein with 106c8f7fc3SBen Gras * the permission of UNIX System Laboratories, Inc. 116c8f7fc3SBen Gras * 126c8f7fc3SBen Gras * Redistribution and use in source and binary forms, with or without 136c8f7fc3SBen Gras * modification, are permitted provided that the following conditions 146c8f7fc3SBen Gras * are met: 156c8f7fc3SBen Gras * 1. Redistributions of source code must retain the above copyright 166c8f7fc3SBen Gras * notice, this list of conditions and the following disclaimer. 176c8f7fc3SBen Gras * 2. Redistributions in binary form must reproduce the above copyright 186c8f7fc3SBen Gras * notice, this list of conditions and the following disclaimer in the 196c8f7fc3SBen Gras * documentation and/or other materials provided with the distribution. 206c8f7fc3SBen Gras * 3. Neither the name of the University nor the names of its contributors 216c8f7fc3SBen Gras * may be used to endorse or promote products derived from this software 226c8f7fc3SBen Gras * without specific prior written permission. 236c8f7fc3SBen Gras * 246c8f7fc3SBen Gras * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 256c8f7fc3SBen Gras * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 266c8f7fc3SBen Gras * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 276c8f7fc3SBen Gras * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 286c8f7fc3SBen Gras * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 296c8f7fc3SBen Gras * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 306c8f7fc3SBen Gras * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 316c8f7fc3SBen Gras * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 326c8f7fc3SBen Gras * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 336c8f7fc3SBen Gras * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 346c8f7fc3SBen Gras * SUCH DAMAGE. 356c8f7fc3SBen Gras * 366c8f7fc3SBen Gras * @(#)kernel.h 8.3 (Berkeley) 1/21/94 376c8f7fc3SBen Gras */ 386c8f7fc3SBen Gras 396c8f7fc3SBen Gras #ifndef _SYS_KERNEL_H_ 406c8f7fc3SBen Gras #define _SYS_KERNEL_H_ 416c8f7fc3SBen Gras 426c8f7fc3SBen Gras #if defined(_KERNEL) || defined(_STANDALONE) 436c8f7fc3SBen Gras /* Global variables for the kernel. */ 446c8f7fc3SBen Gras 456c8f7fc3SBen Gras extern long hostid; 466c8f7fc3SBen Gras extern char hostname[MAXHOSTNAMELEN]; 476c8f7fc3SBen Gras extern int hostnamelen; 486c8f7fc3SBen Gras extern char domainname[MAXHOSTNAMELEN]; 496c8f7fc3SBen Gras extern int domainnamelen; 506c8f7fc3SBen Gras 516c8f7fc3SBen Gras extern struct timespec boottime; 526c8f7fc3SBen Gras 536c8f7fc3SBen Gras extern int rtc_offset; /* offset of rtc from UTC in minutes */ 546c8f7fc3SBen Gras 556c8f7fc3SBen Gras extern int cold; /* still working on startup */ 566c8f7fc3SBen Gras extern int tick; /* usec per tick (1000000 / hz) */ 576c8f7fc3SBen Gras extern int tickadj; /* "standard" clock skew, us./tick */ 586c8f7fc3SBen Gras extern int hardclock_ticks; /* # of hardclock ticks */ 596c8f7fc3SBen Gras extern int hz; /* system clock's frequency */ 606c8f7fc3SBen Gras extern int stathz; /* statistics clock's frequency */ 616c8f7fc3SBen Gras extern int profhz; /* profiling clock's frequency */ 626c8f7fc3SBen Gras 636c8f7fc3SBen Gras extern int profsrc; /* profiling source */ 64*84d9c625SLionel Sambuc extern int psratio; /* ratio: prof / stat */ 656c8f7fc3SBen Gras 666c8f7fc3SBen Gras #define PROFSRC_CLOCK 0 676c8f7fc3SBen Gras 686c8f7fc3SBen Gras #endif 696c8f7fc3SBen Gras 706c8f7fc3SBen Gras #endif /* _SYS_KERNEL_H_ */ 71