1*ba2539a9Schs /* $NetBSD: mkdev.h,v 1.2 2018/05/28 21:05:10 chs Exp $ */ 2fc8ec0b8Shaad 3*ba2539a9Schs /* 4*ba2539a9Schs * CDDL HEADER START 5fc8ec0b8Shaad * 6*ba2539a9Schs * The contents of this file are subject to the terms of the 7*ba2539a9Schs * Common Development and Distribution License (the "License"). 8*ba2539a9Schs * You may not use this file except in compliance with the License. 9fc8ec0b8Shaad * 10*ba2539a9Schs * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 11*ba2539a9Schs * or http://www.opensolaris.org/os/licensing. 12*ba2539a9Schs * See the License for the specific language governing permissions 13*ba2539a9Schs * and limitations under the License. 14fc8ec0b8Shaad * 15*ba2539a9Schs * When distributing Covered Code, include this CDDL HEADER in each 16*ba2539a9Schs * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 17*ba2539a9Schs * If applicable, add the following below this CDDL HEADER, with the 18*ba2539a9Schs * fields enclosed by brackets "[]" replaced with your own identifying 19*ba2539a9Schs * information: Portions Copyright [yyyy] [name of copyright owner] 20*ba2539a9Schs * 21*ba2539a9Schs * CDDL HEADER END 22*ba2539a9Schs */ 23*ba2539a9Schs /* 24*ba2539a9Schs * Copyright 2014 Garrett D'Amore <garrett@damore.org> 25*ba2539a9Schs * 26*ba2539a9Schs * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 27*ba2539a9Schs * Use is subject to license terms. 28fc8ec0b8Shaad */ 29fc8ec0b8Shaad 30*ba2539a9Schs /* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */ 31*ba2539a9Schs /* All Rights Reserved */ 32*ba2539a9Schs 33*ba2539a9Schs 34*ba2539a9Schs #define MAXMIN32 0x3fffful /* SVR4 max minor value */ 35*ba2539a9Schs 36*ba2539a9Schs #ifdef _LP64 37*ba2539a9Schs 38*ba2539a9Schs #define MAXMIN64 0xfffffffful /* max minor value */ 39*ba2539a9Schs #define MAXMIN MAXMIN64 40*ba2539a9Schs 41*ba2539a9Schs #else /* !_LP64 */ 42*ba2539a9Schs 43*ba2539a9Schs #define MAXMIN MAXMIN32 44*ba2539a9Schs 45*ba2539a9Schs #endif /* !_LP64 */ 46