Lines Matching refs:pshost
214 static ULONG DecodeError (struct Scsi_Host *pshost, UCHAR status) in DecodeError() argument
216 PADAPTER240I padapter = HOSTDATA(pshost); in DecodeError()
571 struct Scsi_Host *pshost; in Psi240i_Detect() local
599 pshost = scsi_register (tpnt, sizeof(ADAPTER240I)); in Psi240i_Detect()
600 if(pshost == NULL) in Psi240i_Detect()
612 PsiHost[chipConfig.irq - 10] = pshost; in Psi240i_Detect()
613 pshost->unique_id = port; in Psi240i_Detect()
614 pshost->io_port = port; in Psi240i_Detect()
615 pshost->n_io_port = 16; /* Number of bytes of I/O space used */ in Psi240i_Detect()
616 pshost->irq = chipConfig.irq; in Psi240i_Detect()
619 HOSTDATA(pshost)->ports[z] = port + z; in Psi240i_Detect()
620 HOSTDATA(pshost)->ports[11] = port + REG_FAIL; in Psi240i_Detect()
621 HOSTDATA(pshost)->ports[12] = port + REG_ALT_STAT; in Psi240i_Detect()
623 DEB (for (z=0;z<13;z++) printk(" %#04X",HOSTDATA(pshost)->ports[z]);); in Psi240i_Detect()
628 HOSTDATA(pshost)->device[unit].device = ChipSetup.setupDevice[unit].device; in Psi240i_Detect()
629 HOSTDATA(pshost)->device[unit].byte6 = (UCHAR)(((unit & 1) << 4) | 0xE0); in Psi240i_Detect()
630 HOSTDATA(pshost)->device[unit].spigot = (UCHAR)(1 << (unit >> 1)); in Psi240i_Detect()
631 HOSTDATA(pshost)->device[unit].sectors = ChipSetup.setupDevice[unit].sectors; in Psi240i_Detect()
632 HOSTDATA(pshost)->device[unit].heads = ChipSetup.setupDevice[unit].heads; in Psi240i_Detect()
633 HOSTDATA(pshost)->device[unit].cylinders = ChipSetup.setupDevice[unit].cylinders; in Psi240i_Detect()
634 HOSTDATA(pshost)->device[unit].blocks = ChipSetup.setupDevice[unit].blocks; in Psi240i_Detect()
635 DEB (printk ("\nHOSTDATA->device = %X", HOSTDATA(pshost)->device[unit].device)); in Psi240i_Detect()
636 DEB (printk ("\n byte6 = %X", HOSTDATA(pshost)->device[unit].byte6)); in Psi240i_Detect()
637 DEB (printk ("\n spigot = %X", HOSTDATA(pshost)->device[unit].spigot)); in Psi240i_Detect()
638 DEB (printk ("\n sectors = %X", HOSTDATA(pshost)->device[unit].sectors)); in Psi240i_Detect()
639 DEB (printk ("\n heads = %X", HOSTDATA(pshost)->device[unit].heads)); in Psi240i_Detect()
640 DEB (printk ("\n cylinders = %X", HOSTDATA(pshost)->device[unit].cylinders)); in Psi240i_Detect()
641 DEB (printk ("\n blocks = %lX", HOSTDATA(pshost)->device[unit].blocks)); in Psi240i_Detect()
651 scsi_unregister (pshost); in Psi240i_Detect()