Subject: CVS commit: [ppcoea-renovation] src/sys/arch
To: None <source-changes@NetBSD.org>
From: Tim Rightnour <garbled@netbsd.org>
List: source-changes
Date: 10/10/2007 00:13:41
Module Name:	src
Committed By:	garbled
Date:		Wed Oct 10 00:13:41 UTC 2007

Modified Files:
	src/sys/arch/ibmnws/ibmnws [ppcoea-renovation]: machdep.c
	src/sys/arch/powerpc/include [ppcoea-renovation]: openpicreg.h
	src/sys/arch/powerpc/pic [ppcoea-renovation]: i8259_common.c
	    pic_i8259.c pic_prepivr.c picvar.h
	src/sys/arch/prep/include [ppcoea-renovation]: chpidpnp.h
	src/sys/arch/prep/prep [ppcoea-renovation]: machdep.c platform.c

Log Message:
Change pic_prepivr around a bit.  Handle the default IRQ 7 from the 8259
better, and add a new motivr_get_irq().  The motorola machines require an
actual read from the 8259 for PCI irqs, so in that case, we read the
8259, and then read the IVR to ack the irq.

Move i8259_get_irq() to i8259_common.c for above.

Fix some minor typos in the chip id's for prep residual.

Fix ibmnws and prep to properly initialize the prep ivr depending on if
the machine is motorola, or IBM based.

Tested on a 7043 and an MTX604


To generate a diff of this commit:
cvs rdiff -r1.8.14.5 -r1.8.14.6 src/sys/arch/ibmnws/ibmnws/machdep.c
cvs rdiff -r1.6 -r1.6.38.1 src/sys/arch/powerpc/include/openpicreg.h
cvs rdiff -r1.1.2.1 -r1.1.2.2 src/sys/arch/powerpc/pic/i8259_common.c
cvs rdiff -r1.1.2.3 -r1.1.2.4 src/sys/arch/powerpc/pic/pic_i8259.c
cvs rdiff -r1.1.2.7 -r1.1.2.8 src/sys/arch/powerpc/pic/pic_prepivr.c
cvs rdiff -r1.1.2.12 -r1.1.2.13 src/sys/arch/powerpc/pic/picvar.h
cvs rdiff -r1.2 -r1.2.26.1 src/sys/arch/prep/include/chpidpnp.h
cvs rdiff -r1.66.14.10 -r1.66.14.11 src/sys/arch/prep/prep/machdep.c
cvs rdiff -r1.22.18.4 -r1.22.18.5 src/sys/arch/prep/prep/platform.c

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