/*
- * Copyright (c) 2000-2004 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 2000-2009 Apple Inc. All rights reserved.
*
- * @APPLE_LICENSE_HEADER_START@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
*
- * The contents of this file constitute Original Code as defined in and
- * are subject to the Apple Public Source License Version 1.1 (the
- * "License"). You may not use this file except in compliance with the
- * License. Please obtain a copy of the License at
- * http://www.apple.com/publicsource and read it before using this file.
+ * This file contains Original Code and/or Modifications of Original Code
+ * as defined in and that are subject to the Apple Public Source License
+ * Version 2.0 (the 'License'). You may not use this file except in
+ * compliance with the License. The rights granted to you under the License
+ * may not be used to create, or enable the creation or redistribution of,
+ * unlawful or unlicensed copies of an Apple operating system, or to
+ * circumvent, violate, or enable the circumvention or violation of, any
+ * terms of an Apple operating system software license agreement.
*
- * This Original Code and all software distributed under the License are
- * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
+ * Please obtain a copy of the License at
+ * http://www.opensource.apple.com/apsl/ and read it before using this file.
+ *
+ * The Original Code and all software distributed under the License are
+ * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
* EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
* INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
- * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
- * License for the specific language governing rights and limitations
- * under the License.
+ * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
+ * Please see the License for the specific language governing rights and
+ * limitations under the License.
*
- * @APPLE_LICENSE_HEADER_END@
+ * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
*/
/*
* @OSF_COPYRIGHT@
*/
#ifdef MACH_KERNEL
-#include <mach_prof.h>
#include <advisory_pageout.h>
#endif /* MACH_KERNEL */
/*
* Get host page size
+ * (compatibility for running old libraries on new kernels -
+ * host_page_size() is now a library routine based on constants)
*/
+#if KERNEL
routine host_page_size(
+#else
+routine _host_page_size(
+#endif
host : host_t;
out out_page_size : vm_size_t);
clock_id : clock_id_t;
out clock_serv : clock_serv_t);
-
+/*
+ * kernel module interface (obsolete as of SnowLeopard)
+ * see mach/kmod.h
+ */
+/* kmod_ MIG calls now return KERN_NOT_SUPPORTED on PPC/i386/x86_64. */
routine kmod_get_info(
host : host_t;
out modules : kmod_args_t);
out info : hash_info_bucket_array_t,
Dealloc);
-/*
- * JMM - These routines should be on the host_priv port. We need
- * to verify the move before putting them there.
- */
-routine enable_bluebox(
- host : host_t;
- in taskID : unsigned;
- in TWI_TableStart : unsigned;
- in Desc_TableStart : unsigned);
-
-routine disable_bluebox(
- host : host_t);
+skip; /* was enable_bluebox */
+skip; /* was disable_bluebox */
/*
* JMM - Keep processor_set related items at the end for easy
out lockgroup_info : lockgroup_info_array_t,
Dealloc);
+/*
+ * Return 64-bit statistics from this host.
+ */
+routine host_statistics64(
+ host_priv : host_t;
+ flavor : host_flavor_t;
+ out host_info64_out : host_info64_t, CountInOut);
+
+
+/* vim: set ft=c : */