18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-or-later */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Copyright 2007 IBM Corp 48c2ecf20Sopenharmony_ci */ 58c2ecf20Sopenharmony_ci 68c2ecf20Sopenharmony_ci#ifndef _ASM_POWERPC_TSI108_PCI_H 78c2ecf20Sopenharmony_ci#define _ASM_POWERPC_TSI108_PCI_H 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#include <asm/tsi108.h> 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_ci/* Register definitions */ 128c2ecf20Sopenharmony_ci#define TSI108_PCI_P2O_BAR0 (TSI108_PCI_OFFSET + 0x10) 138c2ecf20Sopenharmony_ci#define TSI108_PCI_P2O_BAR0_UPPER (TSI108_PCI_OFFSET + 0x14) 148c2ecf20Sopenharmony_ci#define TSI108_PCI_P2O_BAR2 (TSI108_PCI_OFFSET + 0x18) 158c2ecf20Sopenharmony_ci#define TSI108_PCI_P2O_BAR2_UPPER (TSI108_PCI_OFFSET + 0x1c) 168c2ecf20Sopenharmony_ci#define TSI108_PCI_P2O_PAGE_SIZES (TSI108_PCI_OFFSET + 0x4c) 178c2ecf20Sopenharmony_ci#define TSI108_PCI_PFAB_BAR0 (TSI108_PCI_OFFSET + 0x204) 188c2ecf20Sopenharmony_ci#define TSI108_PCI_PFAB_BAR0_UPPER (TSI108_PCI_OFFSET + 0x208) 198c2ecf20Sopenharmony_ci#define TSI108_PCI_PFAB_IO (TSI108_PCI_OFFSET + 0x20c) 208c2ecf20Sopenharmony_ci#define TSI108_PCI_PFAB_IO_UPPER (TSI108_PCI_OFFSET + 0x210) 218c2ecf20Sopenharmony_ci#define TSI108_PCI_PFAB_MEM32 (TSI108_PCI_OFFSET + 0x214) 228c2ecf20Sopenharmony_ci#define TSI108_PCI_PFAB_PFM3 (TSI108_PCI_OFFSET + 0x220) 238c2ecf20Sopenharmony_ci#define TSI108_PCI_PFAB_PFM4 (TSI108_PCI_OFFSET + 0x230) 248c2ecf20Sopenharmony_ci 258c2ecf20Sopenharmony_ciextern int tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary); 268c2ecf20Sopenharmony_ciextern void tsi108_pci_int_init(struct device_node *node); 278c2ecf20Sopenharmony_ciextern void tsi108_irq_cascade(struct irq_desc *desc); 288c2ecf20Sopenharmony_ciextern void tsi108_clear_pci_cfg_error(void); 298c2ecf20Sopenharmony_ci 308c2ecf20Sopenharmony_ci#endif /* _ASM_POWERPC_TSI108_PCI_H */ 31