[BACK]Return to bus.h CVS log [TXT][DIR] Up to [local] / sys / arch / mvmeppc / include

Annotation of sys/arch/mvmeppc/include/bus.h, Revision 1.1

1.1     ! nbrk        1: /*      $NetBSD: bus.h,v 1.6 2001/06/15 15:50:05 nonaka Exp $        */
        !             2: /*     $OpenBSD: bus.h,v 1.3 2003/11/25 21:16:44 drahn Exp $   */
        !             3:
        !             4: /*-
        !             5:  * Copyright (c) 1996, 1997, 1998, 2001 The NetBSD Foundation, Inc.
        !             6:  * All rights reserved.
        !             7:  *
        !             8:  * This code is derived from software contributed to The NetBSD Foundation
        !             9:  * by Jason R. Thorpe of the Numerical Aerospace Simulation Facility,
        !            10:  * NASA Ames Research Center.
        !            11:  *
        !            12:  * Redistribution and use in source and binary forms, with or without
        !            13:  * modification, are permitted provided that the following conditions
        !            14:  * are met:
        !            15:  * 1. Redistributions of source code must retain the above copyright
        !            16:  *    notice, this list of conditions and the following disclaimer.
        !            17:  * 2. Redistributions in binary form must reproduce the above copyright
        !            18:  *    notice, this list of conditions and the following disclaimer in the
        !            19:  *    documentation and/or other materials provided with the distribution.
        !            20:  * 3. All advertising materials mentioning features or use of this software
        !            21:  *    must display the following acknowledgement:
        !            22:  *     This product includes software developed by the NetBSD
        !            23:  *     Foundation, Inc. and its contributors.
        !            24:  * 4. Neither the name of The NetBSD Foundation nor the names of its
        !            25:  *    contributors may be used to endorse or promote products derived
        !            26:  *    from this software without specific prior written permission.
        !            27:  *
        !            28:  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
        !            29:  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
        !            30:  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
        !            31:  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
        !            32:  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
        !            33:  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
        !            34:  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
        !            35:  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
        !            36:  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
        !            37:  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
        !            38:  * POSSIBILITY OF SUCH DAMAGE.
        !            39:  */
        !            40:
        !            41: /*
        !            42:  * Copyright (c) 1996 Charles M. Hannum.  All rights reserved.
        !            43:  * Copyright (c) 1996 Jason R. Thorpe.  All rights reserved.
        !            44:  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
        !            45:  *
        !            46:  * Redistribution and use in source and binary forms, with or without
        !            47:  * modification, are permitted provided that the following conditions
        !            48:  * are met:
        !            49:  * 1. Redistributions of source code must retain the above copyright
        !            50:  *    notice, this list of conditions and the following disclaimer.
        !            51:  * 2. Redistributions in binary form must reproduce the above copyright
        !            52:  *    notice, this list of conditions and the following disclaimer in the
        !            53:  *    documentation and/or other materials provided with the distribution.
        !            54:  * 3. All advertising materials mentioning features or use of this software
        !            55:  *    must display the following acknowledgement:
        !            56:  *     This product includes software developed by Christopher G. Demetriou
        !            57:  *     for the NetBSD Project.
        !            58:  * 4. The name of the author may not be used to endorse or promote products
        !            59:  *    derived from this software without specific prior written permission
        !            60:  *
        !            61:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            62:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            63:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            64:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
        !            65:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        !            66:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            67:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            68:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !            69:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
        !            70:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !            71:  */
        !            72:
        !            73: /*
        !            74:  * Copyright (c) 1997 Per Fogelstrom.  All rights reserved.
        !            75:  * Copyright (c) 1996 Niklas Hallqvist.  All rights reserved.
        !            76:  *
        !            77:  * Redistribution and use in source and binary forms, with or without
        !            78:  * modification, are permitted provided that the following conditions
        !            79:  * are met:
        !            80:  * 1. Redistributions of source code must retain the above copyright
        !            81:  *    notice, this list of conditions and the following disclaimer.
        !            82:  * 2. Redistributions in binary form must reproduce the above copyright
        !            83:  *    notice, this list of conditions and the following disclaimer in the
        !            84:  *    documentation and/or other materials provided with the distribution.
        !            85:  * 3. All advertising materials mentioning features or use of this software
        !            86:  *    must display the following acknowledgement:
        !            87:  *     This product includes software developed by Christopher G. Demetriou
        !            88:  *     for the NetBSD Project.
        !            89:  * 4. The name of the author may not be used to endorse or promote products
        !            90:  *    derived from this software without specific prior written permission
        !            91:  *
        !            92:  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
        !            93:  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
        !            94:  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
        !            95:  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
        !            96:  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
        !            97:  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
        !            98:  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
        !            99:  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
        !           100:  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
        !           101:  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
        !           102:  */
        !           103:
        !           104: #ifndef _PREP_BUS_H_
        !           105: #define _PREP_BUS_H_
        !           106:
        !           107: #define _POWERPC_BUS_DMA_PRIVATE
        !           108: #include <machine/bus_mi.h>
        !           109:
        !           110: /*
        !           111:  * Values for the Be bus space tag, not to be used directly by MI code.
        !           112:  */
        !           113: #define PREP_BUS_SPACE_IO      0x80000000      /* i/o space */
        !           114: #define PREP_BUS_SPACE_MEM     0xC0000000      /* mem space */
        !           115:
        !           116: /*
        !           117:  * Address conversion as seen from a PCI master.
        !           118:  */
        !           119: #define MPC105_DIRECT_MAPPED_SPACE     0x80000000
        !           120: #define PHYS_TO_PCI_MEM(x)     ((x) | MPC105_DIRECT_MAPPED_SPACE)
        !           121: #define PCI_MEM_TO_PHYS(x)     ((x) & ~MPC105_DIRECT_MAPPED_SPACE)
        !           122:
        !           123: extern const struct ppc_bus_space prep_io_space_tag;
        !           124: extern const struct ppc_bus_space prep_isa_io_space_tag;
        !           125: extern const struct ppc_bus_space prep_mem_space_tag;
        !           126: extern const struct ppc_bus_space prep_isa_mem_space_tag;
        !           127:
        !           128: void prep_bus_space_init(void);
        !           129: void prep_bus_space_mallocok(void);
        !           130:
        !           131: #endif /* _PREP_BUS_H_ */

CVSweb