11.18Smatt/* $NetBSD: pci_machdep.h,v 1.18 2011/06/22 18:06:35 matt Exp $ */
21.1Snonaka
31.14Sgarbled/*-
41.14Sgarbled * Copyright (c) 2007 The NetBSD Foundation, Inc.
51.7Skleink * All rights reserved.
61.1Snonaka *
71.14Sgarbled * This code is derived from software contributed to The NetBSD Foundation
81.14Sgarbled * by Tim Rightnour
91.7Skleink *
101.14Sgarbled * Redistribution and use in source and binary forms, with or without
111.14Sgarbled * modification, are permitted provided that the following conditions
121.14Sgarbled * are met:
131.14Sgarbled * 1. Redistributions of source code must retain the above copyright
141.14Sgarbled *    notice, this list of conditions and the following disclaimer.
151.14Sgarbled * 2. Redistributions in binary form must reproduce the above copyright
161.14Sgarbled *    notice, this list of conditions and the following disclaimer in the
171.14Sgarbled *    documentation and/or other materials provided with the distribution.
181.14Sgarbled *
191.14Sgarbled * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.14Sgarbled * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.14Sgarbled * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.14Sgarbled * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.14Sgarbled * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.14Sgarbled * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.14Sgarbled * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.14Sgarbled * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.14Sgarbled * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.14Sgarbled * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.14Sgarbled * POSSIBILITY OF SUCH DAMAGE.
301.1Snonaka */
311.7Skleink
321.14Sgarbled#include <powerpc/pci_machdep.h>
331.9Sthorpej
341.6Smatt#ifdef _KERNEL
351.1Snonaka/*
361.7Skleink * prep-specific PCI functions.
371.7Skleink * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
381.1Snonaka */
391.16Smattint prep_pci_bus_maxdevs(void *, int);
401.17Sdyoungint prep_pci_intr_map(const struct pci_attach_args *, pci_intr_handle_t *);
411.18Smattint prep_pci_conf_hook(void *, int, int, int, pcireg_t);
421.6Smatt
431.7Skleinkvoid prep_pci_get_chipset_tag_direct(pci_chipset_tag_t);
441.12Sgarbledvoid prep_pci_get_chipset_tag(pci_chipset_tag_t pc);
451.6Smatt
461.7Skleink/*
471.7Skleink * prep-specific PCI data.
481.7Skleink * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
491.7Skleink */
501.7Skleinkextern struct powerpc_bus_dma_tag pci_bus_dma_tag;
511.7Skleink#endif
52