freebsd-skq/sys/arm/freescale
Svatopluk Kraus bff6be3e9b Remove FDT specific parts from INTRNG. Change its interface to make it
universal.

(1) New struct intr_map_data is defined as a container for arbitrary
description of an interrupt used by a device. Typically, an interrupt
number and configuration relevant to an interrupt controller is encoded
in such description. However, any additional information may be encoded
too like a set of cpus on which an interrupt should be enabled or vendor
specific data needed for setup of an interrupt in controller. The struct
intr_map_data itself is meant to be opaque for INTRNG.

(2) An intr_map_irq() function is created which takes an interrupt
controller identification and struct intr_map_data as arguments and
returns global interrupt number which identifies an interrupt.

(3) A set of functions to be used by bus drivers is created as well as
a corresponding set of methods for interrupt controller drivers. These
sets take both struct resource and struct intr_map_data as one of the
arguments. There is a goal to keep struct intr_map_data in struct
resource, however, this way a final solution is not limited to that.

(4) Other small changes are done to reflect new situation.

This is only first step aiming to create stable interface for interrupt
controller drivers. Thus, some temporary solution is taken. Interrupt
descriptions for devices are stored in INTRNG and two specific mapping
function are created to be temporary used by bus drivers. That's why
the struct intr_map_data is not opaque for INTRNG now. This temporary
solution will be replaced by final one in next step.

Differential Revision:	https://reviews.freebsd.org/D5730
2016-04-04 09:15:25 +00:00
..
imx Remove FDT specific parts from INTRNG. Change its interface to make it 2016-04-04 09:15:25 +00:00
vybrid Move ARM_L2_PIPT option to std.armv6 for all armv6 platforms. 2016-02-22 11:47:28 +00:00
fsl_ocotp.c The ocotp driver provides access to registers containing chip configuration 2014-09-02 02:54:55 +00:00
fsl_ocotpreg.h Make it possible to access the ocotp registers before the ocotp device 2014-02-16 03:09:39 +00:00
fsl_ocotpvar.h It turns out Freescale cleverly made the ocotp device compatible across 2014-02-15 21:21:57 +00:00