]> git.karo-electronics.de Git - linux-beck.git/commit
sh: hook in struct pci_channel in sysdata
authorMagnus Damm <magnus.damm@gmail.com>
Tue, 19 Feb 2008 12:34:55 +0000 (21:34 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 16 Apr 2009 07:00:13 +0000 (16:00 +0900)
commitb6706ef10f75921733d7275fd45d268f2f6254c8
treedfaf33eb6634b7d3fb9d53ddf92f7bbfcf69e45c
parent710fa3c81151948ac4d836ef52b57cef91b0ab72
sh: hook in struct pci_channel in sysdata

Store a struct pci_channel pointer in bus->sysdata. This makes whatever
struct pci_channel assigned to a bus available for sh4_pci_read() and
sh4_pci_write(). We also modify PCIBIOS_MIN_IO and PCIBIOS_MIN_MEM to
use bus->sysdata - this to gives us support for multiple pci channels.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/ops-sh4.c
arch/sh/drivers/pci/pci-auto.c
arch/sh/include/asm/pci.h