pci.h 872 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * SH4 PCI Controller (PCIC) for U-Boot.
  4. * (C) Dustin McIntire (dustin@sensoria.com)
  5. * (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  6. * (C) 2008 Yusuke Goda <goda.yusuke@renesas.com>
  7. *
  8. * u-boot/include/asm-sh/pci.h
  9. */
  10. #ifndef _ASM_PCI_H_
  11. #define _ASM_PCI_H_
  12. #include <pci.h>
  13. #if defined(CONFIG_SH7751_PCI)
  14. int pci_sh7751_init(struct pci_controller *hose);
  15. #elif defined(CONFIG_SH7780_PCI)
  16. int pci_sh7780_init(struct pci_controller *hose);
  17. #else
  18. #error "Not support PCI."
  19. #endif
  20. int pci_sh4_init(struct pci_controller *hose);
  21. /* PCI dword read for sh4 */
  22. int pci_sh4_read_config_dword(struct pci_controller *hose,
  23. pci_dev_t dev, int offset, u32 *value);
  24. /* PCI dword write for sh4 */
  25. int pci_sh4_write_config_dword(struct pci_controller *hose,
  26. pci_dev_t dev, int offset, u32 value);
  27. #endif /* _ASM_PCI_H_ */