• Home
  • Raw
  • Download

Lines Matching refs:chan

22 static int __init __area_sdram_check(struct pci_channel *chan,  in __area_sdram_check()  argument
34 pci_write_reg(chan, word, SH4_PCIBCR1); in __area_sdram_check()
43 pci_write_reg(chan, word, SH4_PCIBCR2); in __area_sdram_check()
80 struct pci_channel *chan = &sh7751_pci_controller; in sh7751_pci_init() local
86 chan->reg_base = 0xfe200000; in sh7751_pci_init()
89 id = pci_read_reg(chan, SH7751_PCICONF0); in sh7751_pci_init()
102 pci_write_reg(chan, 0, SH4_PCICLKR); in sh7751_pci_init()
105 pci_write_reg(chan, word, SH4_PCIPINT); in sh7751_pci_init()
113 pci_write_reg(chan, word, SH7751_PCICONF1); in sh7751_pci_init()
117 pci_write_reg(chan, word, SH7751_PCICONF2); in sh7751_pci_init()
123 pci_write_reg(chan, word, SH4_PCILSR0); in sh7751_pci_init()
126 pci_write_reg(chan, word, SH4_PCILAR0); in sh7751_pci_init()
127 pci_write_reg(chan, word, SH7751_PCICONF5); in sh7751_pci_init()
132 word = chan->resources[1].start & SH4_PCIMBR_MASK; in sh7751_pci_init()
134 pci_write_reg(chan, word , SH4_PCIMBR); in sh7751_pci_init()
138 word = chan->resources[0].start & SH4_PCIIOBR_MASK; in sh7751_pci_init()
140 pci_write_reg(chan, word, SH4_PCIIOBR); in sh7751_pci_init()
146 case SH7751_CS0_BASE_ADDR: word = __area_sdram_check(chan, 0); break; in sh7751_pci_init()
147 case SH7751_CS1_BASE_ADDR: word = __area_sdram_check(chan, 1); break; in sh7751_pci_init()
148 case SH7751_CS2_BASE_ADDR: word = __area_sdram_check(chan, 2); break; in sh7751_pci_init()
149 case SH7751_CS3_BASE_ADDR: word = __area_sdram_check(chan, 3); break; in sh7751_pci_init()
150 case SH7751_CS4_BASE_ADDR: word = __area_sdram_check(chan, 4); break; in sh7751_pci_init()
151 case SH7751_CS5_BASE_ADDR: word = __area_sdram_check(chan, 5); break; in sh7751_pci_init()
152 case SH7751_CS6_BASE_ADDR: word = __area_sdram_check(chan, 6); break; in sh7751_pci_init()
160 pci_write_reg(chan, word, SH4_PCIWCR1); in sh7751_pci_init()
162 pci_write_reg(chan, word, SH4_PCIWCR2); in sh7751_pci_init()
164 pci_write_reg(chan, word, SH4_PCIWCR3); in sh7751_pci_init()
166 pci_write_reg(chan, word, SH4_PCIMCR); in sh7751_pci_init()
173 pci_fixup_pcic(chan); in sh7751_pci_init()
178 pci_write_reg(chan, word, SH4_PCICR); in sh7751_pci_init()
180 return register_pci_controller(chan); in sh7751_pci_init()