freebsd-dev/sys/dev/ofw
Nathan Whitehorn f214848258 Add two new interfaces to ofw_bus:
- ofw_bus_map_intr()
  Maps an (iparent, IRQ) tuple to a system-global interrupt number in some
  platform dependent way. This is meant to be implemented as a replacement
  for [FDT_]MAP_IRQ() that is an MI interface that knows about the bus
  hierarchy.
- ofw_bus_config_intr()
  Configures an interrupt (previously mapped) based on firmware sense flags.
  This replaces manual interpretation of the sense field in bus drivers and
  will, in a follow-up, allow that interpretation to be redirected to the PIC
  drivers where it belongs. This will eventually replace the tables in
  /sys/dev/fdt/fdt_ARCH.c

The PowerPC/AIM code has been converted to use these globally, with an
implementation in terms of MAP_IRQ() and powerpc_config_intr(), assuming
OpenPIC, at the bus root in nexus(4). The ofw_bus_config_intr() will shortly
be integrated into pic_if.m and bounced through nexus into the PIC tree.

FDT integration will happen significantly later due to larger testing
requirements. This patch in general also lays the groundwork for the removal
of /sys/dev/fdt/fdt_ARCH.c and machine/fdt.h.
2013-10-23 17:24:21 +00:00
..
ofw_bus_if.m Add two new interfaces to ofw_bus: 2013-10-23 17:24:21 +00:00
ofw_bus_subr.c Make all Open Firmware internal interfaces endian-safe by using the new 2013-10-23 13:55:41 +00:00
ofw_bus_subr.h - Add OF_hasprop() and ofw_bus_has_prop(). These can be used to check 2012-08-18 11:25:07 +00:00
ofw_bus.h Add two new interfaces to ofw_bus: 2013-10-23 17:24:21 +00:00
ofw_console.c Make all Open Firmware internal interfaces endian-safe by using the new 2013-10-23 13:55:41 +00:00
ofw_disk.c
ofw_fdt.c Remove OF_instance_to_package() hack for FDT and replace with use of the 2013-10-23 14:04:09 +00:00
ofw_if.m
ofw_iicbus.c Make all Open Firmware internal interfaces endian-safe by using the new 2013-10-23 13:55:41 +00:00
ofw_pci.h
ofw_standard.c
ofwvar.h
openfirm.c Make all Open Firmware internal interfaces endian-safe by using the new 2013-10-23 13:55:41 +00:00
openfirm.h A few other common cases for encode-int decoding: OF_getencprop_alloc() 2013-10-22 21:20:05 +00:00
openfirmio.c
openfirmio.h
openpromio.c
openpromio.h