diff options
Diffstat (limited to 'drivers/scsi/aic7xxx/aic7xxx_core.c')
-rw-r--r-- | drivers/scsi/aic7xxx/aic7xxx_core.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_core.c b/drivers/scsi/aic7xxx/aic7xxx_core.c index 8a2bb6f8d77b..7bc01e41bcce 100644 --- a/drivers/scsi/aic7xxx/aic7xxx_core.c +++ b/drivers/scsi/aic7xxx/aic7xxx_core.c | |||
@@ -52,9 +52,6 @@ | |||
52 | #include <dev/aic7xxx/aicasm/aicasm_insformat.h> | 52 | #include <dev/aic7xxx/aicasm/aicasm_insformat.h> |
53 | #endif | 53 | #endif |
54 | 54 | ||
55 | /****************************** Softc Data ************************************/ | ||
56 | struct ahc_softc_tailq ahc_tailq = TAILQ_HEAD_INITIALIZER(ahc_tailq); | ||
57 | |||
58 | /***************************** Lookup Tables **********************************/ | 55 | /***************************** Lookup Tables **********************************/ |
59 | char *ahc_chip_names[] = | 56 | char *ahc_chip_names[] = |
60 | { | 57 | { |
@@ -3879,62 +3876,6 @@ ahc_softc_init(struct ahc_softc *ahc) | |||
3879 | } | 3876 | } |
3880 | 3877 | ||
3881 | void | 3878 | void |
3882 | ahc_softc_insert(struct ahc_softc *ahc) | ||
3883 | { | ||
3884 | struct ahc_softc *list_ahc; | ||
3885 | |||
3886 | #if AHC_PCI_CONFIG > 0 | ||
3887 | /* | ||
3888 | * Second Function PCI devices need to inherit some | ||
3889 | * settings from function 0. | ||
3890 | */ | ||
3891 | if ((ahc->chip & AHC_BUS_MASK) == AHC_PCI | ||
3892 | && (ahc->features & AHC_MULTI_FUNC) != 0) { | ||
3893 | TAILQ_FOREACH(list_ahc, &ahc_tailq, links) { | ||
3894 | ahc_dev_softc_t list_pci; | ||
3895 | ahc_dev_softc_t pci; | ||
3896 | |||
3897 | list_pci = list_ahc->dev_softc; | ||
3898 | pci = ahc->dev_softc; | ||
3899 | if (ahc_get_pci_slot(list_pci) == ahc_get_pci_slot(pci) | ||
3900 | && ahc_get_pci_bus(list_pci) == ahc_get_pci_bus(pci)) { | ||
3901 | struct ahc_softc *master; | ||
3902 | struct ahc_softc *slave; | ||
3903 | |||
3904 | if (ahc_get_pci_function(list_pci) == 0) { | ||
3905 | master = list_ahc; | ||
3906 | slave = ahc; | ||
3907 | } else { | ||
3908 | master = ahc; | ||
3909 | slave = list_ahc; | ||
3910 | } | ||
3911 | slave->flags &= ~AHC_BIOS_ENABLED; | ||
3912 | slave->flags |= | ||
3913 | master->flags & AHC_BIOS_ENABLED; | ||
3914 | slave->flags &= ~AHC_PRIMARY_CHANNEL; | ||
3915 | slave->flags |= | ||
3916 | master->flags & AHC_PRIMARY_CHANNEL; | ||
3917 | break; | ||
3918 | } | ||
3919 | } | ||
3920 | } | ||
3921 | #endif | ||
3922 | |||
3923 | /* | ||
3924 | * Insertion sort into our list of softcs. | ||
3925 | */ | ||
3926 | list_ahc = TAILQ_FIRST(&ahc_tailq); | ||
3927 | while (list_ahc != NULL | ||
3928 | && ahc_softc_comp(ahc, list_ahc) <= 0) | ||
3929 | list_ahc = TAILQ_NEXT(list_ahc, links); | ||
3930 | if (list_ahc != NULL) | ||
3931 | TAILQ_INSERT_BEFORE(list_ahc, ahc, links); | ||
3932 | else | ||
3933 | TAILQ_INSERT_TAIL(&ahc_tailq, ahc, links); | ||
3934 | ahc->init_level++; | ||
3935 | } | ||
3936 | |||
3937 | void | ||
3938 | ahc_set_unit(struct ahc_softc *ahc, int unit) | 3879 | ahc_set_unit(struct ahc_softc *ahc, int unit) |
3939 | { | 3880 | { |
3940 | ahc->unit = unit; | 3881 | ahc->unit = unit; |