ops-sh03.c 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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/kernel.h>
  7. #include <linux/types.h>
  8. #include <linux/init.h>
  9. #include <linux/delay.h>
  10. #include <linux/pci.h>
  11. #include <asm/io.h>
  12. #include "pci-sh7751.h"
  13. /*
  14. * Description: This function sets up and initializes the pcic, sets
  15. * up the BARS, maps the DRAM into the address space etc, etc.
  16. */
  17. int __init pcibios_init_platform(void)
  18. {
  19. return 1;
  20. }
  21. static struct resource sh7751_io_resource = {
  22. .name = "SH03 IO",
  23. .start = SH7751_PCI_IO_BASE,
  24. .end = SH7751_PCI_IO_BASE + SH7751_PCI_IO_SIZE - 1,
  25. .flags = IORESOURCE_IO
  26. };
  27. static struct resource sh7751_mem_resource = {
  28. .name = "SH03 mem",
  29. .start = SH7751_PCI_MEMORY_BASE,
  30. .end = SH7751_PCI_MEMORY_BASE + SH7751_PCI_MEM_SIZE - 1,
  31. .flags = IORESOURCE_MEM
  32. };
  33. extern struct pci_ops sh4_pci_ops;
  34. struct pci_channel board_pci_channels[] = {
  35. { &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
  36. { NULL, NULL, NULL, 0, 0 },
  37. };