Module Name:    src
Committed By:   matt
Date:           Wed Jun 22 05:08:56 UTC 2011

Modified Files:
        src/sys/arch/evbppc/conf: std.pmppc
        src/sys/arch/evbppc/include: pmppc_intr.h
        src/sys/arch/evbppc/pmppc/dev: mainbus.h

Log Message:
Make pmppc use stock <powerpc/pci_machdep.h>
Move some private declartions to <pmppc/dev/mainbus.h>


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbppc/conf/std.pmppc
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbppc/include/pmppc_intr.h
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/evbppc/pmppc/dev/mainbus.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbppc/conf/std.pmppc
diff -u src/sys/arch/evbppc/conf/std.pmppc:1.3 src/sys/arch/evbppc/conf/std.pmppc:1.4
--- src/sys/arch/evbppc/conf/std.pmppc:1.3	Tue Jan  8 13:47:49 2008
+++ src/sys/arch/evbppc/conf/std.pmppc	Wed Jun 22 05:08:56 2011
@@ -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 	NEED_BINARY=1
 
 options		PPC_INTR_IMPL="<machine/pmppc_intr.h>"
-options		PPC_PCI_MACHDEP_IMPL="<machine/pmppc_pci_machdep.h>"
+options		PPC_PCI_MACHDEP_IMPL="<powerpc/pci_machdep.h>"
 
 include		"arch/evbppc/conf/files.pmppc"

Index: src/sys/arch/evbppc/include/pmppc_intr.h
diff -u src/sys/arch/evbppc/include/pmppc_intr.h:1.4 src/sys/arch/evbppc/include/pmppc_intr.h:1.5
--- src/sys/arch/evbppc/include/pmppc_intr.h:1.4	Fri Jun 17 23:36:17 2011
+++ src/sys/arch/evbppc/include/pmppc_intr.h	Wed Jun 22 05:08:56 2011
@@ -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 <powerpc/intr.h>
 
-#ifndef _LOCORE
+#if !defined(_LOCORE) && !defined(_MODULE)
 
 struct pic_ops *setup_cpc700(void);
 
@@ -46,6 +46,6 @@
 
 #define	LEGAL_HWIRQ_P(x) ((u_int)(x) < ICU_LEN && (ICU_MASK & (0x80000000 >> (x))))
 
-#endif /* !_LOCORE */
+#endif /* !_LOCORE && !_MODULE */
 
 #endif /* !_PMPPC_INTR_H_ */

Index: src/sys/arch/evbppc/pmppc/dev/mainbus.h
diff -u src/sys/arch/evbppc/pmppc/dev/mainbus.h:1.3 src/sys/arch/evbppc/pmppc/dev/mainbus.h:1.4
--- src/sys/arch/evbppc/pmppc/dev/mainbus.h:1.3	Mon Apr 28 20:23:17 2008
+++ src/sys/arch/evbppc/pmppc/dev/mainbus.h	Wed Jun 22 05:08:56 2011
@@ -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 <dev/pci/pcivar.h>
+#include <machine/pci_machdep.h>
+
 struct mainbus_attach_args {
 	const char *mb_name;
 	u_long mb_addr;
@@ -46,3 +52,10 @@
 
 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_ */

Reply via email to