kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_statupd_copperhead                                     */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Remove an element from the status queue                                */
/*                                                                          */
/****************************************************************************/


Routine Description.

Remove an element from the status queue
Routine Description . Remove an element from the status queue
static u32
ips_statupd_copperhead(ips_ha_t *ha) {
   METHOD_TRACE("ips_statupd_copperhead", 1);
   if (ha->adapt->p_status_tail != ha->adapt->p_status_end) {
      ha->adapt->p_status_tail++;
      ha->adapt->hw_status_tail += sizeof(IPS_STATUS);
   } else {
      ha->adapt->p_status_tail = ha->adapt->p_status_start;
      ha->adapt->hw_status_tail = ha->adapt->hw_status_start;
   }
   outl(ha->adapt->hw_status_tail, ha->io_addr + IPS_REG_SQTR);
   return (ha->adapt->p_status_tail->value);
}
static u32 ips_statupd_copperhead ( ips_ha_t * ha ) { METHOD_TRACE ( " " , 1 ) ; if ( ha -> adapt -> p_status_tail != ha -> adapt -> p_status_end ) { ha -> adapt -> p_status_tail ++ ; ha -> adapt -> hw_status_tail += sizeof ( IPS_STATUS ) ; } else { ha -> adapt -> p_status_tail = ha -> adapt -> p_status_start ; ha -> adapt -> hw_status_tail = ha -> adapt -> hw_status_start ; } outl ( ha -> adapt -> hw_status_tail , ha -> io_addr + IPS_REG_SQTR ) ; return ( ha -> adapt -> p_status_tail -> value ) ; }
Routine Name: ips_statupd_copperhead
Routine Name : ips_statupd_copperhead