tsi108_pci.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*
  2. * Copyright 2007 IBM Corp
  3. *
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License as
  7. * published by the Free Software Foundation; either version 2 of
  8. * the License, or (at your option) any later version.
  9. *
  10. * This program is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. * GNU General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU General Public License
  16. * along with this program; if not, write to the Free Software
  17. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  18. * MA 02111-1307 USA
  19. */
  20. #ifndef _ASM_POWERPC_TSI108_PCI_H
  21. #define _ASM_POWERPC_TSI108_PCI_H
  22. #include <asm/tsi108.h>
  23. /* Register definitions */
  24. #define TSI108_PCI_P2O_BAR0 (TSI108_PCI_OFFSET + 0x10)
  25. #define TSI108_PCI_P2O_BAR0_UPPER (TSI108_PCI_OFFSET + 0x14)
  26. #define TSI108_PCI_P2O_BAR2 (TSI108_PCI_OFFSET + 0x18)
  27. #define TSI108_PCI_P2O_BAR2_UPPER (TSI108_PCI_OFFSET + 0x1c)
  28. #define TSI108_PCI_P2O_PAGE_SIZES (TSI108_PCI_OFFSET + 0x4c)
  29. #define TSI108_PCI_PFAB_BAR0 (TSI108_PCI_OFFSET + 0x204)
  30. #define TSI108_PCI_PFAB_BAR0_UPPER (TSI108_PCI_OFFSET + 0x208)
  31. #define TSI108_PCI_PFAB_IO (TSI108_PCI_OFFSET + 0x20c)
  32. #define TSI108_PCI_PFAB_IO_UPPER (TSI108_PCI_OFFSET + 0x210)
  33. #define TSI108_PCI_PFAB_MEM32 (TSI108_PCI_OFFSET + 0x214)
  34. #define TSI108_PCI_PFAB_PFM3 (TSI108_PCI_OFFSET + 0x220)
  35. #define TSI108_PCI_PFAB_PFM4 (TSI108_PCI_OFFSET + 0x230)
  36. extern int tsi108_setup_pci(struct device_node *dev, u32 cfg_phys, int primary);
  37. extern void tsi108_pci_int_init(struct device_node *node);
  38. extern void tsi108_irq_cascade(struct irq_desc *desc);
  39. extern void tsi108_clear_pci_cfg_error(void);
  40. #endif /* _ASM_POWERPC_TSI108_PCI_H */