Extend the OFW device tree node with a void pointer. The boot loader is
commit0b414b5bfb083f200dcb33bd41d7b8a75f79142e
authorJakub Jermar <jakub@jermar.eu>
Mon, 2 Oct 2006 21:07:23 +0000 (2 21:07 +0000)
committerJakub Jermar <jakub@jermar.eu>
Mon, 2 Oct 2006 21:07:23 +0000 (2 21:07 +0000)
treeef5a61683426d90adbf1214f1f66567d8c860ade
parent36db5ac1d5864f5e63a519565d7d97f7fc18c184
Extend the OFW device tree node with a void pointer. The boot loader is
supposed to reset all pointers in all nodes. The kernel uses the pointer
to recognize that a particular device has already been visited and initialized.

Read interrupt mapping from the OFW device tree for FHC devices (z8530) and
EBUS devices (ns16550). In case of FHC devices, remove hardwired values from
the code and use only values read from the tree. FHC initialization is started
when a FHC device wants to map its interrupt. In case of EBUS devices, map
the interrupt to INO. Interrupt enabling in the interrupt controller for that
specific interrupt is not implemented yet.
boot/genarch/ofw_tree.c
boot/genarch/ofw_tree.h
kernel/arch/sparc64/include/drivers/fhc.h
kernel/arch/sparc64/src/drivers/fhc.c
kernel/arch/sparc64/src/drivers/kbd.c
kernel/arch/sparc64/src/trap/interrupt.c
kernel/genarch/include/ofw/ofw_tree.h
kernel/genarch/src/kbd/z8530.c
kernel/genarch/src/ofw/ebus.c
kernel/genarch/src/ofw/fhc.c