kernels/linux-2.4.0/drivers/scsi/ips.c
/****************************************************************************/
/*                                                                          */
/* Routine Name: ips_inquiry                                                */
/*                                                                          */
/* Routine Description:                                                     */
/*                                                                          */
/*   Simulate an inquiry command to a logical drive                         */
/*                                                                          */
/****************************************************************************/


Routine Description.

Simulate an inquiry command to a logical drive
Routine Description . Simulate an inquiry command to a logical drive
static int
ips_inquiry(ips_ha_t *ha, ips_scb_t *scb) {
   IPS_INQ_DATA inq;
   METHOD_TRACE("ips_inquiry", 1);
   memset(&inq, 0, sizeof(IPS_INQ_DATA));
   inq.DeviceType = TYPE_DISK;
   inq.DeviceTypeQualifier = 0;
   inq.RemoveableMedia = 0;
   inq.Versions = 0x1;  
   inq.AdditionalLength = 31;
   strncpy(inq.VendorId, "IBM     ", 8);
   strncpy(inq.ProductId, "SERVERAID       ", 16);
   strncpy(inq.ProductRevisionLevel, "1.00", 4);
   memcpy(scb->scsi_cmd->request_buffer, &inq, scb->scsi_cmd->request_bufflen);
   return (1);
}
static int ips_inquiry ( ips_ha_t * ha , ips_scb_t * scb ) { IPS_INQ_DATA inq ; METHOD_TRACE ( " " , 1 ) ; memset ( & inq , 0 , sizeof ( IPS_INQ_DATA ) ) ; inq . DeviceType = TYPE_DISK ; inq . DeviceTypeQualifier = 0 ; inq . RemoveableMedia = 0 ; inq . Versions = 0x1 ; inq . AdditionalLength = 31 ; strncpy ( inq . VendorId , " " , 8 ) ; strncpy ( inq . ProductId , " " , 16 ) ; strncpy ( inq . ProductRevisionLevel , " " , 4 ) ; memcpy ( scb -> scsi_cmd -> request_buffer , & inq , scb -> scsi_cmd -> request_bufflen ) ; return ( 1 ) ; }
Routine Name: ips_inquiry
Routine Name : ips_inquiry
/* SCSI I */