xref: /illumos-gate/usr/src/cmd/format/prompts.h (revision b12aaafb)
1 /*
2  * CDDL HEADER START
3  *
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.
8  *
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.
13  *
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]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  * Copyright 1991-2002 Sun Microsystems, Inc.  All rights reserved.
24  * Use is subject to license terms.
25  */
26 
27 #ifndef	_PROMPTS_H
28 #define	_PROMPTS_H
29 
30 #ifdef	__cplusplus
31 extern "C" {
32 #endif
33 
34 
35 int	get_ncyl(void);
36 uint64_t	get_mlba(void);
37 int	get_acyl(int n_cyls);
38 int	get_pcyl(int n_cyls, int p_cyls);
39 int	get_nhead(void);
40 int	get_phead(int n_heads, ulong_t *option);
41 int	get_nsect(void);
42 int	get_psect(ulong_t *option);
43 int	get_bpt(int n_sects, ulong_t *option);
44 int	get_rpm(void);
45 int	get_fmt_time(ulong_t *option);
46 int	get_cyl_skew(ulong_t *option);
47 int	get_trk_skew(ulong_t *option);
48 int	get_trks_zone(ulong_t *option);
49 int	get_atrks(ulong_t *option);
50 int	get_asect(ulong_t *option);
51 int	get_cache(ulong_t *option);
52 int	get_threshold(ulong_t *option);
53 int	get_min_prefetch(ulong_t *option);
54 int	get_max_prefetch(int min_prefetch, ulong_t *option);
55 int	get_bps(void);
56 char	*get_asciilabel(void);
57 
58 #ifdef	__cplusplus
59 }
60 #endif
61 
62 #endif	/* _PROMPTS_H */
63