|
NAMEahc —
Adaptec VL/ISA/PCI SCSI host adapter driver
SYNOPSISTo compile this driver into the kernel, place the following lines in your kernel configuration file:device scbus
device ahc
For one or more PCI cards:
To allow PCI adapters to use memory mapped I/O if enabled:
To configure one or more controllers to assume the target role:
Alternatively, to load the driver as a module at boot time, place the following lines in loader.conf(5): ahc_load="YES" ahc_isa_load="YES" ahc_pci_load="YES" DESCRIPTIONThis driver provides access to the SCSI bus(es) connected to the Adaptec AIC77xx and AIC78xx host adapter chips.Driver features include support for twin and wide busses, fast, ultra or ultra2 synchronous transfers depending on controller type, tagged queueing, SCB paging, and target mode. Memory mapped I/O can be enabled for PCI devices with the
“ Individual controllers may be configured to operate in the target
role through the “ Per target configuration performed in the SCSI-Select menu, accessible at boot is honored by this driver. This includes synchronous/asynchronous transfers, maximum synchronous negotiation rate, wide transfers, disconnection, the host adapter's SCSI ID. For systems that store non-volatile settings in a system specific manner rather than a serial eeprom directly connected to the aic7xxx controller, the BIOS must be enabled for the driver to access this information. This restriction applies to many chip-down motherboard configurations. Performance and feature sets vary throughout the aic7xxx product
line. The following table provides a comparison of the different chips
supported by the
HARDWARETheahc driver supports the following SCSI host adapter
chips and SCSI controller cards:
SCSI CONTROL BLOCKS (SCBs)Every transaction sent to a device on the SCSI bus is assigned a ‘SCSI Control Block’ (SCB). The SCB contains all of the information required by the controller to process a transaction. The chip feature table lists the number of SCBs that can be stored in on-chip memory. All chips with model numbers greater than or equal to 7870 allow for the on chip SCB space to be augmented with external SRAM up to a maximum of 255 SCBs. Very few Adaptec controller configurations have external SRAM.If external SRAM is not available, SCBs are a limited resource. Using the SCBs in a straight forward manner would only allow the driver to handle as many concurrent transactions as there are physical SCBs. To fully utilize the SCSI bus and the devices on it, requires much more concurrency. The solution to this problem is SCB Paging, a concept similar to memory paging. SCB paging takes advantage of the fact that devices usually disconnect from the SCSI bus for long periods of time without talking to the controller. The SCBs for disconnected transactions are only of use to the controller when the transfer is resumed. When the host queues another transaction for the controller to execute, the controller firmware will use a free SCB if one is available. Otherwise, the state of the most recently disconnected (and therefore most likely to stay disconnected) SCB is saved, via dma, to host memory, and the local SCB reused to start the new transaction. This allows the controller to queue up to 255 transactions regardless of the amount of SCB space. Since the local SCB space serves as a cache for disconnected transactions, the more SCB space available, the less host bus traffic consumed saving and restoring SCB data. SEE ALSOahd(4), cd(4), da(4), sa(4), scsi(4)HISTORYTheahc driver appeared in FreeBSD
2.0.
AUTHORSTheahc driver, the AIC7xxx sequencer-code assembler,
and the firmware running on the aic7xxx chips was written by
Justin T. Gibbs.
BUGSSome Quantum drives (at least the Empire 2100 and 1080s) will not run on an AIC7870 Rev B in synchronous mode at 10MHz. Controllers with this problem have a 42 MHz clock crystal on them and run slightly above 10MHz. This confuses the drive and hangs the bus. Setting a maximum synchronous negotiation rate of 8MHz in the SCSI-Select utility will allow normal operation.Although the Ultra2 and Ultra160 products have sufficient instruction ram space to support both the initiator and target roles concurrently, this configuration is disabled in favor of allowing the target role to respond on multiple target ids. A method for configuring dual role mode should be provided. Tagged Queuing is not supported in target mode. Reselection in target mode fails to function correctly on all high voltage differential boards as shipped by Adaptec. Information on how to modify HVD board to work correctly in target mode is available from Adaptec.
Visit the GSP FreeBSD Man Page Interface. |