aic7xxx.c (50107) | aic7xxx.c (50221) |
---|---|
1/* 2 * Generic driver for the aic7xxx based adaptec SCSI controllers 3 * Product specific probe and attach routines can be found in: 4 * i386/eisa/ahc_eisa.c 27/284X and aic7770 motherboard controllers 5 * pci/ahc_pci.c 3985, 3980, 3940, 2940, aic7895, aic7890, 6 * aic7880, aic7870, aic7860, and aic7850 controllers 7 * 8 * Copyright (c) 1994, 1995, 1996, 1997, 1998, 1999 Justin T. Gibbs. --- 22 unchanged lines hidden (view full) --- 31 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * | 1/* 2 * Generic driver for the aic7xxx based adaptec SCSI controllers 3 * Product specific probe and attach routines can be found in: 4 * i386/eisa/ahc_eisa.c 27/284X and aic7770 motherboard controllers 5 * pci/ahc_pci.c 3985, 3980, 3940, 2940, aic7895, aic7890, 6 * aic7880, aic7870, aic7860, and aic7850 controllers 7 * 8 * Copyright (c) 1994, 1995, 1996, 1997, 1998, 1999 Justin T. Gibbs. --- 22 unchanged lines hidden (view full) --- 31 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 32 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 33 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 34 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 35 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 36 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 37 * SUCH DAMAGE. 38 * |
39 * $Id: aic7xxx.c,v 1.32 1999/08/16 22:49:28 gibbs Exp $ | 39 * $Id: aic7xxx.c,v 1.33 1999/08/21 06:23:59 msmith Exp $ |
40 */ 41/* 42 * A few notes on features of the driver. 43 * 44 * SCB paging takes advantage of the fact that devices stay disconnected 45 * from the bus a relatively long time and that while they're disconnected, 46 * having the SCBs for these transactions down on the host adapter is of 47 * little use. Instead of leaving this idle SCB down on the card we copy --- 3812 unchanged lines hidden (view full) --- 3860 u_int scsi_conf; 3861 u_int scsiseq_template; 3862 u_int ultraenb; 3863 u_int discenable; 3864 u_int tagenable; 3865 size_t driver_data_size; 3866 u_int32_t physaddr; 3867 | 40 */ 41/* 42 * A few notes on features of the driver. 43 * 44 * SCB paging takes advantage of the fact that devices stay disconnected 45 * from the bus a relatively long time and that while they're disconnected, 46 * having the SCBs for these transactions down on the host adapter is of 47 * little use. Instead of leaving this idle SCB down on the card we copy --- 3812 unchanged lines hidden (view full) --- 3860 u_int scsi_conf; 3861 u_int scsiseq_template; 3862 u_int ultraenb; 3863 u_int discenable; 3864 u_int tagenable; 3865 size_t driver_data_size; 3866 u_int32_t physaddr; 3867 |
3868#if 0 |
|
3868 printf("SBLKCTL = 0x%x\n", ahc_inb(ahc, SBLKCTL)); 3869 printf("SSTAT0 = 0x%x\n", ahc_inb(ahc, SSTAT0)); 3870 printf("SFUNCT = 0x%x\n", ahc_inb(ahc, SFUNCT)); | 3869 printf("SBLKCTL = 0x%x\n", ahc_inb(ahc, SBLKCTL)); 3870 printf("SSTAT0 = 0x%x\n", ahc_inb(ahc, SSTAT0)); 3871 printf("SFUNCT = 0x%x\n", ahc_inb(ahc, SFUNCT)); |
3872#endif |
|
3871#ifdef AHC_PRINT_SRAM 3872 printf("Scratch Ram:"); 3873 for (i = 0x20; i < 0x5f; i++) { 3874 if (((i % 8) == 0) && (i != 0)) { 3875 printf ("\n "); 3876 } 3877 printf (" 0x%x", ahc_inb(ahc, i)); 3878 } --- 2695 unchanged lines hidden --- | 3873#ifdef AHC_PRINT_SRAM 3874 printf("Scratch Ram:"); 3875 for (i = 0x20; i < 0x5f; i++) { 3876 if (((i % 8) == 0) && (i != 0)) { 3877 printf ("\n "); 3878 } 3879 printf (" 0x%x", ahc_inb(ahc, i)); 3880 } --- 2695 unchanged lines hidden --- |