Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Yusuke Goda | c77aa17 | 2008-03-05 14:30:02 +0900 | [diff] [blame] | 2 | /* |
| 3 | * SH4 PCI Controller (PCIC) for U-Boot. |
| 4 | * (C) Dustin McIntire (dustin@sensoria.com) |
Nobuhiro Iwamatsu | 7d180fd | 2008-03-24 01:53:01 +0900 | [diff] [blame] | 5 | * (C) 2007,2008 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
Yusuke Goda | c77aa17 | 2008-03-05 14:30:02 +0900 | [diff] [blame] | 6 | * (C) 2008 Yusuke Goda <goda.yusuke@renesas.com> |
| 7 | * |
| 8 | * u-boot/include/asm-sh/pci.h |
Yusuke Goda | c77aa17 | 2008-03-05 14:30:02 +0900 | [diff] [blame] | 9 | */ |
| 10 | #ifndef _ASM_PCI_H_ |
| 11 | #define _ASM_PCI_H_ |
| 12 | |
| 13 | #include <pci.h> |
Nobuhiro Iwamatsu | 7d180fd | 2008-03-24 01:53:01 +0900 | [diff] [blame] | 14 | #if defined(CONFIG_SH7751_PCI) |
| 15 | int pci_sh7751_init(struct pci_controller *hose); |
| 16 | #elif defined(CONFIG_SH7780_PCI) |
Yusuke Goda | c77aa17 | 2008-03-05 14:30:02 +0900 | [diff] [blame] | 17 | int pci_sh7780_init(struct pci_controller *hose); |
| 18 | #else |
| 19 | #error "Not support PCI." |
| 20 | #endif |
| 21 | |
Nobuhiro Iwamatsu | e58917e | 2008-09-18 19:34:36 +0900 | [diff] [blame] | 22 | int pci_sh4_init(struct pci_controller *hose); |
Yusuke Goda | c77aa17 | 2008-03-05 14:30:02 +0900 | [diff] [blame] | 23 | /* PCI dword read for sh4 */ |
| 24 | int pci_sh4_read_config_dword(struct pci_controller *hose, |
| 25 | pci_dev_t dev, int offset, u32 *value); |
| 26 | |
| 27 | /* PCI dword write for sh4 */ |
| 28 | int pci_sh4_write_config_dword(struct pci_controller *hose, |
| 29 | pci_dev_t dev, int offset, u32 value); |
| 30 | |
| 31 | #endif /* _ASM_PCI_H_ */ |