2 * linux/arch/sh/drivers/pci/ops-sh03.c
4 * PCI initialization for the Interface CTP/PCI-SH03 board
7 #include <linux/kernel.h>
8 #include <linux/types.h>
9 #include <linux/init.h>
10 #include <linux/delay.h>
11 #include <linux/pci.h>
13 #include "pci-sh7751.h"
16 * Description: This function sets up and initializes the pcic, sets
17 * up the BARS, maps the DRAM into the address space etc, etc.
19 int __init pcibios_init_platform(void)
21 __set_io_port_base(SH7751_PCI_IO_BASE);
25 static struct resource sh7751_io_resource = {
27 .start = SH7751_PCI_IO_BASE,
28 .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1,
29 .flags = IORESOURCE_IO
32 static struct resource sh7751_mem_resource = {
34 .start = SH7751_PCI_MEMORY_BASE,
35 .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1,
36 .flags = IORESOURCE_MEM
39 extern struct pci_ops sh4_pci_ops;
41 struct pci_channel board_pci_channels[] = {
42 { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
43 { NULL, NULL, NULL, 0, 0 },