kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_issue_i2o                                              */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Send a command down to the controller                                  */
/*                                                                          */
/****************************************************************************/


Routine Description.

Send a command down to the controller
Routine Description . Send a command down to the controller
static int
ips_issue_i2o(ips_ha_t *ha, ips_scb_t *scb) {
   u32       cpu_flags;
   METHOD_TRACE("ips_issue_i2o", 1);
   if (scb->scsi_cmd) {
      DEBUG_VAR(2, "(%s%d) ips_issue: cmd 0x%X id %d (%d %d %d)",
                ips_name,
                ha->host_num,
                scb->cdb[0],
                scb->cmd.basic_io.command_id,
                scb->bus,
                scb->target_id,
                scb->lun);
   } else {
      DEBUG_VAR(2, "(%s%d) ips_issue: logical cmd id %d",
                ips_name,
                ha->host_num,
                scb->cmd.basic_io.command_id);
   }
   IPS_HA_LOCK(cpu_flags);
   outl(scb->scb_busaddr, ha->io_addr + IPS_REG_I2O_INMSGQ);
   IPS_HA_UNLOCK(cpu_flags);
   return (IPS_SUCCESS);
}
static int ips_issue_i2o ( ips_ha_t * ha , ips_scb_t * scb ) { u32 cpu_flags ; METHOD_TRACE ( " " , 1 ) ; if ( scb -> scsi_cmd ) { DEBUG_VAR ( 2 , " " , ips_name , ha -> host_num , scb -> cdb [ 0 ] , scb -> cmd . basic_io . command_id , scb -> bus , scb -> target_id , scb -> lun ) ; } else { DEBUG_VAR ( 2 , " " , ips_name , ha -> host_num , scb -> cmd . basic_io . command_id ) ; } IPS_HA_LOCK ( cpu_flags ) ; outl ( scb -> scb_busaddr , ha -> io_addr + IPS_REG_I2O_INMSGQ ) ; IPS_HA_UNLOCK ( cpu_flags ) ; return ( IPS_SUCCESS ) ; }
Routine Name: ips_issue_i2o
Routine Name : ips_issue_i2o