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
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.
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]
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
30 #pragma ident "%Z%%M% %I% %E% SMI" /* from SunOS 4.1 */
33 * NOTE: This header file is a vestige from a previous era. The RESOURCES
34 * enum should be move somewhere more appropriate (with an accompanying
35 * proper prototype for resalloc()) and this should be removed.
38 #include <sys/types.h>
46 * Types of resources that can be allocated by resalloc().
49 RES_MAINMEM
, /* Main memory, accessible to CPU */
50 RES_RAWVIRT
, /* Raw addr space that can be mapped */
51 RES_DMAMEM
, /* Memory acc. by CPU and by all DMA I/O */
52 RES_DMAVIRT
, /* Raw addr space accessible by DMA I/O */
53 RES_PHYSICAL
, /* Physical address */
54 RES_VIRTALLOC
, /* Virtual addresses used */
55 RES_BOOTSCRATCH
, /* Memory <4MB used only by boot. */
57 RES_CHILDVIRT
, /* Virt anywhere, phys > 4MB */
58 RES_BOOTSCRATCH_NOFAIL
60 RES_CHILDVIRT
/* Virt anywhere, phys > 4MB */
68 #endif /* _SYS_SAIO_H */