scb_t * mega_build_cmd (adapter_t * adapter, Scsi_Cmnd * cmd, int * busy);
adapter - pointer to our soft state cmd - Prepare using this scsi command busy - busy flag if no resources
Prepares a command and scatter gather list for the controller. This routine also finds out if the commands is intended for a logical drive or a physical device and prepares the controller command accordingly.
We also re-order the logical drives and physical devices based on their boot settings.