autofs: disable by default
[unleashed.git] / include / sys / cpuid_drv.h
blob42cc9a7a329a8d4f7781797a37fe955527c74db6
1 /*
2 * CDDL HEADER START
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
20 * CDDL HEADER END
23 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
27 * Copyright (c) 2012, Joyent, Inc. All rights reserved.
30 #ifndef _SYS_CPUID_DRV_H
31 #define _SYS_CPUID_DRV_H
33 #include <sys/types.h>
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
40 * /dev names:
41 * /dev/cpu/ - containing directory
42 * self/ - describes current cpu
43 * cpuid - cpu identification
46 #define CPUID_DRIVER_NAME "cpuid"
47 #define CPUID_DRIVER_SELF_NODE "self"
49 #define CPUID_DIR_NAME "cpu"
50 #define CPUID_SELF_DIR_NAME "self"
51 #define CPUID_NAME "cpuid"
52 #define CPUID_SELF_NAME \
53 CPUID_DIR_NAME "/" CPUID_SELF_DIR_NAME "/" CPUID_NAME
56 * This minor number corresponds to the cpu we're running on at
57 * the time we invoke its interfaces.
59 #define CPUID_SELF_CPUID_MINOR ((minor_t)0x3fffful)
62 * ioctl numbers: not an exported interface
64 #define CPUID_IOC (('c'<<24)|('i'<<16)|('d'<<8))
66 #define CPUID_GET_HWCAP (CPUID_IOC|0)
68 struct cpuid_get_hwcap {
69 char *cgh_archname;
70 uint_t cgh_hwcap[2];
73 #if defined(_SYSCALL32_IMPL)
75 #include <sys/types32.h>
77 struct cpuid_get_hwcap32 {
78 caddr32_t cgh_archname;
79 uint32_t cgh_hwcap[2];
82 #endif /* _SYSCALL32_IMPL */
84 #ifdef __cplusplus
86 #endif
88 #endif /* _SYS_CPUID_DRV_H */