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 (c) 1989-1998 by Sun Microsystems, Inc.
24 * All rights reserved.
27 #ifndef _SYS_BUSTYPES_H
28 #define _SYS_BUSTYPES_H
30 #pragma ident "%Z%%M% %I% %E% SMI" /* SVr4 */
37 * Defines for bus types. These are magic cookies passed between drivers
38 * and their parents to describe their address space. Configuration mechanisms
39 * use this as well. Root nexus drivers on implementations using
40 * "generic-addressing" also use these to describe register properties.
41 * Generally, this will be non-self configuring architectures.
44 * On machines supporting "generic-addressing" in the root nexus,
45 * the generic cookies described in the bootom of the file are used
46 * to distinguish the spaces described by device regsiters.
48 * Sun machines generally support OBMEM and OBIO spaces.
51 #define SP_VIRTUAL 0x0100 /* virtual address */
52 #define SP_OBMEM 0x0200 /* on board memory */
53 #define SP_OBIO 0x0210 /* on board i/o */
56 * The following are some Cookie name/value suggestions...
57 * and are not necessarily supported at all (nexi for these devices
58 * must handle and convert any requests for these spaces.)
61 #define SP_SBUS 0x0400 /* SBus device bus */
62 #define SB_XBOX 0x0500 /* XBox device bus */
64 #define SP_MBMEM 0x1000 /* MultiBus memory */
65 #define SP_MBIO 0x1100 /* MultiBus IO */
67 #define SP_ATMEM 0x2000 /* AT Bus Memory */
68 #define SP_ATIO 0x2100 /* AT IO */
70 #define SP_FBMEM 0x3000 /* FutureBus Memory */
71 #define SP_FBIO 0x3100 /* FutureBus IO */
73 #define SP_UBMEM 0x4000 /* Arbitrary user bus memory space */
74 #define SP_UBIO 0x4100 /* Arbitrary user bus IO space */
76 #define SP_INVALID ((unsigned)-1) /* This value reserved */
79 * Anything in the range 0x4000 - 0x4FFF reserved for arbitrary 3rd party use.
86 #endif /* _SYS_BUSTYPES_H */