kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_statinit                                               */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Initialize the status queues on the controller                         */
/*                                                                          */
/****************************************************************************/


Routine Description.

Initialize the status queues on the controller
Routine Description . Initialize the status queues on the controller
static void
ips_statinit(ips_ha_t *ha) {
   u32        phys_status_start;
   METHOD_TRACE("ips_statinit", 1);
   ha->adapt->p_status_start = ha->adapt->status;
   ha->adapt->p_status_end = ha->adapt->status + IPS_MAX_CMDS;
   ha->adapt->p_status_tail = ha->adapt->status;
   phys_status_start = VIRT_TO_BUS(ha->adapt->status);
   outl(phys_status_start, ha->io_addr + IPS_REG_SQSR);
   outl(phys_status_start + IPS_STATUS_Q_SIZE, ha->io_addr + IPS_REG_SQER);
   outl(phys_status_start + IPS_STATUS_SIZE, ha->io_addr + IPS_REG_SQHR);
   outl(phys_status_start, ha->io_addr + IPS_REG_SQTR);
   ha->adapt->hw_status_start = phys_status_start;
   ha->adapt->hw_status_tail = phys_status_start;
}
static void ips_statinit ( ips_ha_t * ha ) { u32 phys_status_start ; METHOD_TRACE ( " " , 1 ) ; ha -> adapt -> p_status_start = ha -> adapt -> status ; ha -> adapt -> p_status_end = ha -> adapt -> status + IPS_MAX_CMDS ; ha -> adapt -> p_status_tail = ha -> adapt -> status ; phys_status_start = VIRT_TO_BUS ( ha -> adapt -> status ) ; outl ( phys_status_start , ha -> io_addr + IPS_REG_SQSR ) ; outl ( phys_status_start + IPS_STATUS_Q_SIZE , ha -> io_addr + IPS_REG_SQER ) ; outl ( phys_status_start + IPS_STATUS_SIZE , ha -> io_addr + IPS_REG_SQHR ) ; outl ( phys_status_start , ha -> io_addr + IPS_REG_SQTR ) ; ha -> adapt -> hw_status_start = phys_status_start ; ha -> adapt -> hw_status_tail = phys_status_start ; }
Routine Name: ips_statinit
Routine Name : ips_statinit