1*1e9520c1Sjym /* $NetBSD: rbus_machdep.h,v 1.9 2010/03/01 01:15:24 jym Exp $ */ 2e5cc4148Shaya 34eee1111Shaya /* 44eee1111Shaya * Copyright (c) 1999 54eee1111Shaya * HAYAKAWA Koichi. All rights reserved. 64eee1111Shaya * 74eee1111Shaya * Redistribution and use in source and binary forms, with or without 84eee1111Shaya * modification, are permitted provided that the following conditions 94eee1111Shaya * are met: 104eee1111Shaya * 1. Redistributions of source code must retain the above copyright 114eee1111Shaya * notice, this list of conditions and the following disclaimer. 124eee1111Shaya * 2. Redistributions in binary form must reproduce the above copyright 134eee1111Shaya * notice, this list of conditions and the following disclaimer in the 144eee1111Shaya * documentation and/or other materials provided with the distribution. 154eee1111Shaya * 164eee1111Shaya * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 174eee1111Shaya * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 184eee1111Shaya * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 194eee1111Shaya * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 204eee1111Shaya * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 214eee1111Shaya * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 224eee1111Shaya * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 234eee1111Shaya * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 244eee1111Shaya * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 254eee1111Shaya * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 264eee1111Shaya */ 274eee1111Shaya 284eee1111Shaya #if !defined _ARCH_I386_I386_RBUS_MACHDEP_H_ 294eee1111Shaya #define _ARCH_I386_I386_RBUS_MACHDEP_H_ 304eee1111Shaya 314eee1111Shaya struct pci_attach_args; /* XXX */ 324eee1111Shaya 334eee1111Shaya #define md_space_map(bt, physaddr, size, flags, bshp) \ 34a33bcafdSfvdl _x86_memio_map((bt), (physaddr), (size), (flags), (bshp)) 354eee1111Shaya 364eee1111Shaya #define md_space_unmap(bt, bsh, size, adrp) \ 37a33bcafdSfvdl _x86_memio_unmap((bt), (bsh), (size), (adrp)) 384eee1111Shaya 394eee1111Shaya 40d1421ab5Shaya rbus_tag_t rbus_pccbb_parent_io(struct pci_attach_args *); 41d1421ab5Shaya rbus_tag_t rbus_pccbb_parent_mem(struct pci_attach_args *); 424eee1111Shaya 43*1e9520c1Sjym void rbus_min_start_hint(psize_t); 4411343fbdSgdt 454eee1111Shaya #endif /* _ARCH_I386_I386_RBUS_MACHDEP_H_ */ 46