1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate /* 23*7c478bd9Sstevel@tonic-gate * Copyright (c) 1989-1998 by Sun Microsystems, Inc. 24*7c478bd9Sstevel@tonic-gate * All rights reserved. 25*7c478bd9Sstevel@tonic-gate */ 26*7c478bd9Sstevel@tonic-gate 27*7c478bd9Sstevel@tonic-gate #ifndef _SYS_BUSTYPES_H 28*7c478bd9Sstevel@tonic-gate #define _SYS_BUSTYPES_H 29*7c478bd9Sstevel@tonic-gate 30*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 31*7c478bd9Sstevel@tonic-gate extern "C" { 32*7c478bd9Sstevel@tonic-gate #endif 33*7c478bd9Sstevel@tonic-gate 34*7c478bd9Sstevel@tonic-gate /* 35*7c478bd9Sstevel@tonic-gate * Defines for bus types. These are magic cookies passed between drivers 36*7c478bd9Sstevel@tonic-gate * and their parents to describe their address space. Configuration mechanisms 37*7c478bd9Sstevel@tonic-gate * use this as well. Root nexus drivers on implementations using 38*7c478bd9Sstevel@tonic-gate * "generic-addressing" also use these to describe register properties. 39*7c478bd9Sstevel@tonic-gate * Generally, this will be non-self configuring architectures. 40*7c478bd9Sstevel@tonic-gate * 41*7c478bd9Sstevel@tonic-gate * 42*7c478bd9Sstevel@tonic-gate * On machines supporting "generic-addressing" in the root nexus, 43*7c478bd9Sstevel@tonic-gate * the generic cookies described in the bootom of the file are used 44*7c478bd9Sstevel@tonic-gate * to distinguish the spaces described by device regsiters. 45*7c478bd9Sstevel@tonic-gate * 46*7c478bd9Sstevel@tonic-gate * Sun machines generally support OBMEM and OBIO spaces. 47*7c478bd9Sstevel@tonic-gate */ 48*7c478bd9Sstevel@tonic-gate 49*7c478bd9Sstevel@tonic-gate #define SP_VIRTUAL 0x0100 /* virtual address */ 50*7c478bd9Sstevel@tonic-gate #define SP_OBMEM 0x0200 /* on board memory */ 51*7c478bd9Sstevel@tonic-gate #define SP_OBIO 0x0210 /* on board i/o */ 52*7c478bd9Sstevel@tonic-gate 53*7c478bd9Sstevel@tonic-gate /* 54*7c478bd9Sstevel@tonic-gate * The following are some Cookie name/value suggestions... 55*7c478bd9Sstevel@tonic-gate * and are not necessarily supported at all (nexi for these devices 56*7c478bd9Sstevel@tonic-gate * must handle and convert any requests for these spaces.) 57*7c478bd9Sstevel@tonic-gate */ 58*7c478bd9Sstevel@tonic-gate 59*7c478bd9Sstevel@tonic-gate #define SP_SBUS 0x0400 /* SBus device bus */ 60*7c478bd9Sstevel@tonic-gate #define SB_XBOX 0x0500 /* XBox device bus */ 61*7c478bd9Sstevel@tonic-gate 62*7c478bd9Sstevel@tonic-gate #define SP_MBMEM 0x1000 /* MultiBus memory */ 63*7c478bd9Sstevel@tonic-gate #define SP_MBIO 0x1100 /* MultiBus IO */ 64*7c478bd9Sstevel@tonic-gate 65*7c478bd9Sstevel@tonic-gate #define SP_ATMEM 0x2000 /* AT Bus Memory */ 66*7c478bd9Sstevel@tonic-gate #define SP_ATIO 0x2100 /* AT IO */ 67*7c478bd9Sstevel@tonic-gate 68*7c478bd9Sstevel@tonic-gate #define SP_FBMEM 0x3000 /* FutureBus Memory */ 69*7c478bd9Sstevel@tonic-gate #define SP_FBIO 0x3100 /* FutureBus IO */ 70*7c478bd9Sstevel@tonic-gate 71*7c478bd9Sstevel@tonic-gate #define SP_UBMEM 0x4000 /* Arbitrary user bus memory space */ 72*7c478bd9Sstevel@tonic-gate #define SP_UBIO 0x4100 /* Arbitrary user bus IO space */ 73*7c478bd9Sstevel@tonic-gate 74*7c478bd9Sstevel@tonic-gate #define SP_INVALID ((unsigned)-1) /* This value reserved */ 75*7c478bd9Sstevel@tonic-gate 76*7c478bd9Sstevel@tonic-gate /* 77*7c478bd9Sstevel@tonic-gate * Anything in the range 0x4000 - 0x4FFF reserved for arbitrary 3rd party use. 78*7c478bd9Sstevel@tonic-gate */ 79*7c478bd9Sstevel@tonic-gate 80*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 81*7c478bd9Sstevel@tonic-gate } 82*7c478bd9Sstevel@tonic-gate #endif 83*7c478bd9Sstevel@tonic-gate 84*7c478bd9Sstevel@tonic-gate #endif /* _SYS_BUSTYPES_H */ 85