9815 Want basic AHCI enclosure services
[unleashed.git] / usr / src / uts / common / sys / fsspriocntl.h
blob66931e813bc52c1d08577ff95c4e7ee6a07066b7
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 (c) 2001 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _SYS_FSSPRIOCNTL_H
28 #define _SYS_FSSPRIOCNTL_H
30 #pragma ident "%Z%%M% %I% %E% SMI"
32 #include <sys/types.h>
33 #include <sys/fss.h>
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
40 * Fair-share class specific structures for the priocntl system call.
42 typedef struct fssparms {
43 pri_t fss_uprilim; /* user priority limit */
44 pri_t fss_upri; /* user priority */
45 } fssparms_t;
47 typedef struct fssinfo {
48 pri_t fss_maxupri; /* configured limit on user priority range */
49 } fssinfo_t;
51 #define FSS_NOCHANGE -32768
54 * Fair-sharing class specific keys for the priocntl system call varargs
55 * interface.
57 #define FSS_KY_UPRILIM 1 /* user priority limit */
58 #define FSS_KY_UPRI 2 /* user priority */
61 * The following is used by the dispadmin(1M) command for scheduler
62 * administration and is not for general use.
64 typedef struct fssadmin {
65 short fss_quantum;
66 short fss_cmd;
67 } fssadmin_t;
69 #define FSS_GETADMIN 1
70 #define FSS_SETADMIN 2
72 #ifdef __cplusplus
74 #endif
76 #endif /* _SYS_FSSPRIOCNTL_H */