pci.h 872 B

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