} else if (hw_fib->header.XferState & NormalPriority) { 
} else if (hw_fib->header.XferState & cpu_to_le32(NormalPriority)) { 
int fib_adapter_complete(struct fib * fibptr, unsigned short size){	struct hw_fib * hw_fib = fibptr->hw_fib;	struct aac_dev * dev = fibptr->dev;	unsigned long nointr = 0;	if (hw_fib->header.XferState == 0)        	return 0;	/*	 *	If we plan to do anything check the structure type first.	 */ 	if ( hw_fib->header.StructType != FIB_MAGIC ) {        	return -EINVAL;	}	/*	 *	This block handles the case where the adapter had sent us a	 *	command and we have finished processing the command. We	 *	call completeFib when we are done processing the command 	 *	and want to send a response back to the adapter. This will 	 *	send the completed cdb to the adapter.	 */	if (hw_fib->header.XferState & cpu_to_le32(SentFromAdapter)) {	        hw_fib->header.XferState |= cpu_to_le32(HostProcessed);	        if (hw_fib->header.XferState & cpu_to_le32(HighPriority)) {        		u32 index;       			if (size) 			{				size += sizeof(struct aac_fibhdr);				if (size > le16_to_cpu(hw_fib->header.SenderSize))					return -EMSGSIZE;				hw_fib->header.Size = cpu_to_le16(size);			}			if(aac_queue_get(dev, &index, AdapHighRespQueue, hw_fib, 1, NULL, &nointr) < 0) {				return -EWOULDBLOCK;			}			if (aac_insert_entry(dev, index, AdapHighRespQueue,  (nointr & (int)aac_config.irq_mod)) != 0) {			}		}		else if (hw_fib->header.XferState & NormalPriority) 		{			u32 index;			if (size) {				size += sizeof(struct aac_fibhdr);				if (size > le16_to_cpu(hw_fib->header.SenderSize)) 					return -EMSGSIZE;				hw_fib->header.Size = cpu_to_le16(size);			}			if (aac_queue_get(dev, &index, AdapNormRespQueue, hw_fib, 1, NULL, &nointr) < 0) 				return -EWOULDBLOCK;			if (aac_insert_entry(dev, index, AdapNormRespQueue, (nointr & (int)aac_config.irq_mod)) != 0) 			{			}		}	}	else 	{        	printk(KERN_WARNING "fib_adapter_complete: Unknown xferstate detected.\n");        	BUG();	}   	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/56b5871223f66d4a34e6e1069f241077e9f0a154/commsup.c/clean/drivers/scsi/aacraid/commsup.c