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