mp = aac_get_driver_ident(devtype); 
str = (struct scsi_inq *)(data); /* cast data to scsi inq block */ memset(str, ' ', sizeof(*str));  if (dev->supplement_adapter_info.AdapterTypeText[0]) { char * cp = dev->supplement_adapter_info.AdapterTypeText; int c = sizeof(str->vid); while (*cp && *cp != ' ' && --c) ++cp; c = *cp; *cp = '\0'; inqstrcpy (dev->supplement_adapter_info.AdapterTypeText, str->vid); *cp = c; while (*cp && *cp != ' ') ++cp; while (*cp == ' ') ++cp; /* last six chars reserved for vol type */ c = 0; if (strlen(cp) > sizeof(str->pid)) { c = cp[sizeof(str->pid)]; cp[sizeof(str->pid)] = '\0'; } inqstrcpy (cp, str->pid); if (c) cp[sizeof(str->pid)] = c; } else { struct aac_driver_ident *mp = aac_get_driver_ident(dev->cardtype); 
static void setinqstr(int devtype, void *data, int tindex){	struct scsi_inq *str;	struct aac_driver_ident *mp;	mp = aac_get_driver_ident(devtype);   	str = (struct scsi_inq *)(data); /* cast data to scsi inq block */	inqstrcpy (mp->vname, str->vid); 	inqstrcpy (mp->model, str->pid); /* last six chars reserved for vol type */	if (tindex < (sizeof(container_types)/sizeof(char *))){		char *findit = str->pid;		for ( ; *findit != ' '; findit++); /* walk till we find a space */		/* RAID is superfluous in the context of a RAID device */		if (memcmp(findit-4, "RAID", 4) == 0)			*(findit -= 4) = ' ';		inqstrcpy (container_types[tindex], findit + 1);	}	inqstrcpy ("V1.0", str->prl);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/794d0601e7a379f0188655115a3642f1e326116f/aachba.c/clean/drivers/scsi/aacraid/aachba.c