freebsd-dev/sys/arm/mv
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
..
armada38x Make MPIC compatible with ARM_INTRNG 2016-03-14 07:05:41 +00:00
armadaxp Almost all copies of platform_mp_init_secondary just called 2016-02-26 16:04:47 +00:00
discovery Remove the arm KERNPHYSADDR option as it is no longer used. The make 2015-12-22 09:08:21 +00:00
kirkwood Change KERNVIRTADDR to 0xc0000000 since the low-order bits no longer need to 2015-12-20 23:38:14 +00:00
orion Remove pd_prot and pd_cache members from struct arm_devmap_entry. 2016-02-17 12:36:24 +00:00
files.mv Move support for Synopsys Designware APB UART out of ns8250 and into a 2016-04-01 20:26:45 +00:00
gpio.c Stop using machine/fdt.h in the arm kernel code when we don't need it. 2015-04-04 21:34:26 +00:00
ic.c Follow r261352 by updating all drivers which are children of simplebus 2014-02-02 19:17:28 +00:00
mpic.c Remove FDT specific parts from INTRNG. Change its interface to make it 2016-04-04 09:15:25 +00:00
mv_common.c Add support for USB3.0 on Armada38x 2016-03-14 07:14:34 +00:00
mv_localbus.c Fix the resource_list_print_type() calls to use uintmax_t. 2016-03-22 22:25:08 +00:00
mv_machdep.c Remove pd_prot and pd_cache members from struct arm_devmap_entry. 2016-02-17 12:36:24 +00:00
mv_pci.c Introduce a RMAN_IS_DEFAULT_RANGE() macro, and use it. 2016-02-20 01:32:58 +00:00
mv_ts.c Stop using machine/fdt.h in the arm kernel code when we don't need it. 2015-04-04 21:34:26 +00:00
mvreg.h Make MPIC compatible with ARM_INTRNG 2016-03-14 07:05:41 +00:00
mvvar.h As <machine/vm.h> is included from <vm/vm.h>, there is no need to 2016-02-22 09:10:23 +00:00
mvwin.h Add support for USB3.0 on Armada38x 2016-03-14 07:14:34 +00:00
rtc.c Follow r261352 by updating all drivers which are children of simplebus 2014-02-02 19:17:28 +00:00
std-pj4b.mv Fix a strange macro re-definition compile error. If the VM_MAXUSER_ADDRESS 2015-10-18 01:03:43 +00:00
std.mv Set machine correctly on ARM. This allows universe to use the correct world 2012-08-18 05:48:19 +00:00
timer.c Support watchdog depending on "mrvl,has-wdt" property 2016-01-20 14:28:05 +00:00