• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/arch/sparc/kernel/

Lines Matching refs:pcic

2  * pcic.c: MicroSPARC-IIep PCI controller support
32 #include <asm/pcic.h>
172 struct linux_pcic *pcic;
175 pcic = &pcic0;
178 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr);
181 *value = readl(pcic->pcic_config_space_data + (where&4));
221 struct linux_pcic *pcic;
224 pcic = &pcic0;
227 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr);
228 writel(value, pcic->pcic_config_space_data + (where&4));
270 struct linux_pcic *pcic;
281 pcic = &pcic0;
299 pcic->pcic_res_regs.name = "pcic_registers";
300 pcic->pcic_regs = ioremap(regs[0].phys_addr, regs[0].reg_size);
301 if (!pcic->pcic_regs) {
306 pcic->pcic_res_io.name = "pcic_io";
307 if ((pcic->pcic_io = (unsigned long)
313 pcic->pcic_res_cfg_addr.name = "pcic_cfg_addr";
314 if ((pcic->pcic_config_space_addr =
325 pcic->pcic_res_cfg_data.name = "pcic_cfg_data";
326 if ((pcic->pcic_config_space_data =
333 pbm = &pcic->pbm;
347 pcic_regs = pcic->pcic_regs;
358 pcic->pcic_imap = p->intmap;
359 pcic->pcic_imdim = p->mapdim;
361 if (pcic->pcic_imap == NULL) {
372 static void __init pcic_pbm_scan_bus(struct linux_pcic *pcic)
374 struct linux_pbm_info *pbm = &pcic->pbm;
384 struct linux_pcic *pcic;
392 pcic = &pcic0;
398 pcic->pcic_regs+PCI_DVMA_CONTROL);
400 writel(0xF0000000UL, pcic->pcic_regs+PCI_SIZE_0);
402 pcic->pcic_regs+PCI_BASE_ADDRESS_0);
404 pcic_pbm_scan_bus(pcic);
439 static void pcic_map_pci_device(struct linux_pcic *pcic,
460 pcic->pcic_io + address;
475 pcic_fill_irq(struct linux_pcic *pcic, struct pci_dev *dev, int node)
487 if ((p = pcic->pcic_imap) == 0) {
491 for (i = 0; i < pcic->pcic_imdim; i++) {
496 if (i >= pcic->pcic_imdim) {
498 namebuf, dev->bus->number, dev->devfn, pcic->pcic_imdim);
505 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO);
508 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI);
529 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI);
532 writew(ivec, pcic->pcic_regs+PCI_INT_SELECT_HI);
534 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO);
537 writew(ivec, pcic->pcic_regs+PCI_INT_SELECT_LO);
550 struct linux_pcic *pcic;
551 /* struct linux_pbm_info* pbm = &pcic->pbm; */
559 pcic = &pcic0;
603 node = pdev_to_pnode(&pcic->pbm, dev);
609 pcp->pbm = &pcic->pbm;
615 pcic_map_pci_device(pcic, dev, node);
617 pcic_fill_irq(pcic, dev, node);
627 struct linux_pcic *pcic = &pcic0;
632 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO);
635 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI);
683 struct linux_pcic *pcic = &pcic0;
691 writel (TICK_TIMER_LIMIT, pcic->pcic_regs+PCI_SYS_LIMIT);
693 v = readb(pcic->pcic_regs+PCI_COUNTER_IRQ);
696 pcic->pcic_regs+PCI_COUNTER_IRQ);