kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_isintr_copperhead                                      */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Test to see if an interrupt is for us                                  */
/*                                                                          */
/****************************************************************************/


Routine Description.

Test to see if an interrupt is for us
Routine Description . Test to see if an interrupt is for us
static int
ips_isintr_copperhead(ips_ha_t *ha) {
   u8 Isr;
   METHOD_TRACE("ips_isintr_copperhead", 2);
   Isr = inb(ha->io_addr + IPS_REG_HISR);
   if (Isr == 0xFF)
      return (0);
   if (Isr & IPS_BIT_SCE)
      return (1);
   else if (Isr & (IPS_BIT_SQO | IPS_BIT_GHI)) {
      outb(Isr, ha->io_addr + IPS_REG_HISR);
   }
   return (0);
}
static int ips_isintr_copperhead ( ips_ha_t * ha ) { u8 Isr ; METHOD_TRACE ( " " , 2 ) ; Isr = inb ( ha -> io_addr + IPS_REG_HISR ) ; if ( Isr == 0xFF ) return ( 0 ) ; if ( Isr & IPS_BIT_SCE ) return ( 1 ) ; else if ( Isr & ( IPS_BIT_SQO | IPS_BIT_GHI ) ) { outb ( Isr , ha -> io_addr + IPS_REG_HISR ) ; } return ( 0 ) ; }
Routine Name: ips_isintr_copperhead
Routine Name : ips_isintr_copperhead
/* ?!?! Nothing really there */ /* status queue overflow or GHI */ /* just clear the interrupt */