Lines Matching refs:fcChip
92 cpqfcHBAdata->fcChip.Registers.IOBaseL = PciDev->resource[1].start & PCI_BASE_ADDRESS_IO_MASK; in Cpqfc_initHBAdata()
93 cpqfcHBAdata->fcChip.Registers.IOBaseU = PciDev->resource[2].start & PCI_BASE_ADDRESS_IO_MASK; in Cpqfc_initHBAdata()
96 cpqfcHBAdata->fcChip.Registers.MemBase = PciDev->resource[3].start & PCI_BASE_ADDRESS_MEM_MASK; in Cpqfc_initHBAdata()
97 …cpqfcHBAdata->fcChip.Registers.ReMapMemBase = ioremap(PciDev->resource[3].start & PCI_BASE_ADDRESS… in Cpqfc_initHBAdata()
98 cpqfcHBAdata->fcChip.Registers.RAMBase = PciDev->resource[4].start; in Cpqfc_initHBAdata()
99 cpqfcHBAdata->fcChip.Registers.SROMBase = PciDev->resource[5].start; // NULL for HP TS adapter in Cpqfc_initHBAdata()
105 …cpqfcHBAdata->fcChip.Registers.SFQconsumerIndex.address = cpqfcHBAdata->fcChip.Registers.ReMapMemB… in Cpqfc_initHBAdata()
107 …cpqfcHBAdata->fcChip.Registers.ERQproducerIndex.address = cpqfcHBAdata->fcChip.Registers.ReMapMemB… in Cpqfc_initHBAdata()
110 …cpqfcHBAdata->fcChip.Registers.FMconfig.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + TL… in Cpqfc_initHBAdata()
111 …cpqfcHBAdata->fcChip.Registers.FMcontrol.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + T… in Cpqfc_initHBAdata()
112 …cpqfcHBAdata->fcChip.Registers.FMstatus.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + TL… in Cpqfc_initHBAdata()
113 …cpqfcHBAdata->fcChip.Registers.FMLinkStatus1.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase… in Cpqfc_initHBAdata()
114 …cpqfcHBAdata->fcChip.Registers.FMLinkStatus2.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase… in Cpqfc_initHBAdata()
115 …cpqfcHBAdata->fcChip.Registers.FMBB_CreditZero.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBa… in Cpqfc_initHBAdata()
118 …cpqfcHBAdata->fcChip.Registers.TYconfig.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + TL… in Cpqfc_initHBAdata()
119 …cpqfcHBAdata->fcChip.Registers.TYcontrol.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + T… in Cpqfc_initHBAdata()
120 …cpqfcHBAdata->fcChip.Registers.TYstatus.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + TL… in Cpqfc_initHBAdata()
121 …cpqfcHBAdata->fcChip.Registers.rcv_al_pa.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + T… in Cpqfc_initHBAdata()
122 …cpqfcHBAdata->fcChip.Registers.ed_tov.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + TL_M… in Cpqfc_initHBAdata()
125 …cpqfcHBAdata->fcChip.Registers.INTEN.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + IINTE… in Cpqfc_initHBAdata()
126 …cpqfcHBAdata->fcChip.Registers.INTPEND.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + IIN… in Cpqfc_initHBAdata()
127 …cpqfcHBAdata->fcChip.Registers.INTSTAT.address = cpqfcHBAdata->fcChip.Registers.ReMapMemBase + IIN… in Cpqfc_initHBAdata()
130 DEBUG_PCI(printk(" IOBaseL = %x\n", cpqfcHBAdata->fcChip.Registers.IOBaseL)); in Cpqfc_initHBAdata()
131 DEBUG_PCI(printk(" IOBaseU = %x\n", cpqfcHBAdata->fcChip.Registers.IOBaseU)); in Cpqfc_initHBAdata()
133 printk(" ioremap'd Membase: %p\n", cpqfcHBAdata->fcChip.Registers.ReMapMemBase); in Cpqfc_initHBAdata()
135 …DEBUG_PCI(printk(" SFQconsumerIndex.address = %p\n", cpqfcHBAdata->fcChip.Registers.SFQconsumer… in Cpqfc_initHBAdata()
136 …DEBUG_PCI(printk(" ERQproducerIndex.address = %p\n", cpqfcHBAdata->fcChip.Registers.ERQproducer… in Cpqfc_initHBAdata()
137 DEBUG_PCI(printk(" TYconfig.address = %p\n", cpqfcHBAdata->fcChip.Registers.TYconfig.address)); in Cpqfc_initHBAdata()
138 DEBUG_PCI(printk(" FMconfig.address = %p\n", cpqfcHBAdata->fcChip.Registers.FMconfig.address)); in Cpqfc_initHBAdata()
139 …DEBUG_PCI(printk(" FMcontrol.address = %p\n", cpqfcHBAdata->fcChip.Registers.FMcontrol.address)… in Cpqfc_initHBAdata()
142 cpqfcHBAdata->fcChip.Options.initiator = 1; // default: SCSI initiator in Cpqfc_initHBAdata()
143 cpqfcHBAdata->fcChip.Options.target = 0; // default: SCSI target in Cpqfc_initHBAdata()
144 cpqfcHBAdata->fcChip.Options.extLoopback = 0; // default: no loopback @GBIC in Cpqfc_initHBAdata()
145 cpqfcHBAdata->fcChip.Options.intLoopback = 0; // default: no loopback inside chip in Cpqfc_initHBAdata()
149 cpqfcHBAdata->fcChip.highest_FCPH_ver = FC_PH3; in Cpqfc_initHBAdata()
150 cpqfcHBAdata->fcChip.lowest_FCPH_ver = FC_PH43; in Cpqfc_initHBAdata()
153 cpqfcHBAdata->fcChip.ResetTachyon = CpqTsResetTachLite; in Cpqfc_initHBAdata()
154 cpqfcHBAdata->fcChip.FreezeTachyon = CpqTsFreezeTachlite; in Cpqfc_initHBAdata()
155 cpqfcHBAdata->fcChip.UnFreezeTachyon = CpqTsUnFreezeTachlite; in Cpqfc_initHBAdata()
156 cpqfcHBAdata->fcChip.CreateTachyonQues = CpqTsCreateTachLiteQues; in Cpqfc_initHBAdata()
157 cpqfcHBAdata->fcChip.DestroyTachyonQues = CpqTsDestroyTachLiteQues; in Cpqfc_initHBAdata()
158 cpqfcHBAdata->fcChip.InitializeTachyon = CpqTsInitializeTachLite; in Cpqfc_initHBAdata()
159 cpqfcHBAdata->fcChip.LaserControl = CpqTsLaserControl; in Cpqfc_initHBAdata()
160 cpqfcHBAdata->fcChip.ProcessIMQEntry = CpqTsProcessIMQEntry; in Cpqfc_initHBAdata()
161 cpqfcHBAdata->fcChip.InitializeFrameManager = CpqTsInitializeFrameManager;; in Cpqfc_initHBAdata()
162 cpqfcHBAdata->fcChip.ReadWriteWWN = CpqTsReadWriteWWN; in Cpqfc_initHBAdata()
163 cpqfcHBAdata->fcChip.ReadWriteNVRAM = CpqTsReadWriteNVRAM; in Cpqfc_initHBAdata()
309 if (check_region(cpqfcHBAdata->fcChip.Registers.IOBaseU, 0xff)) { in cpqfcTS_detect()
310 printk(" cpqfcTS address in use: %x\n", cpqfcHBAdata->fcChip.Registers.IOBaseU); in cpqfcTS_detect()
316 if (check_region(cpqfcHBAdata->fcChip.Registers.IOBaseL, 0xff)) { in cpqfcTS_detect()
317 printk(" cpqfcTS address in use: %x\n", cpqfcHBAdata->fcChip.Registers.IOBaseL); in cpqfcTS_detect()
323 request_region(cpqfcHBAdata->fcChip.Registers.IOBaseL, 0xff, DEV_NAME); in cpqfcTS_detect()
324 request_region(cpqfcHBAdata->fcChip.Registers.IOBaseU, 0xff, DEV_NAME); in cpqfcTS_detect()
325 …DEBUG_PCI(printk(" Requesting 255 I/O addresses @ %x\n", cpqfcHBAdata->fcChip.Registers.IOBaseL)); in cpqfcTS_detect()
326 …DEBUG_PCI(printk(" Requesting 255 I/O addresses @ %x\n", cpqfcHBAdata->fcChip.Registers.IOBaseU)); in cpqfcTS_detect()
347 if (cpqfcHBAdata->fcChip.InitializeTachyon(cpqfcHBAdata, 1, 1)) { in cpqfcTS_detect()
405 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in cpqfcTS_ioctl() local
420 pLoggedInPort = fcFindLoggedInPort(fcChip, &DumCmnd, // search Scsi Nexus in cpqfcTS_ioctl()
629 cpqfcHBAdata->fcChip.ResetTachyon(cpqfcHBAdata, CLEAR_FCPORTS); in cpqfcTS_release()
647 release_region(cpqfcHBAdata->fcChip.Registers.IOBaseL, 0xff); in cpqfcTS_release()
648 release_region(cpqfcHBAdata->fcChip.Registers.IOBaseU, 0xff); in cpqfcTS_release()
669 BusWidth = (cpqfcHBA->fcChip.Registers.PCIMCTR & 0x4) > 0 ? 64 : 32; in cpqfcTS_info()
671 if (cpqfcHBA->fcChip.Registers.TYconfig.value & 0x80000000) in cpqfcTS_info()
678 cpqfcHBA->fcChip.Name, in cpqfcTS_info()
679 cpqfcHBA->fcChip.Registers.wwn_hi, in cpqfcTS_info()
680 …fcChip.Registers.wwn_lo, cpqfcHBA->PciDev->bus->number, cpqfcHBA->PciDev->device, HostAdapter->irq… in cpqfcTS_info()
683 cpqfcTSDecodeGBICtype(&cpqfcHBA->fcChip, &buf[strlen(buf)]); in cpqfcTS_info()
684 cpqfcTSGetLPSM(&cpqfcHBA->fcChip, &buf[strlen(buf)]); in cpqfcTS_info()
754 PTACHYON fcChip; in cpqfcTS_proc_info() local
771 fcChip = &cpqfcHBA->fcChip; in cpqfcTS_proc_info()
781 cpqfcTSDecodeGBICtype(&cpqfcHBA->fcChip, &buf[0]); in cpqfcTS_proc_info()
782 cpqfcTSGetLPSM(&cpqfcHBA->fcChip, &buf[strlen(buf)]); in cpqfcTS_proc_info()
792 if ((pLoggedInPort = fcFindLoggedInPort(fcChip, &DumCmnd, // search Scsi Nexus in cpqfcTS_proc_info()
830 …copy_info(&info, " LinkUp %9u LinkDown %u\n", fcChip->fcStats.linkUp, fcChip->… in cpqfcTS_proc_info()
832 …o(&info, " Loss of Signal %9u Loss of Sync %u\n", fcChip->fcStats.LossofSignal, fcChip->fc… in cpqfcTS_proc_info()
834 …copy_info(&info, " Discarded Frames %9u Bad CRC Frame %u\n", fcChip->fcStats.Dis_Frm, fcChip-… in cpqfcTS_proc_info()
836 …fo, " TACH LinkFailTX %9u TACH LinkFailRX %u\n", fcChip->fcStats.linkFailTX, fcChip->fcS… in cpqfcTS_proc_info()
838 …info, " TACH RxEOFa %9u TACH Elastic Store %u\n", fcChip->fcStats.Rx_EOFa, fcChip->fcSt… in cpqfcTS_proc_info()
840 …(&info, " BufferCreditWait %9uus TACH FM Inits %u\n", fcChip->fcStats.BB0_Timer * 10, fcChip->f… in cpqfcTS_proc_info()
842 …copy_info(&info, " FC-2 Timeouts %9u FC-2 Logouts %u\n", fcChip->fcStats.timeouts, fcChip… in cpqfcTS_proc_info()
844 …fo(&info, " FC-2 Aborts %9u FC-4 Aborts %u\n", fcChip->fcStats.FC2aborted, fcChip->fcS… in cpqfcTS_proc_info()
847 cpqfcTSClearLinkStatusCounters(fcChip); in cpqfcTS_proc_info()
1106 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in cpqfcTS_queuecommand() local
1146 pLoggedInPort = fcFindLoggedInPort(fcChip, Cmnd, // search Scsi Nexus in cpqfcTS_queuecommand()
1207 TriggerHBA(fcChip->Registers.ReMapMemBase, 0); in cpqfcTS_queuecommand()
1264 PTACHYON fcChip = &cpqfcHBAdata->fcChip; in cpqfcTS_eh_abort() local
1265 FC_EXCHANGES *Exchanges = fcChip->Exchanges; in cpqfcTS_eh_abort()
1496 IntPending = readb(cpqfcHBA->fcChip.Registers.INTPEND.address); in cpqfcTS_intr_handler()
1504 writeb(0, cpqfcHBA->fcChip.Registers.INTEN.address); in cpqfcTS_intr_handler()
1517 writeb(0x1F, cpqfcHBA->fcChip.Registers.INTEN.address); in cpqfcTS_intr_handler()
1532 IntStat = readb(cpqfcHBA->fcChip.Registers.INTSTAT.address); in cpqfcTS_intr_handler()
1549 int cpqfcTSDecodeGBICtype(PTACHYON fcChip, char cErrorString[]) in cpqfcTSDecodeGBICtype() argument
1563 ulBuff = fcChip->Registers.TYstatus.value & 0x13; in cpqfcTSDecodeGBICtype()
1594 int cpqfcTSGetLPSM(PTACHYON fcChip, char cErrorString[]) in cpqfcTSGetLPSM() argument
1602 if (fcChip->Registers.FMstatus.value & 0x80) in cpqfcTSGetLPSM()
1607 …sprintf(&cErrorString[strlen(cErrorString)], " LPSM %Xh ", (fcChip->Registers.FMstatus.value >> 4)… in cpqfcTSGetLPSM()
1610 switch (fcChip->Registers.FMstatus.value & 0xF0) { in cpqfcTSGetLPSM()