pci_machdep.h revision 1.14
11.14Sgarbled/* $NetBSD: pci_machdep.h,v 1.14 2007/10/17 19:56:49 garbled 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 * 3. All advertising materials mentioning features or use of this software
191.14Sgarbled *    must display the following acknowledgement:
201.14Sgarbled *        This product includes software developed by the NetBSD
211.14Sgarbled *        Foundation, Inc. and its contributors.
221.14Sgarbled * 4. Neither the name of The NetBSD Foundation nor the names of its
231.14Sgarbled *    contributors may be used to endorse or promote products derived
241.14Sgarbled *    from this software without specific prior written permission.
251.14Sgarbled *
261.14Sgarbled * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
271.14Sgarbled * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
281.14Sgarbled * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
291.14Sgarbled * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
301.14Sgarbled * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
311.14Sgarbled * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
321.14Sgarbled * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
331.14Sgarbled * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
341.14Sgarbled * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
351.14Sgarbled * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
361.14Sgarbled * POSSIBILITY OF SUCH DAMAGE.
371.1Snonaka */
381.7Skleink
391.14Sgarbled#include <powerpc/pci_machdep.h>
401.9Sthorpej
411.6Smatt#ifdef _KERNEL
421.1Snonaka/*
431.7Skleink * prep-specific PCI functions.
441.7Skleink * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
451.1Snonaka */
461.13Sgarbledint prep_pci_bus_maxdevs(pci_chipset_tag_t, int);
471.7Skleinkint prep_pci_intr_map(struct pci_attach_args *, pci_intr_handle_t *);
481.13Sgarbledint prep_pci_conf_hook(pci_chipset_tag_t, int, int, int, pcireg_t);
491.6Smatt
501.7Skleinkvoid prep_pci_get_chipset_tag_direct(pci_chipset_tag_t);
511.12Sgarbledvoid prep_pci_get_chipset_tag(pci_chipset_tag_t pc);
521.6Smatt
531.7Skleink/*
541.7Skleink * prep-specific PCI data.
551.7Skleink * NOT TO BE USED DIRECTLY BY MACHINE INDEPENDENT CODE.
561.7Skleink */
571.7Skleinkextern struct powerpc_bus_dma_tag pci_bus_dma_tag;
581.7Skleink#endif
59