kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_reqsen                                                 */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Simulate a request sense command to a logical drive                    */
/*                                                                          */
/****************************************************************************/


Routine Description.

Simulate a request sense command to a logical drive
Routine Description . Simulate a request sense command to a logical drive
static int
ips_reqsen(ips_ha_t *ha, ips_scb_t *scb) {
   char *sp;
   METHOD_TRACE("ips_reqsen", 1);
   sp = (char *) scb->scsi_cmd->sense_buffer;
   memset(sp, 0, sizeof(scb->scsi_cmd->sense_buffer));
   sp[0] = 0x70;
   sp[3] = NO_SENSE;
   sp[7] = 0xe;
   sp[12] = NO_SENSE;
   return (0);
}
static int ips_reqsen ( ips_ha_t * ha , ips_scb_t * scb ) { char * sp ; METHOD_TRACE ( " " , 1 ) ; sp = ( char * ) scb -> scsi_cmd -> sense_buffer ; memset ( sp , 0 , sizeof ( scb -> scsi_cmd -> sense_buffer ) ) ; sp [ 0 ] = 0x70 ; sp [ 3 ] = NO_SENSE ; sp [ 7 ] = 0xe ; sp [ 12 ] = NO_SENSE ; return ( 0 ) ; }
Routine Name: ips_reqsen
Routine Name : ips_reqsen