• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/char/rio/

Lines Matching refs:hp

701 static struct vpd_prom *get_VPD_PROM(struct Host *hp)
708 rio_dprintk(RIO_DEBUG_PROBE, "Going to verify vpd prom at %p.\n", hp->Caddr + RIO_VPD_ROM);
712 *p++ = readb(hp->Caddr + RIO_VPD_ROM + i * 2);
713 /* read_rio_byte (hp, RIO_VPD_ROM + i*2); */
925 struct Host *hp;
977 hp = &p->RIOHosts[p->RIONumHosts];
978 hp->PaddrP = pci_resource_start(pdev, 2);
979 hp->Ivec = pdev->irq;
980 if (((1 << hp->Ivec) & rio_irqmask) == 0)
981 hp->Ivec = 0;
982 hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN);
983 hp->CardP = (struct DpRam __iomem *) hp->Caddr;
984 hp->Type = RIO_PCI;
985 hp->Copy = rio_copy_to_card;
986 hp->Mode = RIO_PCI_BOOT_FROM_RAM;
987 spin_lock_init(&hp->HostLock);
988 rio_reset_interrupt(hp);
989 rio_start_card_running(hp);
1029 hp = &p->RIOHosts[p->RIONumHosts];
1030 hp->PaddrP = pci_resource_start(pdev, 0);
1031 hp->Ivec = pdev->irq;
1032 if (((1 << hp->Ivec) & rio_irqmask) == 0)
1033 hp->Ivec = 0;
1034 hp->Ivec |= 0x8000; /* Mark as non-sharable */
1035 hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN);
1036 hp->CardP = (struct DpRam __iomem *) hp->Caddr;
1037 hp->Type = RIO_PCI;
1038 hp->Copy = rio_copy_to_card;
1039 hp->Mode = RIO_PCI_BOOT_FROM_RAM;
1040 spin_lock_init(&hp->HostLock);
1042 rio_dprintk(RIO_DEBUG_PROBE, "Ivec: %x\n", hp->Ivec);
1043 rio_dprintk(RIO_DEBUG_PROBE, "Mode: %x\n", hp->Mode);
1045 rio_reset_interrupt(hp);
1046 rio_start_card_running(hp);
1073 hp = &p->RIOHosts[p->RIONumHosts];
1074 hp->PaddrP = rio_probe_addrs[i];
1076 hp->Ivec = 0;
1077 hp->Caddr = ioremap(p->RIOHosts[p->RIONumHosts].PaddrP, RIO_WINDOW_LEN);
1078 hp->CardP = (struct DpRam __iomem *) hp->Caddr;
1079 hp->Type = RIO_AT;
1080 hp->Copy = rio_copy_to_card; /* AT card PCI???? - PVDL
1085 hp->Mode = 0;
1086 spin_lock_init(&hp->HostLock);
1088 vpdp = get_VPD_PROM(hp);
1093 if (RIOBoardTest(hp->PaddrP, hp->Caddr, RIO_AT, 0) == 0) {
1096 if (RIOAssignAT(p, hp->PaddrP, hp->Caddr, 0)) {
1104 iounmap(hp->Caddr);
1105 hp->Caddr = NULL;
1112 hp = &p->RIOHosts[i];
1113 if (hp->Ivec) {
1115 if (hp->Ivec & 0x8000) {
1117 hp->Ivec &= 0x7fff;
1119 rio_dprintk(RIO_DEBUG_INIT, "Requesting interrupt hp: %p rio_interrupt: %d Mode: %x\n", hp, hp->Ivec, hp->Mode);
1120 retval = request_irq(hp->Ivec, rio_interrupt, mode, "rio", hp);
1123 printk(KERN_ERR "rio: Cannot allocate irq %d.\n", hp->Ivec);
1124 hp->Ivec = 0;
1126 rio_dprintk(RIO_DEBUG_INIT, "Got irq %d.\n", hp->Ivec);
1127 if (hp->Ivec != 0) {
1129 hp->Mode |= RIO_PCI_INT_ENABLE;
1131 hp->Mode &= ~RIO_PCI_INT_ENABLE;
1132 rio_dprintk(RIO_DEBUG_INIT, "New Mode: %x\n", hp->Mode);
1133 rio_start_card_running(hp);
1138 setup_timer(&hp->timer, rio_pollfunc, i);
1139 if (!hp->Ivec) {
1141 mod_timer(&hp->timer, jiffies + rio_poll);
1161 struct Host *hp;
1165 for (i = 0, hp = p->RIOHosts; i < p->RIONumHosts; i++, hp++) {
1166 RIOHostReset(hp->Type, hp->CardP, hp->Slot);
1167 if (hp->Ivec) {
1168 free_irq(hp->Ivec, hp);
1169 rio_dprintk(RIO_DEBUG_INIT, "freed irq %d.\n", hp->Ivec);
1172 del_timer_sync(&hp->timer);
1173 if (hp->Caddr)
1174 iounmap(hp->Caddr);
1175 if (hp->Type == RIO_PCI)
1176 pci_dev_put(hp->pdev);