mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 08:49:45 +00:00
![Thomas Bogendoerfer](/assets/img/avatar_default.png)
Converted bridge code to a platform driver using the PCI generic driver framework and use adding platform devices during xtalk scan. This allows easier sharing bridge driver for other SGI platforms like IP30 (Octane) and IP35 (Origin 3k, Fuel, Tezro). Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@suse.de> [paul.burton@mips.com: - Leave __phys_to_dma(), __dma_to_phys() & pcibus_to_node() in arch/mips/pci/pci-ip27.c since the motivation for moving them disappeared when the driver stopped being moved to drivers/pci.] Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
22 lines
437 B
C
22 lines
437 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* SGI PCI Xtalk Bridge
|
|
*/
|
|
|
|
#ifndef PLATFORM_DATA_XTALK_BRIDGE_H
|
|
#define PLATFORM_DATA_XTALK_BRIDGE_H
|
|
|
|
#include <asm/sn/types.h>
|
|
|
|
struct xtalk_bridge_platform_data {
|
|
struct resource mem;
|
|
struct resource io;
|
|
unsigned long bridge_addr;
|
|
unsigned long intr_addr;
|
|
unsigned long mem_offset;
|
|
unsigned long io_offset;
|
|
nasid_t nasid;
|
|
int masterwid;
|
|
};
|
|
|
|
#endif /* PLATFORM_DATA_XTALK_BRIDGE_H */
|