opnsense-src/sys/dev/ofw
Luiz Otavio O Souza 628a40b5c4 Fix the gpio-specifier decoding by respecting the GPIO controller's
#gpio-cells property.

Add a new ofw_bus method (OFW_BUS_MAP_GPIOS()) that allows the GPIO
controller to implement its own mapping to deal with gpio-specifiers,
allowing the decoding of gpio-specifiers to be controller specific.

The default ofw_bus_map_gpios() decodes the linux standard (#gpio-cells =
<2>) and the FreeBSD standard (#gpio-cells = <3>).

It pass the gpio-specifier flag field to the children as an ivar variable so
they can act upon.
2014-04-27 12:11:00 +00:00
..
ofw_bus.h Fix the gpio-specifier decoding by respecting the GPIO controller's 2014-04-27 12:11:00 +00:00
ofw_bus_if.m Fix the gpio-specifier decoding by respecting the GPIO controller's 2014-04-27 12:11:00 +00:00
ofw_bus_subr.c Add a set of helpers (ofw_bus_get_status() and ofw_bus_status_okay()) to 2014-02-02 16:41:54 +00:00
ofw_bus_subr.h Add a set of helpers (ofw_bus_get_status() and ofw_bus_status_okay()) to 2014-02-02 16:41:54 +00:00
ofw_console.c Avoid warning about insecure format with clang. 2013-12-14 22:28:32 +00:00
ofw_disk.c Missed style fixes. 2009-06-14 00:15:26 +00:00
ofw_fdt.c Return the correct IEEE 1275 code for "nextprop". 2013-12-10 21:01:28 +00:00
ofw_if.m Change OF_interpret() to also take an array of cell_t (missed in r209801). 2010-09-11 18:55:00 +00:00
ofw_iicbus.c Allow the use of OFW I2C bus together with iicbb(4) on OFW-based systems. 2014-02-13 18:22:49 +00:00
ofw_pci.h The NetBSD Foundation has granted permission to remove clause 3 and 4 from 2010-03-01 16:52:11 +00:00
ofw_standard.c Change OF_interpret() to also take an array of cell_t (missed in r209801). 2010-09-11 18:55:00 +00:00
ofwbus.c Move Open Firmware device root on PowerPC, ARM, and MIPS systems to 2014-02-05 14:44:22 +00:00
ofwvar.h Fix style. 2009-06-14 00:05:38 +00:00
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 Fix style. 2009-06-14 00:05:38 +00:00
openfirmio.h Update the names of some member variables in comments to refect reality. 2005-05-19 15:22:16 +00:00
openpromio.c Modularize the Open Firmware client interface to allow run-time switching 2008-12-20 00:33:10 +00:00
openpromio.h