ops-sh03.c 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * linux/arch/sh/drivers/pci/ops-sh03.c
  3. *
  4. * PCI initialization for the Interface CTP/PCI-SH03 board
  5. */
  6. #include <linux/config.h>
  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>
  12. #include <asm/io.h>
  13. #include "pci-sh7751.h"
  14. /*
  15. * Description: This function sets up and initializes the pcic, sets
  16. * up the BARS, maps the DRAM into the address space etc, etc.
  17. */
  18. int __init pcibios_init_platform(void)
  19. {
  20. return 1;
  21. }
  22. static struct resource sh7751_io_resource = {
  23. .name = "SH03 IO",
  24. .start = SH7751_PCI_IO_BASE,
  25. .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1,
  26. .flags = IORESOURCE_IO
  27. };
  28. static struct resource sh7751_mem_resource = {
  29. .name = "SH03 mem",
  30. .start = SH7751_PCI_MEMORY_BASE,
  31. .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1,
  32. .flags = IORESOURCE_MEM
  33. };
  34. extern struct pci_ops sh7751_pci_ops;
  35. struct pci_channel board_pci_channels[] = {
  36. { &sh7751_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
  37. { NULL, NULL, NULL, 0, 0 },
  38. };