asm-generic: Add msi.h
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Nov 2014 17:09:34 +0000 (18:09 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 23 Nov 2014 12:01:47 +0000 (13:01 +0100)
commit926ff9ad76e097011030feaee904395e06eea17a
tree759cafbd9a80ad87081f6ea5351b880e1bb34745
parentf3cf8bb0d6c3c11ddedf01f02f856f2ae8c33aa4
asm-generic: Add msi.h

To support MSI irq domains we want a generic data structure for
allocation, but we need the option to provide an architecture specific
version of it. So instead of playing #ifdef games in linux/msi.h we
add a generic header file and let architectures decide whether to
include it or to provide their own implementation and provide the
required typedef.

I know that typedefs are not really nice, but in this case there are no
forward declarations required and it's the simplest solution.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Tony Luck <tony.luck@intel.com>
Cc: linux-arm-kernel@lists.infradead.org
Cc: Bjorn Helgaas <bhelgaas@google.com>
Cc: Grant Likely <grant.likely@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Yijing Wang <wangyijing@huawei.com>
Cc: Yingjoe Chen <yingjoe.chen@mediatek.com>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Cc: Alexander Gordeev <agordeev@redhat.com>
include/asm-generic/msi.h [new file with mode: 0644]