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>
7 * u-boot/arch/sh/cpu/sh4/pci-sh4.c
9 * SPDX-License-Identifier: GPL-2.0+
14 #include <asm/processor.h>
19 int pci_sh4_init(struct pci_controller *hose)
21 hose->first_busno = 0;
22 hose->region_count = 0;
23 hose->last_busno = 0xff;
25 /* PCI memory space */
26 pci_set_region(hose->regions + 0,
34 pci_set_region(hose->regions + 1,
41 #if defined(CONFIG_PCI_SYS_BUS)
42 /* PCI System Memory space */
43 pci_set_region(hose->regions + 2,
47 PCI_REGION_MEM | PCI_REGION_SYS_MEMORY);
54 pci_hose_read_config_byte_via_dword,
55 pci_hose_read_config_word_via_dword,
56 pci_sh4_read_config_dword,
57 pci_hose_write_config_byte_via_dword,
58 pci_hose_write_config_word_via_dword,
59 pci_sh4_write_config_dword);
61 pci_register_hose(hose);
65 #ifdef CONFIG_PCI_SCAN_SHOW
66 printf("PCI: Bus Dev VenId DevId Class Int\n");
68 hose->last_busno = pci_hose_scan(hose);
72 int pci_skip_dev(struct pci_controller *hose, pci_dev_t dev)
77 #ifdef CONFIG_PCI_SCAN_SHOW
78 int pci_print_dev(struct pci_controller *hose, pci_dev_t dev)
82 #endif /* CONFIG_PCI_SCAN_SHOW */