10Sstevel@tonic-gate /* 20Sstevel@tonic-gate * CDDL HEADER START 30Sstevel@tonic-gate * 40Sstevel@tonic-gate * The contents of this file are subject to the terms of the 55786Sqd208687 * Common Development and Distribution License (the "License"). 65786Sqd208687 * You may not use this file except in compliance with the License. 70Sstevel@tonic-gate * 80Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 90Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 100Sstevel@tonic-gate * See the License for the specific language governing permissions 110Sstevel@tonic-gate * and limitations under the License. 120Sstevel@tonic-gate * 130Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 140Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 150Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 160Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 170Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 180Sstevel@tonic-gate * 190Sstevel@tonic-gate * CDDL HEADER END 200Sstevel@tonic-gate */ 210Sstevel@tonic-gate 220Sstevel@tonic-gate /* 235786Sqd208687 * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 245786Sqd208687 * Use is subject to license terms. 250Sstevel@tonic-gate */ 260Sstevel@tonic-gate 270Sstevel@tonic-gate #ifndef _PARAM_H 280Sstevel@tonic-gate #define _PARAM_H 290Sstevel@tonic-gate 300Sstevel@tonic-gate #ifdef __cplusplus 310Sstevel@tonic-gate extern "C" { 320Sstevel@tonic-gate #endif 330Sstevel@tonic-gate 345786Sqd208687 #ifndef UINT16_MAX 355786Sqd208687 #define UINT16_MAX 0xffffU 365786Sqd208687 #endif 375786Sqd208687 38*7563SPrasad.Singamsetty@Sun.COM #ifndef UINT32_MAX 39*7563SPrasad.Singamsetty@Sun.COM #define UINT32_MAX 0xffffffffU 40*7563SPrasad.Singamsetty@Sun.COM #endif 41*7563SPrasad.Singamsetty@Sun.COM 42*7563SPrasad.Singamsetty@Sun.COM #ifndef INT32_MAX 43*7563SPrasad.Singamsetty@Sun.COM #define INT32_MAX 0x7fffffff 44*7563SPrasad.Singamsetty@Sun.COM #endif 45*7563SPrasad.Singamsetty@Sun.COM 460Sstevel@tonic-gate /* 470Sstevel@tonic-gate * This file contains declarations of miscellaneous parameters. 480Sstevel@tonic-gate */ 490Sstevel@tonic-gate #ifndef SECSIZE 500Sstevel@tonic-gate #define SECSIZE DEV_BSIZE 510Sstevel@tonic-gate #endif 520Sstevel@tonic-gate 530Sstevel@tonic-gate #define MAX_CYLS (0x10000 - 1) /* max legal cylinder count */ 540Sstevel@tonic-gate #define MAX_HEADS (0x10000 - 1) /* max legal head count */ 550Sstevel@tonic-gate #define MAX_SECTS (0x10000 - 1) /* max legal sector count */ 560Sstevel@tonic-gate 570Sstevel@tonic-gate #define MIN_RPM 2000 /* min legal rpm */ 580Sstevel@tonic-gate #define AVG_RPM 3600 /* default rpm */ 590Sstevel@tonic-gate #define MAX_RPM 76000 /* max legal rpm */ 600Sstevel@tonic-gate 610Sstevel@tonic-gate #define MIN_BPS 512 /* min legal bytes/sector */ 620Sstevel@tonic-gate #define AVG_BPS 600 /* default bytes/sector */ 630Sstevel@tonic-gate #define MAX_BPS 1000 /* max legal bytes/sector */ 640Sstevel@tonic-gate 65*7563SPrasad.Singamsetty@Sun.COM #define INFINITY 0xffffffffU /* a big number */ 660Sstevel@tonic-gate 675786Sqd208687 #define MAXBLKS(heads, spt) UINT16_MAX * heads * spt, heads, spt 680Sstevel@tonic-gate #ifdef __cplusplus 690Sstevel@tonic-gate } 700Sstevel@tonic-gate #endif 710Sstevel@tonic-gate 720Sstevel@tonic-gate #endif /* _PARAM_H */ 73