mkdev.h (0:68f95e015346) | mkdev.h (11291:80bdcd03e626) |
---|---|
1/* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the | 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. | 5 * Common Development and Distribution License (the "License"). 6 * You may not use this file except in compliance 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/* | 7 * 8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9 * or http://www.opensolaris.org/os/licensing. 10 * See the License for the specific language governing permissions 11 * and limitations under the License. 12 * 13 * When distributing Covered Code, include this CDDL HEADER in each 14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15 * If applicable, add the following below this CDDL HEADER, with the 16 * fields enclosed by brackets "[]" replaced with your own identifying 17 * information: Portions Copyright [yyyy] [name of copyright owner] 18 * 19 * CDDL HEADER END 20 */ 21/* |
23 * Copyright 1997 Sun Microsystems, Inc. All rights reserved. | 22 * Copyright 2009 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. 25 */ 26 27/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 28/* All Rights Reserved */ 29 30#ifndef _SYS_MKDEV_H 31#define _SYS_MKDEV_H 32 | 23 * Use is subject to license terms. 24 */ 25 26/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 27/* All Rights Reserved */ 28 29#ifndef _SYS_MKDEV_H 30#define _SYS_MKDEV_H 31 |
33#pragma ident "%Z%%M% %I% %E% SMI" 34 | |
35#include <sys/types.h> 36 37#ifdef __cplusplus 38extern "C" { 39#endif 40 41/* 42 * SVR3/Pre-EFT device number constants. --- 6 unchanged lines hidden (view full) --- 49/* 50 * 32-bit Solaris device major/minor sizes. 51 */ 52#define NBITSMAJOR32 14 53#define NBITSMINOR32 18 54#define MAXMAJ32 0x3ffful /* SVR4 max major value */ 55#define MAXMIN32 0x3fffful /* SVR4 max minor value */ 56 | 32#include <sys/types.h> 33 34#ifdef __cplusplus 35extern "C" { 36#endif 37 38/* 39 * SVR3/Pre-EFT device number constants. --- 6 unchanged lines hidden (view full) --- 46/* 47 * 32-bit Solaris device major/minor sizes. 48 */ 49#define NBITSMAJOR32 14 50#define NBITSMINOR32 18 51#define MAXMAJ32 0x3ffful /* SVR4 max major value */ 52#define MAXMIN32 0x3fffful /* SVR4 max minor value */ 53 |
57#ifdef _LP64 58 | |
59#define NBITSMAJOR64 32 /* # of major device bits in 64-bit Solaris */ 60#define NBITSMINOR64 32 /* # of minor device bits in 64-bit Solaris */ | 54#define NBITSMAJOR64 32 /* # of major device bits in 64-bit Solaris */ 55#define NBITSMINOR64 32 /* # of minor device bits in 64-bit Solaris */ |
56 57#ifdef _LP64 58 |
|
61#define MAXMAJ64 0xfffffffful /* max major value */ 62#define MAXMIN64 0xfffffffful /* max minor value */ 63 64#define NBITSMAJOR NBITSMAJOR64 65#define NBITSMINOR NBITSMINOR64 66#define MAXMAJ MAXMAJ64 67#define MAXMIN MAXMIN64 68 --- 52 unchanged lines hidden --- | 59#define MAXMAJ64 0xfffffffful /* max major value */ 60#define MAXMIN64 0xfffffffful /* max minor value */ 61 62#define NBITSMAJOR NBITSMAJOR64 63#define NBITSMINOR NBITSMINOR64 64#define MAXMAJ MAXMAJ64 65#define MAXMIN MAXMIN64 66 --- 52 unchanged lines hidden --- |