kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_init_scb                                               */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Initialize a CCB to default values                                     */
/*                                                                          */
/****************************************************************************/


Routine Description.

Initialize a CCB to default values
Routine Description . Initialize a CCB to default values
static void
ips_init_scb(ips_ha_t *ha, ips_scb_t *scb) {
   IPS_SG_LIST *sg_list;
   METHOD_TRACE("ips_init_scb", 1);
   if (scb == NULL)
      return ;
   sg_list = scb->sg_list;
   memset(scb, 0, sizeof(ips_scb_t));
   memset(ha->dummy, 0, sizeof(IPS_IO_CMD));
   ha->dummy->op_code = 0xFF;
   ha->dummy->ccsar = VIRT_TO_BUS(ha->dummy);
   ha->dummy->command_id = IPS_MAX_CMDS;
   scb->scb_busaddr = VIRT_TO_BUS(scb);
   scb->sg_list = sg_list;
   scb->cmd.basic_io.cccr = IPS_BIT_ILE;
   scb->cmd.basic_io.ccsar = VIRT_TO_BUS(ha->dummy);
}
static void ips_init_scb ( ips_ha_t * ha , ips_scb_t * scb ) { IPS_SG_LIST * sg_list ; METHOD_TRACE ( " " , 1 ) ; if ( scb == NULL ) return ; sg_list = scb -> sg_list ; memset ( scb , 0 , sizeof ( ips_scb_t ) ) ; memset ( ha -> dummy , 0 , sizeof ( IPS_IO_CMD ) ) ; ha -> dummy -> op_code = 0xFF ; ha -> dummy -> ccsar = VIRT_TO_BUS ( ha -> dummy ) ; ha -> dummy -> command_id = IPS_MAX_CMDS ; scb -> scb_busaddr = VIRT_TO_BUS ( scb ) ; scb -> sg_list = sg_list ; scb -> cmd . basic_io . cccr = IPS_BIT_ILE ; scb -> cmd . basic_io . ccsar = VIRT_TO_BUS ( ha -> dummy ) ; }
Routine Name: ips_init_scb
Routine Name : ips_init_scb
/* zero fill */ /* Initialize dummy command bucket */ /* set bus address of scb */ /* Neptune Fix */