162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright 2007 IBM Corp 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _ASM_POWERPC_TSI108_PCI_H 762306a36Sopenharmony_ci#define _ASM_POWERPC_TSI108_PCI_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ci#include <asm/tsi108.h> 1062306a36Sopenharmony_ci 1162306a36Sopenharmony_ci/* Register definitions */ 1262306a36Sopenharmony_ci#define TSI108_PCI_P2O_BAR0 (TSI108_PCI_OFFSET + 0x10) 1362306a36Sopenharmony_ci#define TSI108_PCI_P2O_BAR0_UPPER (TSI108_PCI_OFFSET + 0x14) 1462306a36Sopenharmony_ci#define TSI108_PCI_P2O_BAR2 (TSI108_PCI_OFFSET + 0x18) 1562306a36Sopenharmony_ci#define TSI108_PCI_P2O_BAR2_UPPER (TSI108_PCI_OFFSET + 0x1c) 1662306a36Sopenharmony_ci#define TSI108_PCI_P2O_PAGE_SIZES (TSI108_PCI_OFFSET + 0x4c) 1762306a36Sopenharmony_ci#define TSI108_PCI_PFAB_BAR0 (TSI108_PCI_OFFSET + 0x204) 1862306a36Sopenharmony_ci#define TSI108_PCI_PFAB_BAR0_UPPER (TSI108_PCI_OFFSET + 0x208) 1962306a36Sopenharmony_ci#define TSI108_PCI_PFAB_IO (TSI108_PCI_OFFSET + 0x20c) 2062306a36Sopenharmony_ci#define TSI108_PCI_PFAB_IO_UPPER (TSI108_PCI_OFFSET + 0x210) 2162306a36Sopenharmony_ci#define TSI108_PCI_PFAB_MEM32 (TSI108_PCI_OFFSET + 0x214) 2262306a36Sopenharmony_ci#define TSI108_PCI_PFAB_PFM3 (TSI108_PCI_OFFSET + 0x220) 2362306a36Sopenharmony_ci#define TSI108_PCI_PFAB_PFM4 (TSI108_PCI_OFFSET + 0x230) 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ciextern int tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary); 2662306a36Sopenharmony_ciextern void tsi108_pci_int_init(struct device_node *node); 2762306a36Sopenharmony_ciextern void tsi108_irq_cascade(struct irq_desc *desc); 2862306a36Sopenharmony_ciextern void tsi108_clear_pci_cfg_error(void); 2962306a36Sopenharmony_ci 3062306a36Sopenharmony_ci#endif /* _ASM_POWERPC_TSI108_PCI_H */ 31