• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/arch/sparc/kernel/

Lines Matching refs:pcic

2  * pcic.c: MicroSPARC-IIep PCI controller support
34 #include <asm/pcic.h>
174 struct linux_pcic *pcic;
177 pcic = &pcic0;
180 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr);
183 *value = readl(pcic->pcic_config_space_data + (where&4));
223 struct linux_pcic *pcic;
226 pcic = &pcic0;
229 writel(CONFIG_CMD(busno, devfn, where), pcic->pcic_config_space_addr);
230 writel(value, pcic->pcic_config_space_data + (where&4));
272 struct linux_pcic *pcic;
283 pcic = &pcic0;
301 pcic->pcic_res_regs.name = "pcic_registers";
302 pcic->pcic_regs = ioremap(regs[0].phys_addr, regs[0].reg_size);
303 if (!pcic->pcic_regs) {
308 pcic->pcic_res_io.name = "pcic_io";
309 if ((pcic->pcic_io = (unsigned long)
315 pcic->pcic_res_cfg_addr.name = "pcic_cfg_addr";
316 if ((pcic->pcic_config_space_addr =
327 pcic->pcic_res_cfg_data.name = "pcic_cfg_data";
328 if ((pcic->pcic_config_space_data =
335 pbm = &pcic->pbm;
349 pcic_regs = pcic->pcic_regs;
360 pcic->pcic_imap = p->intmap;
361 pcic->pcic_imdim = p->mapdim;
363 if (pcic->pcic_imap == NULL) {
374 static void __init pcic_pbm_scan_bus(struct linux_pcic *pcic)
376 struct linux_pbm_info *pbm = &pcic->pbm;
386 struct linux_pcic *pcic;
394 pcic = &pcic0;
400 pcic->pcic_regs+PCI_DVMA_CONTROL);
402 writel(0xF0000000UL, pcic->pcic_regs+PCI_SIZE_0);
404 pcic->pcic_regs+PCI_BASE_ADDRESS_0);
406 pcic_pbm_scan_bus(pcic);
442 static void pcic_map_pci_device(struct linux_pcic *pcic,
463 pcic->pcic_io + address;
478 pcic_fill_irq(struct linux_pcic *pcic, struct pci_dev *dev, int node)
490 if ((p = pcic->pcic_imap) == 0) {
494 for (i = 0; i < pcic->pcic_imdim; i++) {
499 if (i >= pcic->pcic_imdim) {
501 namebuf, dev->bus->number, dev->devfn, pcic->pcic_imdim);
508 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO);
511 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI);
532 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI);
535 writew(ivec, pcic->pcic_regs+PCI_INT_SELECT_HI);
537 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO);
540 writew(ivec, pcic->pcic_regs+PCI_INT_SELECT_LO);
555 struct linux_pcic *pcic;
556 /* struct linux_pbm_info* pbm = &pcic->pbm; */
564 pcic = &pcic0;
608 node = pdev_to_pnode(&pcic->pbm, dev);
614 pcp->pbm = &pcic->pbm;
620 pcic_map_pci_device(pcic, dev, node);
622 pcic_fill_irq(pcic, dev, node);
632 struct linux_pcic *pcic = &pcic0;
637 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_LO);
640 ivec = readw(pcic->pcic_regs+PCI_INT_SELECT_HI);
675 struct linux_pcic *pcic = &pcic0;
688 writel (TICK_TIMER_LIMIT, pcic->pcic_regs+PCI_SYS_LIMIT);
690 v = readb(pcic->pcic_regs+PCI_COUNTER_IRQ);
693 pcic->pcic_regs+PCI_COUNTER_IRQ);