Home | History | Annotate | Download | only in fdt
History log of /src/sys/dev/fdt/fdt_intr.c
RevisionDateAuthorComments
 1.30  07-Nov-2021  jmcneill fdt: add helper for finding intr parent phandle
 1.29  15-Jan-2021  jmcneill Add 'const char *xname' param to fdtbus_intr_establish_byname
 1.28  15-Jan-2021  ryo add fdtbus_intr_establish_xname() function
 1.27  15-Jan-2021  jmcneill Add 'const char *xname' arg to fdtbus_interrupt_controller_func .establish
 1.26  08-Mar-2020  skrll branches: 1.26.4;
Use MUTEX_DEFAULT to avoid confusion
 1.25  16-Feb-2020  thorpej Add fdt_intr_mask() / fdt_intr_unmask() functions, for masking and
unmasking invididual interrupt sources (similar to acpi_intr_mask()
and acpi_intr_unmask()).
 1.24  31-Dec-2019  jmcneill branches: 1.24.2;
Remove a stupid printf
 1.23  16-Nov-2019  mlelstv be more verbose about errors.
 1.22  14-Jun-2019  hkenken Add support "interrupts-extended".

* fdtbus_get_phandle_with_data().
Add utility subroutine to get phandle with data.
 1.21  27-Feb-2019  jakllsch Add fdtbus_intr_establish_byname() helper.
 1.20  13-Nov-2018  jakllsch Avoid using the "interrupt-map" table on our own interrupts.

This is needed by the rk3399.dtsi's pcie0 node, which needs to map its
interrupts an entity other than itself.

Suggested by jmcneill@
 1.19  21-Oct-2018  skrll Fix sense of test in fdtbus_intr_disestablish.

Reported by yarl-baudig on port-arm.
 1.18  06-Sep-2018  jmcneill Add fdtbus_intr_establish_raw and fdtbus_intr_str_raw, for establishing
interrupts directly using an interrupt controller's phandle and specifier.
 1.17  15-Jul-2018  jmcneill Get rid of unnecessary calls to kmem_alloc
 1.16  15-Jul-2018  jmcneill Return the interrupt controller's cookie directly from fdtbus_intr_establish
 1.15  02-Jul-2018  jmcneill When searching for interrupt parent, stop as soon as we see an
interrupt-controller property on a node other than the starting node.
 1.14  02-Jul-2018  jmcneill Fix a regression with interrupt-map handling in previous.
 1.13  02-Jul-2018  jmcneill interrupt-map bug fixes
 1.12  30-Jun-2018  jmcneill Use queue(3) API to manage lists. NFCI.
 1.11  11-Jun-2017  jmcneill branches: 1.11.4; 1.11.6; 1.11.8;
Fix an issue with interrupt controller lookup wrt cascading interrupt
controllers.
 1.10  02-Jun-2017  jmcneill branches: 1.10.2;
Fix interrupt-map support on vexpress-a15 and try to avoid unnecessary
calls to kmem_alloc.
 1.9  02-Jun-2017  jmcneill Rewrite interrupt-map support based on ePAPR spec.
 1.8  25-May-2016  jmcneill Fix get_specifier_by_index to work with indexes greater than 0.
 1.7  10-Jan-2016  marty FDT Interrupt handling - change memory allocation

This version does dynamic allocation of the specifier array.
 1.6  07-Jan-2016  marty FDT interrupts - bug fixing

Fix a pair of memory leaks
Add some descriptive messaging in fail cases.
Fix that _by_index wasn't walking the tree upward to find the interrupt-parent.
Fix a pair of messages so they include the function in the text.
 1.5  05-Jan-2016  marty FDT interrupts -- clean up debug printfs

Ooops. forgot to delete my debug printfs before my last checkin.
 1.4  05-Jan-2016  marty FDT: Interrupts -- add support for interrupt maps

The mct on exynos uses an interrupt map so we add support now. Devices
represent their interrupts either through a combination of interrupt-parent
and interrupts properties, where the 'interrupts' property is an array of
one or more interrupt specifiers; or through a combination of an
interrupt-parent that points to an interrupt-map, where the interrupt-map
contains 2 or more entries consisting of an index, a pointer to an
interrupt-controller, and a specifier for that controller.

This code adds the ability to walk the interrupt-map and return a specifier.
Unfortunately, the addition requires changing the interface to the
interrupt-controllers' _establish and _intstr functions, so this check in
contains a rototill of the three existing fdt interrupt controllers to use
the new interface.
 1.3  16-Dec-2015  jmcneill branches: 1.3.2;
Use of_getprop_bool/of_getprop_uint32
 1.2  16-Dec-2015  jmcneill Only OF_* functions should be in fdt_openfirm.c, move the rest to fdt_subr.c.
 1.1  16-Dec-2015  jmcneill split gpio, i2c, intr, and regulator helpers into separate files
 1.3.2.5  28-Aug-2017  skrll Sync with HEAD
 1.3.2.4  29-May-2016  skrll Sync with HEAD
 1.3.2.3  19-Mar-2016  skrll Sync with HEAD
 1.3.2.2  27-Dec-2015  skrll Sync with HEAD (as of 26th Dec)
 1.3.2.1  16-Dec-2015  skrll file fdt_intr.c was added on branch nick-nhusb on 2015-12-27 12:09:49 +0000
 1.10.2.1  14-Jun-2017  snj Pull up following revision(s) (requested by jmcneill in ticket #30):
sys/dev/fdt/fdt_intr.c: revision 1.11
Fix an issue with interrupt controller lookup wrt cascading interrupt
controllers.
 1.11.8.3  13-Apr-2020  martin Mostly merge changes from HEAD upto 20200411
 1.11.8.2  08-Apr-2020  martin Merge changes from current as of 20200406
 1.11.8.1  10-Jun-2019  christos Sync with HEAD
 1.11.6.3  26-Nov-2018  pgoyette Sync with HEAD, resolve a couple of conflicts
 1.11.6.2  30-Sep-2018  pgoyette Ssync with HEAD
 1.11.6.1  28-Jul-2018  pgoyette Sync with HEAD
 1.11.4.2  03-Dec-2017  jdolecek update from HEAD
 1.11.4.1  11-Jun-2017  jdolecek file fdt_intr.c was added on branch tls-maxphys on 2017-12-03 11:37:01 +0000
 1.24.2.1  29-Feb-2020  ad Sync with head.
 1.26.4.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed