From 546208c586c3a27bed49f7ffa3ecc2d34b1d4ac6 Mon Sep 17 00:00:00 2001 From: matt Date: Wed, 22 Jun 2011 05:08:56 +0000 Subject: [PATCH] Make pmppc use stock Move some private declartions to --- sys/arch/evbppc/conf/std.pmppc | 4 ++-- sys/arch/evbppc/include/pmppc_intr.h | 6 +++--- sys/arch/evbppc/pmppc/dev/mainbus.h | 15 ++++++++++++++- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/sys/arch/evbppc/conf/std.pmppc b/sys/arch/evbppc/conf/std.pmppc index 06c8adff9740..bcf84504a2e3 100644 --- a/sys/arch/evbppc/conf/std.pmppc +++ b/sys/arch/evbppc/conf/std.pmppc @@ -1,4 +1,4 @@ -# $NetBSD: std.pmppc,v 1.3 2008/01/08 13:47:49 joerg Exp $ +# $NetBSD: std.pmppc,v 1.4 2011/06/22 05:08:56 matt Exp $ # # standard, required NetBSD/pmppc 'options' @@ -20,6 +20,6 @@ makeoptions BOARDTYPE="pmppc" makeoptions NEED_BINARY=1 options PPC_INTR_IMPL="" -options PPC_PCI_MACHDEP_IMPL="" +options PPC_PCI_MACHDEP_IMPL="" include "arch/evbppc/conf/files.pmppc" diff --git a/sys/arch/evbppc/include/pmppc_intr.h b/sys/arch/evbppc/include/pmppc_intr.h index c3e5a770bc5f..7ed80033f742 100644 --- a/sys/arch/evbppc/include/pmppc_intr.h +++ b/sys/arch/evbppc/include/pmppc_intr.h @@ -1,4 +1,4 @@ -/* $NetBSD: pmppc_intr.h,v 1.4 2011/06/17 23:36:17 matt Exp $ */ +/* $NetBSD: pmppc_intr.h,v 1.5 2011/06/22 05:08:56 matt Exp $ */ /*- * Copyright (c) 1998 The NetBSD Foundation, Inc. @@ -34,7 +34,7 @@ #include -#ifndef _LOCORE +#if !defined(_LOCORE) && !defined(_MODULE) struct pic_ops *setup_cpc700(void); @@ -46,6 +46,6 @@ struct pic_ops *setup_cpc700(void); #define LEGAL_HWIRQ_P(x) ((u_int)(x) < ICU_LEN && (ICU_MASK & (0x80000000 >> (x)))) -#endif /* !_LOCORE */ +#endif /* !_LOCORE && !_MODULE */ #endif /* !_PMPPC_INTR_H_ */ diff --git a/sys/arch/evbppc/pmppc/dev/mainbus.h b/sys/arch/evbppc/pmppc/dev/mainbus.h index 76fb3daec1bb..f496a85217f5 100644 --- a/sys/arch/evbppc/pmppc/dev/mainbus.h +++ b/sys/arch/evbppc/pmppc/dev/mainbus.h @@ -1,4 +1,4 @@ -/* $NetBSD: mainbus.h,v 1.3 2008/04/28 20:23:17 martin Exp $ */ +/* $NetBSD: mainbus.h,v 1.4 2011/06/22 05:08:56 matt Exp $ */ /* * Copyright (c) 2002 The NetBSD Foundation, Inc. @@ -29,6 +29,12 @@ * POSSIBILITY OF SUCH DAMAGE. */ +#ifndef _PMPPC_DEV_MAINBUS_H_ +#define _PMPPC_DEV_MAINBUS_H_ + +#include +#include + struct mainbus_attach_args { const char *mb_name; u_long mb_addr; @@ -46,3 +52,10 @@ struct mainbus_attach_args { extern struct powerpc_bus_space pmppc_mem_tag; extern struct powerpc_bus_space pmppc_pci_io_tag; +extern struct powerpc_bus_dma_tag pci_bus_dma_tag; + +int pmppc_pci_intr_map(const struct pci_attach_args *, pci_intr_handle_t *); +void pmppc_pci_conf_interrupt(pci_chipset_tag_t, int, int, int, int, int *); +void pmppc_pci_get_chipset_tag(pci_chipset_tag_t); + +#endif /* _PMPPC_DEV_MAINBUS_H_ */