int aac_detect (Scsi_Host_Template * template);
Probe for AAC Host Adapters initialize, register, and report the configuration of each AAC Host Adapter found. Returns the number of adapters successfully initialized and registered. Initializes all data necessary for this particular SCSI driver.
The detect routine must not call any of the mid level functions to queue commands because things are not guaranteed to be set up yet. The detect routine can send commands to the host adapter as long as the program control will not be passed to scsi.c in the processing of the command. Note especially that scsi_malloc/scsi_free must not be called.