diff options
| author | Thomas Bogendoerfer <[email protected]> | 2019-05-07 23:09:13 +0200 |
|---|---|---|
| committer | Paul Burton <[email protected]> | 2019-05-09 16:39:27 -0700 |
| commit | a57140e9a850582ddafdd8f115b78713baaf0d00 (patch) | |
| tree | 5bef10f17e75eb4b9168d7562856cfc9144e12c0 /include/linux/platform_data | |
| parent | 8041edb5920902adc9b28f2fcd9ccce395434ead (diff) | |
MIPS: SGI-IP27: use generic PCI driver
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 <[email protected]>
[[email protected]:
- 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 <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: James Hogan <[email protected]>
Cc: [email protected]
Cc: [email protected]
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/xtalk-bridge.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/include/linux/platform_data/xtalk-bridge.h b/include/linux/platform_data/xtalk-bridge.h new file mode 100644 index 000000000000..51e5001f2c05 --- /dev/null +++ b/include/linux/platform_data/xtalk-bridge.h @@ -0,0 +1,22 @@ +/* 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 */ |